comparison demos/shooter/scripts/ships/shipbase.py @ 451:f463ab431cc0

Movement shouldn't be dependent on framerate anymore. Some minor tweaks.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 01 Apr 2010 21:14:23 +0000
parents 5e2ec84902a7
children cf53848fb187
comparison
equal deleted inserted replaced
450:ba6817013343 451:f463ab431cc0
30 30
31 class Ship(SpaceObject): 31 class Ship(SpaceObject):
32 def __init__(self, model, name, layer, findInstance=True): 32 def __init__(self, model, name, layer, findInstance=True):
33 super(Ship, self).__init__(model, name, layer, findInstance) 33 super(Ship, self).__init__(model, name, layer, findInstance)
34 34
35 self._maxvelocity = 0.025/sqrt(self._xscale * self._yscale)
36 self._timedelta = 0 35 self._timedelta = 0
37 self._weapon = None 36 self._weapon = None
38 37
39 def _setWeapon(self, weapon): 38 def _setWeapon(self, weapon):
40 self._weapon = weapon 39 self._weapon = weapon