Color setup + Doc update
This commit is contained in:
33
README.md
33
README.md
@@ -47,16 +47,45 @@ $ ./sdl-glisseur_10
|
||||
$ top (or ps ax) ---> get PID of the glider proccess
|
||||
$ kill -9 PID
|
||||
```
|
||||
or try to CTRL+C many times
|
||||
or try many times to close window
|
||||
|
||||
- - - - - - -
|
||||
# Adjust image size
|
||||
Update WIDTH and HEIGHT on lines 36 and 37
|
||||
|
||||
Update WIDTH and HEIGHT on
|
||||
```
|
||||
// Canvas height and width //
|
||||
#define WIDTH 640
|
||||
#define HEIGHT 480
|
||||
```
|
||||
|
||||
- - - - - - -
|
||||
# Set up the 4 colors
|
||||
|
||||
```
|
||||
// Canvas height and width //
|
||||
#define WIDTH 640
|
||||
#define HEIGHT 480
|
||||
```
|
||||
|
||||
- - - - - - -
|
||||
# Set up the 4 colors
|
||||
```
|
||||
// 4 colors definition //
|
||||
#define COLOR_0_R 254
|
||||
#define COLOR_0_G 254
|
||||
#define COLOR_0_B 254
|
||||
#define COLOR_1_R 254
|
||||
#define COLOR_1_G 0
|
||||
#define COLOR_1_B 0
|
||||
#define COLOR_2_R 0
|
||||
#define COLOR_2_G 254
|
||||
#define COLOR_2_B 0
|
||||
#define COLOR_3_R 0
|
||||
#define COLOR_3_G 0
|
||||
#define COLOR_3_B 254
|
||||
```
|
||||
|
||||
- - - - - - -
|
||||
# Change glider moving rules
|
||||
Update the direction adding parameters, check examples from line 158 to line 205
|
||||
|
||||
Reference in New Issue
Block a user