tanchiki
diff body.py @ 38:cf05c46d014c
Moved UI-related tank stuff into tk_ui.Tank; updated tk_ui to match the current project structure
author | Daniil Alexeyevsky <me.dendik@gmail.com> |
---|---|
date | Mon, 20 Dec 2010 19:27:24 +0300 |
parents | 1a0bddee3c54 |
children | ffa51524a60d |
line diff
1.1 --- a/body.py Mon Dec 20 19:16:17 2010 +0300 1.2 +++ b/body.py Mon Dec 20 19:27:24 2010 +0300 1.3 @@ -57,20 +57,7 @@ 1.4 self.game.bodies.append(bullet) 1.5 1.6 def on_tick(self,other_tanks, bullets): 1.7 - if self.user.base_left == True: 1.8 - self.rotate_base(base_angle) 1.9 - if self.user.base_right == True: 1.10 - self.rotate_base(-1*base_angle) 1.11 - if self.user.accelerate == True: 1.12 - self.accelerate(speed_delta) 1.13 - if self.user.decelerate == True: 1.14 - self.accelerate(-1*speed_delta) 1.15 - if self.user.turret_left == True: 1.16 - self.rotate_turret(turret_angle) 1.17 - if self.user.turret_right == True: 1.18 - self.rotate_turret(-1*turret_angle) 1.19 - if self.user.fire == True: 1.20 - self.fire() 1.21 + pass 1.22 1.23 def on_spawn(self): 1.24 pass