Runo Marian, Oppliger Andreas, Neff Marius, Hirt Luca Games to Science Project „Tankwar“ by
Games to Science - Presentation Introduction Planning Problems Solving problems (Implementations) Demonstration Questions
Planning the project First steps: –Finding fellows –Finding ideas –Finding an appropriate programming language
Problems during programming Collisions:
Problems during programming Variety of projectiles
Problems during programming Moving tank across level
Problems during programming Background
Tank movement The Tank.move(int d) function makes the tank move d pixels to the right, if possible. The tank‘s angle is automatically adjusted according to the landscape. Implementation overview follows…
Tank movement: requirements The tank‘s x position
Tank movement: requirements Ground level at given x position
Tank movement: requirements Fixed reference points
New x position
Check if new tank angle is legal: Yes move tank to this position, decrease remaining move distance for this turn No do not move tank …done
Graphic Definition of the landscape in the XML-file
Projectile collision detection Landscape image mask Adding tanks Per pixel check Explosion initiation
Demo
Questions ? Play the game Give feedback Get the code Thank you for your interest!