Mercurial > fife-parpg
diff demos/shooter/scripts/ships/player.py @ 449:1cf56403347a
Added object bounding boxes.
Collision detection now works.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 01 Apr 2010 18:44:01 +0000 |
parents | 5e2ec84902a7 |
children | ba6817013343 |
line wrap: on
line diff
--- a/demos/shooter/scripts/ships/player.py Thu Apr 01 17:03:34 2010 +0000 +++ b/demos/shooter/scripts/ships/player.py Thu Apr 01 18:44:01 2010 +0000 @@ -37,20 +37,20 @@ oldpos = self.location if keystate['UP']: - self.applyThrust(fife.DoublePoint(0,-0.0075), timedelta) + self.applyThrust(fife.DoublePoint(0,-0.075), timedelta) key = True if keystate['DOWN']: - self.applyThrust(fife.DoublePoint(0,0.0075), timedelta) + self.applyThrust(fife.DoublePoint(0,0.075), timedelta) key = True if keystate['LEFT']: - self.applyThrust(fife.DoublePoint(-0.0075,0), timedelta) + self.applyThrust(fife.DoublePoint(-0.075,0), timedelta) key = True if keystate['RIGHT']: - self.applyThrust(fife.DoublePoint(0.0075,0), timedelta) + self.applyThrust(fife.DoublePoint(0.075,0), timedelta) key = True if not key and self._velocity.length() > 0: - self.applyBrake(0.0075, timedelta) + self.applyBrake(0.075, timedelta) super(Player, self).update(timedelta)