Download presentation
Presentation is loading. Please wait.
Published byEverett Claude Arnold Modified over 9 years ago
1
Runo Marian, Oppliger Andreas, Neff Marius, Hirt Luca Games to Science Project „Tankwar“ by
2
Games to Science - Presentation Introduction Planning Problems Solving problems (Implementations) Demonstration Questions
3
Planning the project First steps: –Finding fellows –Finding ideas –Finding an appropriate programming language
4
Problems during programming Collisions:
5
Problems during programming Variety of projectiles
6
Problems during programming Moving tank across level
7
Problems during programming Background
8
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…
9
Tank movement: requirements The tank‘s x position
10
Tank movement: requirements Ground level at given x position
11
Tank movement: requirements Fixed reference points
12
New x position
15
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
16
Graphic Definition of the landscape in the XML-file
19
Projectile collision detection Landscape image mask Adding tanks Per pixel check Explosion initiation
20
Demo
21
Questions ? http://people.ee.ethz.ch/~runom/tankwar Play the game Give feedback Get the code Thank you for your interest!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.