11 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

Well I manage to get a couple shinies in the car ride back from lunch so not too bad! Also, here's some TCG Pocket cards I got recently!

I was working on showing Spelunky stuff, but turns out I didn't fix that surface bug, so back to trying to do that.

Current theory is that the surface is being destroyed and a path is being drawn instead?

Happy New Years everyone! I hope you're all having a great one!

ヾ( ˃ᴗ˂ )◞ • *✰

Our 2024 Advent Calendar has opened! Day 28: @Silentfaith is a great Creator and comic artist who also codes fan games! Accept the quest and give them a follow to get Coins and a seasonal sticker!

urgh why it gotta rain i want grass cats!

@blurryspirits is a Jolter to Watch! They create Pokémon fan art and more! Follow them before the quest ends on January 14 and you'll get Coins!

I WILL figure this damn bug out >:|

>:| One day I'll figure out why this square edge happens.

IT'S FINALLY HERE!

Ok, I think I've settled on something I'm happy with for the Spelunky Menu. Just gonna test it, then go have my stupid little walk and catch some Pokemon. Gonna be so cold