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

Oh gosh

✨️shiny✨️

Fixed it

Bumping March's Game Dev Progress Post because Aprils isn't ready yet!

https://gamejolt.com/p/atbalmut-goth-gobo-gamedev-progress-post-…

Thanks for all the support and interest, I really appreciate it!

Last week at LVL UP EXPO, we celebrated great games made by Jolters including Baldi's Basics Plus by @BasicallyGames !

Buy it on Game Jolt: https://gamejolt.com/games/baldis-basics-plus/481026

Thanks to Razer for providing the laptops and peripherals!

I noticed Lightning wasn't animating properly, like at all. It just instantly disappeared, so I've reworked it and gave it random duration!

Watch out!

Quests inspired by @WhitethornGames ' Spray Paint Simulator entered your quest log!

Bring color to the world! Restore worn-out surfaces with a fresh coat of paint & watch them come back to life.

Play the free demo to get started: https://bit.ly/spraypaintsimdemo

Save file loading time improved!

First load is a fresh game, second is a previous save file being loaded.

I can probably get it down more, but this is without rearranging any code, just skipping over some unneeded bits.

Since I've added the Doctor NPC, I'm adding non-food based healing...do I have to figure out a new animation or just let the Goblins eat everything?

Edit: Fixed it! (gif 2)

Happy #WIPWednesday! Are you working on a game? Making some art? Practicing a song? Something else? Tell us in the comments!

Reworked how NPC's find their Points of Interest and interact with them, here's the Archaeologist investigating the Ruins.