mElite 01: Let's start our elite
Our purpose is the creation of a simple clone of elite step-by-step.
For knowing something more about this video game you can visit this web site:
http://www.iancgbell.clara.net/elite/.
The first step is to draw a planet and an artificial satellite in 2D using
orthogonal projection and polygons as seen in lecture 2 and to handle the pression of some
keys as introduced in lecture 1. Now, download the program sketch
>>here<< and complete the code in ordert to:
-
Add keys control for arrow keys (move up, down, left, and right),
s key (toggle between smooth and flat shading), and ESCAPE key (program exit)
-
Draw a triangle fan for a 2D planet, i.e. a colored circle; make
the center yellow, and the edges darkgreen
-
Draw a 2D spaceship;
use your fantasy to give it a shape
and use two different colors (e.g. blue and
grey) for shading
You can click >>here<< to download a
simple program that shows you what you have to realize. You have to run
chmod +x melite1b
if you want a successful execution of the program.
|