Handmade Hero»Forums»Code
jeringa
19 posts
Day75 - Ground and Z
Would a ground/floor entity be an easy way to get to a nice Z handling system
That way an entity would always have to be standing on a "support" entity or fall
This would also allow for an animated lift entity to move the player between Z levels, it would also allow for holes you can fall into.
Since Entities can be arbitrarily sized you wouldn't even need that many of them per area/room
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
Day75 - Ground and Z
I toyed with this idea but I think it's a better idea to do the opposite, because most of the time there is ground. So it'd basically just be adding a lot of work to detect the common case, rather than adding entities for holes, which is the uncommon case. You know?

Hard to say - the jury is definitely still out. We'll see how it goes!

- Casey