7 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

Coded a 9slice system and got an expandable rug set up for the Smithy! Next make a nicer floor tile for the rest of it, I think I might just use the Rockland floor tile, I don't like how this floor is broken up into actual tiles.

Got my cheap pizza for tomorrow

Also a can of pineapple rings to put on it

#ScaryGame

Eternal Darkness.

Happy Video Game Day! 🎮

Celebrate by completing our quests!

(They'll be in your quest log until September 19th.)

Got it working the same for each side, but I've found a bunch of mistakes, or just weirdness in the code.

I MUST EXAMINE!

p.s please ignore the gaps, the code to fill in the walls is turned off

Happy Sunday everyone! Hope you're all well

Things got messed up so I had two lifts arranged to lunch lol all good now.

Think there's extra special dessert today since my birthday is on Tuesday..

Please look after yourselves and have a fantastic day!

Is my birthday today...

Please make sure you eat some cheese!

Hope you all have a fantastic one!

Joltober is here! Today's prompt is Ghost! 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.

Things my Goblins can do so far!

-Farm Farms and Orchards (only chop Trees so far but they do get fruit at the start)

-Sit in chairs.

-Go to and from The Underground

-Wander

-Work in Cafe's and Restaurants selling Food.

-Work in Smithies selling Ingots.