Presentation is loading. Please wait.

Presentation is loading. Please wait.

Runo Marian, Oppliger Andreas, Neff Marius, Hirt Luca Games to Science Project „Tankwar“ by.

Similar presentations


Presentation on theme: "Runo Marian, Oppliger Andreas, Neff Marius, Hirt Luca Games to Science Project „Tankwar“ by."— Presentation transcript:

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

13

14

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

17

18

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!


Download ppt "Runo Marian, Oppliger Andreas, Neff Marius, Hirt Luca Games to Science Project „Tankwar“ by."

Similar presentations


Ads by Google