3 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

Reworked the Emote system, I was missing a reset in a couple places. Now the Goblins react better when you give them a home, or evict them (why would you do that?!?!!? T_T).

Fixed a bug with Saving and Loading Crafting Buildings while they were crafting. Seems I didn't update the Crafting check to be an array check, which caused it not to load the amount left to craft...which made them craft negative amounts forever! :S

Happy #WIPWednesday!

Are you working on a game? A song? Something else? Tell us in the comments!

Reworked the Mail System. There are now multiple Mail types, including Hints, Small Talk, Gifts and Requests.

🕹️ Enter The Highrise Game Jam Before It Ends On May 5! 🕹️

Learn the rules here: https://gamejolt.com/c/gamedev/highrisejam

Learn how to make a world on Highrise (which you MUST do to enter the jam) here: https://gamejolt.com/p/the-highrise-game-jam-is-underway-watch-t…

The jam has cash prizes! 💸💸💸

I've planned out the twitch integration using the system from this old prototype I made Pet. But just can't bring myself to actually code it. It feels way too early,also I have to set OBS to test it and it's just urghhhhhh

Please enjoy Slimy The Gel Cube

Updated the Pineapple Crop grow animation. Much better!

Might still need to redraw the actual Pineapple part though.

Anyone else think the amount of flesh on a pineapple is *obscene*?

Highrise Game Jam Reminder: In order to enter to win the Jam, your game must be created in Unity and submitted using the Highrise Studio Hub.

Learn all the deets about the jam at https://gamejolt.com/c/gamedev/highrisejam

urm....uwu?