games to science
DESCRIPTION
Games to Science. Runo Marian, Oppliger Andreas, Neff Marius, Hirt Luca. Project „ Tankwar “ by. Games to Science - Presentation. Introduction Planning Problems Solving problems (Implementations) Demonstration Questions. Planning the project. First steps: Finding fellows - PowerPoint PPT PresentationTRANSCRIPT
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
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…
• Check if new tank angle is legal: Yes move tank to this position, decrease remaining move distance for this turnNo do not move tank
• …done
Graphic
Definition of the landscape in the XML-file
<color value="cyan"> <fillRect x="0" y="0" dx="1000" dy="500"/></color><color value="green"> <fillRect x="0" y="450" dx="1000" dy="200"/> <fillOval x="100" y="400" dx="500" dy="200"/> <fillOval x="400" y="400" dx="500" dy="200"/> <fillOval x="300" y="220" dx="400" dy="600"/> <fillOval x="250" y="308" dx="100" dy="100"/> <fillOval x="650" y="308" dx="100" dy="100"/></color><color value="cyan"> <fillOval x="-47" y="292" dx="200" dy="200"/> <fillOval x="847" y="292" dx="200" dy="200"/> <fillOval x="150" y="208" dx="200" dy="200"/> <fillOval x="650" y="208" dx="200" dy="200"/></color>
Projectile collision detection
• Landscape image mask• Adding tanks• Per pixel check• Explosion initiation
Questions ?
http://people.ee.ethz.ch/~runom/tankwar
• Play the game• Give feedback• Get the code
Thank you for your interest!