yhhik / java-fighting-game-engine

Automatically exported from code.google.com/p/java-fighting-game-engine
0 stars 0 forks source link

SpritePhysics don't work correct on direction changes #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

SpritePhysics do not work when a direction change in the arena happens.

What is the expected output? What do you see instead?

The sprite physics should continue when a direction change happens. Therefore a 
setDirection method should be introduced into the SpritePhysics interface.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by hannes.b...@gmail.com on 27 May 2011 at 4:47

GoogleCodeExporter commented 8 years ago

Original comment by hannes.b...@gmail.com on 28 May 2011 at 7:07

GoogleCodeExporter commented 8 years ago

Original comment by hannes.b...@gmail.com on 28 May 2011 at 7:20

GoogleCodeExporter commented 8 years ago
The issue was fixed introducing an init() method in the SpritePhysics 
interface. FighterStateImpl and ProjectileStateImpl methods where enhanced to 
perform an physics init() on each startState method().

Original comment by hannes.b...@gmail.com on 28 May 2011 at 7:38

GoogleCodeExporter commented 8 years ago

Original comment by hannes.b...@gmail.com on 2 Jun 2011 at 5:09