Files
glider-pixel/README.md
2026-03-05 09:13:46 +11:00

1009 B

glider-pixel

Génération d'images à la "jeu de la vie" écrit en C.

"Game of life" like image generation written in C.


Installation

Fedora / RedHat :

# dnf install gcc
# dnf install SDL_image
# dnf install SDL_image-devel

Debian :

# apt install gcc
# apt install libsdl-image1.2
# dnf install libsdl-image1.2-dev
# apt-get install libsdl1.2-compat   ( might be needed, or not )

Compiling

Fedora / RedHat :

$ gcc `sdl-config --cflags --libs` glisseur_10.c -o glisseur_10

Debian

``


Running

$ ./sdl-glisseur_10

Killing

$ top  (or ps ax)  ---> get PID of the glider proccess
$ kill -9 PID

Adjust image size

Update i and j on lines 122 and 123

    i=320;
    j=240;

Change glider moving rules

Update the direction adding parameters, check examples from line 158 to line 205


Let's glide !

glider-pixel