Mercurial > touhou
comparison pytouhou/game/bullet.py @ 156:ebfd328e700c
Rename a few functions, move a few things around...
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 10 Oct 2011 18:34:36 +0200 |
parents | 86807b8a63bd |
children | 7769ce7be03c |
comparison
equal
deleted
inserted
replaced
155:ed86bec43b93 | 156:ebfd328e700c |
---|---|
105 if self.flags & 1: | 105 if self.flags & 1: |
106 self.speed_interpolator = Interpolator((self.speed + 5.,), 0, | 106 self.speed_interpolator = Interpolator((self.speed + 5.,), 0, |
107 (self.speed,), 16) | 107 (self.speed,), 16) |
108 | 108 |
109 | 109 |
110 def collide(self, player): | 110 def collide(self): |
111 #TODO: animation | 111 #TODO: animation |
112 self._removed = True | 112 self._removed = True |
113 player.die() | |
114 | 113 |
115 | 114 |
116 def update(self): | 115 def update(self): |
117 dx, dy = self.launch_delta | 116 dx, dy = self.launch_delta |
118 self.x += dx | 117 self.x += dx |