42 lines
1.0 KiB
Markdown
42 lines
1.0 KiB
Markdown
# FDF - fil de fer
|
|
|
|
**this is an exercize to discover 3D drawing, keyboard events, and pixel images manipulation**
|
|
|
|
it reads a map, which is a simple text file like this :
|
|
|
|
```
|
|
0 0 0 0 0
|
|
0 0 0 0 0
|
|
0 10 0 0 0
|
|
0 0 0 0 0
|
|
0 0 0 0 0
|
|
```
|
|
|
|
and it convert it into a rectangular net, like a landscape with the height equal to the numbers :
|
|
|
|

|
|
|
|
we can modify the map to change the 3D drawing :
|
|
|
|

|
|
|
|
then it listen to keyboards events to transform the 3D, like turning around, zooming... :
|
|
|
|
**zoom :**
|
|
|
|

|
|
|
|
**turn :**
|
|
|
|

|
|

|
|
|
|
**move :**
|
|
|
|

|
|
|
|
**change height :**
|
|
|
|

|
|
|