diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-08 17:11:40 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-08 17:11:40 +0530 |
commit | 02b20e353366afcd8890bf8991e09bf653df5bf3 (patch) | |
tree | 1bbf378f43f15e566856f95229d1b0273543ec2b | |
parent | 3679b80216741e6c2c03080762865872daff967b (diff) | |
download | snek-master.tar.gz snek-master.tar.bz2 snek-master.zip |
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | README.org | 17 |
2 files changed, 25 insertions, 1 deletions
@@ -1,5 +1,12 @@ CC=g++ -CFLAGS=-Wall -Wextra -Werror -Wswitch-enum -ggdb -fsanitize=address -fsanitize=undefined -std=c++17 +GFLAGS=-Wall -Wextra -Werror -Wswitch-enum -std=c++17 +DFLAGS=-ggdb -fsanitize=address -fsanitize=undefined +RFLAGS=-O3 +ifdef RELEASE +CFLAGS=$(GFLAGS) $(RFLAGS) +else +CFLAGS=$(GFLAGS) $(DFLAGS) +endif LIBS=-lm -lraylib ARGS= diff --git a/README.org b/README.org new file mode 100644 index 0000000..97b2135 --- /dev/null +++ b/README.org @@ -0,0 +1,17 @@ +#+title: Snek - Snake clone +#+author: Aryadev Chavali +#+date: 2024-05-08 + +A snake clone in C++ using Raylib. + +To compile have Raylib installed locally (or just download a release +from https://github.com/raysan5/raylib/releases) then run "make +RELEASE=1". + +Use either vim keys or arrow keys to control the snake. Press =Space= +to go fastâ„¢ and =grave= to see some more details. + +There are 3 layouts, which you press the following number keys to use: +1) Unlimited (no walls) +2) Walled (walls on all sides) +3) Walled garden (walls with gaps on all sides) |