2 years 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

Favourite #TeamShooter? I Would never! It's illegal to shoot people, never mind a whole team!!

Ooo today's cards!

Doki Doki Literature Club is celebrating Monika's birthday and the 8th anniversary of DDLC with exclusive stickers, avatar frames and backgrounds on Game Jolt! 

Head over to the shop to collect yours 👉 https://gamejolt.com/#shop

Happy November everyone! I hope you all had a wonderful October! Mostly optimisation and reworks this month.

https://www.patreon.com/posts/141102397

Mae Borowski is the main character of Night in the Woods! It's an adventure game that tells the story of her return to her hometown of Possum Springs. She was confirmed as canonically pan in a social media post by the game's creator Scott Benson.

It cost me something like 16 remote raid passes, but I finally got enough energy to get my Necrozma fusions!

Plus they SHINY

A friend took granny out for the day so I was able to take part in today's Pokemon Wild Event.

Fricken caught a Galarian bird finally! Articuno in a Safari ball for guaranteed catch!

Final result for Pokemon Go In to the Wild event.

26 mighties. 1 shiny.

1 random shiny.

Shiny Cresselia from the pass.

Galarian Atricuno!

Grimsnarl gigantamax.

3x shadow Darkrai.

Not bad to be honest!