From 323fe7be2124854925737a10e05f973e7945a1be Mon Sep 17 00:00:00 2001 From: blz Date: Thu, 5 Mar 2026 04:04:11 +1100 Subject: [PATCH] Actualiser README.md --- README.md | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8f5ce92..c3513ef 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Génération d'images à la "jeu de la vie" écrit en C. "Game of life" like image generation written in C. - - - - - - - - -# Installation - +# Installation ## Fedora / RedHat : ``` @@ -14,14 +14,36 @@ Génération d'images à la "jeu de la vie" écrit en C. # dnf install SDL_image-devel ``` -- - - - - - - - -# Compiling - +- - - - - - - +# Compiling ``` $ gcc `sdl-config --cflags --libs` glisseur_10.c -o glisseur_10 ``` -- - - - - - - - -# Runing - +- - - - - - - +# Runing ``` $ ./sdl-glisseur_10 -``` \ No newline at end of file +``` + +- - - - - - - +# Stoping +``` +$ 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 + +- - - - - - - + +