flypup / duel-of-the-devs

Duel of the Devs Web Game. Continuation of GitHub Game Off 2012 entry.
http://minimonks.com
2 stars 1 forks source link

Floors - walk on elevated floors #2

Closed robwalch closed 11 years ago

robwalch commented 11 years ago

Floors are composed of physics shapes with a z location and depth. z is the top of the floor, z - depth is the bottom. Characters can climb or step up to floors if their z location is within a certain range or the floors, otherwise they either pass under or the edge is treated as a wall.

robwalch commented 11 years ago

entities shadows must be moved the the floor's z location if the character on or over the floor.