1 year 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

Buy why, it's the same code the player uses!!?!

Woo! Finally got my Sun lion!

Hopefully I can get a Moon bat later this week!

Also this dummy, it's got spikes for eyes!?

June Game Dev Progress (2025)

Hey everyone! I hope you're all doing well! Kind of a super short one this month as I lost a couple weeks to moving out and didn't have a computer.

Madeline is the main protagonist of the mountain climbing platformer, Celeste. The game has been praised for its visuals, gameplay, and introspective narrative. The game's creator Maddy Thorson confirmed that Madeline is trans in 2020.

WHAT THE HECK!!? Why would you do that!????

Dive into the cozy post-apocalyptic open world of Critter Cove!

Gentleman Rat Studios (@GR-Rob ) describe it as “a little bit Animal Crossing, a little bit Stardew Valley. Maybe even a little bit Windwaker, too."

Wishlist the game: https://bit.ly/CritterCove

Anyone else got a phantom quest indicator?

The red dot keeps appearing, but i have no new ones or updates to do.

GO AWAY!

(Urm, I just found this in my drafts, so I'm not sure if I posted it? Meh, it'll do for now! Progress post coming later once I'm sure GameJolt is stable! )

Woop! The Goblins now have Swords!

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.

Another Pokemon Go level attained!

Also new cards from TCG Pocket!