Trees | Indices | Toggle frames |
---|
collide_bottom(self, dy) | |
collide_left(self, dx) | |
collide_right(self, dx) | |
collide_top(self, dy) | |
collide_map(self,
map,
last,
new,
dy,
dx)
Collide a rect with the given RectMap map.
|
|
do_collision(self,
cell,
last,
new,
dy,
dx)
Collide a Rect moving from "last" to "new" with the given map
RectCell "cell".
|
Collide a rect with the given RectMap map.
Apart from "map" the arguments are as per do_collision.
Mutates the new rect to conform with the map.
Returns the (possibly modified) (dx, dy)
Collide a Rect moving from "last" to "new" with the given map RectCell "cell". The "dx" and "dy" values may indicate the velocity of the moving rect.
The RectCell must have the boolean properties "top", "left", "bottom" and "right" for those sides which the rect should collide.
If there is no collision then nothing is done.
If there is a collision:
Mutates the new rect to conform with the map.
Returns the (possibly modified) (dx, dy)
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Wed Oct 26 10:00:17 2011 | http://epydoc.sourceforge.net |