11 months 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

Got my xmas cake!

Asked my mam to make it green, so it's a Goblin.

Not a Gnome!

Don't believe anyone who says otherwise!!

Hmmm! Proof of concept for Minetracks done with ds_grid and a variation of the existing movement system. Plan is to have you get in a Minecart that will disable normal movement controls.

Happy (late) Sunday everyone! I hope you're all doing well! Got my Minecarts working right!

Had to add a better rotation option for cycling the directions and added back in the Destroy menu option.

Our 2024 Advent Calendar has opened! Day 18: @Otis_Le_PoOtis is the Creator of Bondeeā€™s Barnyard and posts updates about their dev journey and their work on the sequel!) Accept the quest and give them a follow to get Coins and a seasonal sticker!

Hmm, particles make it look better, though I need to adjust the alpha value. I think I need to set a delay for buildings so they happen on the landing not at creation

Happy #WIPWednesday!

Are you working on a game?

Making some art?

Practicing a song?

Something else?

Tell us in the comments!

ORB

I think that's all sorted. Paving (floor that doesn't have height) is now done like Minetracks, purely as grid data.

You even get a refund when selling them.

Also added the floor dust to Building Selling. Might make it lighter, kinda hard to see on grass.

@Miles_Games is a Jolter to Watch! They post great game dev updates about the holiday-themed platformer TEAM SLAY-BELLS! Follow them before the quest ends on December 24 and you'll get Coins!

Happy December everyone!

I hope you're all doing well!

Mostly sprite/UI work and code reworking this month! (November)

Rambling begins!