google-code-export / badquest

Automatically exported from code.google.com/p/badquest
0 stars 0 forks source link

Falling / Actor out of bounds #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
An actor walking over a void tile or leaving the bounds of a room should be 
handled with a falling effect, followed by death. In later iterations, the 
actor may fall into a lower layered room if everything lines up, but for now, 
this should do.

Detect falling by checking whether the actor's center of mass is in the 
restricted area (the void tile or outside the room bounds). If this is the 
case, apply a force in the bad direction, to emulate slipping. Decrease the 
scale on the actor as well, to further sell it.

This is actually going to be a tough addition, so try to hit the subproblems 
first:

1. Add a scale or z-axis to drawable object
2. Determine the direction and magnitude of the slip force given an actor's 
position
3. Add a player death state, as well as the ability to respawn

Original issue reported on code.google.com by mikeg3...@gmail.com on 6 Nov 2012 at 6:23

GoogleCodeExporter commented 9 years ago

Original comment by mikeg3...@gmail.com on 15 Nov 2012 at 8:11

GoogleCodeExporter commented 9 years ago
A Link to the Past played very similarly to our game and handled this exact 
problem, see if there's anything that can be learned from their implementation.

Original comment by mikeg3...@gmail.com on 18 Apr 2013 at 5:10