9 months ago

So I've set the Underground (different to caves) to be generated by code now instead of being built in the room editor.

I really don't want to have to make a second array twice the size to add objects to the room, I have some ideas though.


-I could just make an array that lists the object types and their x/y values instead.

-I could put then in that original array and add something to the placement code to offset them based on their relative position (left side of room, shift to left side of the tile, top shift to top side of tile etc)

-I could just put them dead centre of the tile? That's not how buildings work on the Island, but meh!

-I could make new sprites that are tile sized?

Hmm

Oh, and that array? It gets destroyed after use by setting;

underground = -1;

So it's not stored in memory forever. Not a huge performance boost, but there's really no reason to keep it.



11 comments

Loading...

Next up

WOO!

Happy Sunday everyone! I hope you're well! Family is all back so I got Sunday Lunch today!

Also, so many shiny maonkeys!

Time to get back to Progress Post!

Please take care, do your best and remember you're all awesome and unstoppable in your goals!

DING!

#Joltober 2024 has come to an end so we wanted to show off some of the art posted by your fellow Jolters.

Thank you to everyone who participated in this year's challenge!

(Check the article to links to the original posts so you can give 'em a like!)

Ok, this version works without physics. I had to scrounge up some old bullet code from a platformer project I have.

It's nowhere near as accurate, and entirely random bounce angle when colliding with something. But it works and use like 15 lines of code?

Joltober is here! Today's prompt is Spider! Each day in October, you’ll get a new prompt and a new quest at 12 pm Eastern! Go to your quest log to find the quest! It'll expire tomorrow at 9 am PT / 12 pm ET.

Happy November everyone!

Super slow month since I took a few days off for my birthday, and spent a lot of time making new sprites which doesn't really require much write up.

OMGOSH! Shiny Shadow Beldum!

Joltober is here! Today's prompt is #Costume! Each day in October, you’ll get a new prompt and a new quest at 12 pm Eastern! Go to your quest log to find the quest! It'll expire tomorrow at 9 am PT / 12 pm ET.

As I've been going through my building redraws I've split the Crafting Building menu into Converters and Crafters. Kinda need better names for them.

I'm also realising I need to redo the UI for them, they don't need the Inventory part now I can reuse it.