I don't know much about how vectors work, but from the looks of it, I think I know what's wrong. Change line 30 in the code above to
self.pos += self.vel * self.game.dt * self.direction
Boomerang implementing logic
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
A question about implementing the state engine code | marienbad | 4 | 3,304 |
Oct-20-2018, 02:08 PM Last Post: metulburr |