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

God of War is pretty cool, still waiting on this to happen though.

#GodOfWar20

Happy lazy Sunday afternoon!

Probably gonna take it easy today, so here's some human* made Pixel Art!

It's of vtuber and artist @/hazelnoxvtuber!

You should check out her youtube steams, she likes Siege and is always a credit to the team!

*Goblin

WOOP!

This week's Fan Art Friday celebrates Baldi's Basics in Education and Learning! Accept the quest in your quest log to get started.

Woop! Woop!

Inayah - Life After Gods is OUT NOW on Steam!

Celebrate the game's release by completing our quests!

You can play the demo or get the full game at https://bit.ly/steaminayah

Quick bump of last months #GameDev Progress Post before the month ends! Should have this months done in time for Friday/Saturday! https://www.patreon.com/posts/121457824

I hope you're all doing well, please look after yourselves and keep being awesome!💚

#indieDev

Figured out why the Cave Stairs keep disappearing

One of my debug hotkeys...I keep hitting by mistake, makes new nature, which doesn't work in The Caves BUT one it does deactivates everything out of view

URGH, button REMOVED!

slep time

@FatBombStudios is a CCC+ Studio that makes games you love but don't know about!

They're the devs behind the fast paced hide and seek game Light Bearers 2: https://bit.ly/LightBearers2

We think you SHOULD know about them so complete the quest!

Tombi! / Tomba!

#GJAsks