teaching

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit bc871ddfdac693045d48d139c229a040f096d8e3
parent 081a52fa37da59878a88a792af9fba4eac8df5cf
Author: thing1 <thing1@seacrossedlovers.xyz>
Date:   Wed, 19 Nov 2025 10:04:33 +0000

added makefile

Diffstat:
A.gitignore | 1+
AMakefile | 6++++++
Dmain | 0
Mmain.c | 4++++
4 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +main diff --git a/Makefile b/Makefile @@ -0,0 +1,6 @@ +CFLAGS=-ggdb + +main: main.c + cc -o main ${CFLAGS} main.c +clean: + rm -rf main diff --git a/main b/main Binary files differ. diff --git a/main.c b/main.c @@ -81,6 +81,8 @@ main() { case 'd': player.x++; break; + case 'q': + goto end; } in = 0; @@ -88,4 +90,6 @@ main() { printscr(); usleep(32000); } +end: + return 0; }