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

3 new card packs! 1 pull of each!

Urm waht?

So when you guys called yourselves GameFREAK...

Well i'm def getting somewhere, now to make the lava glow less grid aligned

Sorry i've not been around much my tablet finally gave out and thats limited me

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

My mam gave me her old laptop, once ive finished setting it up ill get the thanks sent out!

Got it partitioned and just setting windows and possibly Linux, given everything Microsoft is doing I think now is a good time.

Thank you for your patience

too late for the prompt but for #Demon i drew Charlie!

Ok, @gamejolt somethings definitely up with quests looking at the 4/7 that means I was right and my quests didn't reset yesterday.

Previous post: https://gamejolt.com/p/has-atgamejolt-gj-jolt-changed-when-your-…

HMM! Well I think I've made it better? Framerate seems more stable on this poor laptop?

Not bad for built in graphics.

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

YUS!