diff options
| author | david <[email protected]> | 2026-10-04 18:22:55 -0300 |
|---|---|---|
| committer | david <[email protected]> | 2026-10-04 18:22:55 -0300 |
| commit | ae45941a786aa88a9a5d78e9c690b0cb49368a89 (patch) | |
| tree | 2987e93d7b8bca98be20b923f5cf3aaae84d4f61 | |
| parent | 6b3829ef5888ff48dbf47b2cf99faf3c4b65e168 (diff) | |
| download | petratc-master.tar.gz petratc-master.zip | |
| -rw-r--r-- | games/gamecatch.c | 5 | ||||
| -rw-r--r-- | games/gameclicker.c | 8 | ||||
| -rw-r--r-- | games/gameguess.c | 6 | ||||
| -rw-r--r-- | games/gamemaze.c | 5 | ||||
| -rw-r--r-- | games/gamerace.c | 18 | ||||
| -rw-r--r-- | rat.h | 7 |
6 files changed, 25 insertions, 24 deletions
diff --git a/games/gamecatch.c b/games/gamecatch.c index a1328d5..299e39f 100644 --- a/games/gamecatch.c +++ b/games/gamecatch.c @@ -1,8 +1,3 @@ -#include <stdio.h> -#include <stdlib.h> -#include <time.h> -#include <unistd.h> -#include <ncurses.h> #include "../rat.h" /* diff --git a/games/gameclicker.c b/games/gameclicker.c index a27e2a2..0d21273 100644 --- a/games/gameclicker.c +++ b/games/gameclicker.c @@ -1,11 +1,3 @@ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <math.h> -#include <time.h> -#include <unistd.h> -#include <ncurses.h> -#include <sys/stat.h> #include "../rat.h" /* diff --git a/games/gameguess.c b/games/gameguess.c index 47a0be9..86c6a26 100644 --- a/games/gameguess.c +++ b/games/gameguess.c @@ -1,9 +1,3 @@ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <unistd.h> -#include <time.h> -#include <ncurses.h> #include "../rat.h" #define maxhistory 4 diff --git a/games/gamemaze.c b/games/gamemaze.c index 37ca3b9..41bdd44 100644 --- a/games/gamemaze.c +++ b/games/gamemaze.c @@ -1,8 +1,3 @@ -#include <stdlib.h> -#include <time.h> -#include <unistd.h> -#include <ncurses.h> -#include <string.h> #include "../rat.h" /* diff --git a/games/gamerace.c b/games/gamerace.c new file mode 100644 index 0000000..1b3244a --- /dev/null +++ b/games/gamerace.c @@ -0,0 +1,18 @@ +#include "../rat.h" + +static int running; + + +static void stop() { + clear(); + refresh(); + endwin(); + running = 0; +} + + +void ratrace(){ + + + +} @@ -1,7 +1,14 @@ #ifndef rat_h #define rat_h +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <math.h> +#include <time.h> +#include <unistd.h> #include <ncurses.h> +#include <sys/stat.h> typedef struct { float hunger; |
