2 years ago

I think I should rip all the Flooring out of my game...
They're objects, and I don't think they need to be.


All I need is to store a value in a grid, I can then use my lookup system to get the correct sprite to draw after the ground has been drawn.

I might be able to get away with adding decimals to indicate which sprite frame to draw, so you can still have different patterns.

If not, I can store arrays in the grid instead, then I can skip the lookup and just have; grid[# x,y] = floorType,sprite,frame instead. Which is basically what I do for my ground when there's an overlay (although with that it's 2 separate grids, one for the base ground tile and one for the extra info).

I can keep things like faster movement over flooring and buildings needing them by checking the grid coordinates instead of doing a collision check.
It's funny how scared I was of grids when I first started making this (the documentation hammers home that point) and now I'm using them for a bunch of stuff

Heck this would save me having to do adjacent checks when placing floor to see if there needs to be an end piece, since the end will automatically be drawn over because draw priority works topleft to bottom right.

Means I can't have the building placement effect though. I couldn't get the tween system to work with array values, so one nested in a grid is probably out too.

Can do the same with Roofing too...then I can skip drawing the roof if the grid x/y is z distance to player....

edit; actually depth probably wont let roofing work



0 comments

Loading...

Next up

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

Plus they SHINY

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

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!

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

OMGOSH, don't sleep on this quest!!!

Shame you can't go over 7 charges

Updating water, added some stuff to make things more visually pleasing. I think I need the tint back or maybe to try different blending. Kinda want to try a displacement map again instead of the directional movement? Need to find that again. (laptop gif)

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.

Ooo pretty!