diff options
author | Case Duckworth | 2023-06-01 16:30:09 -0500 |
---|---|---|
committer | Case Duckworth | 2023-06-01 16:30:09 -0500 |
commit | c3481952e04eb79056ed5510f91c597ccb5dddd7 (patch) | |
tree | e73f79a04106fcf121fb7ca516aa6794f3982aeb | |
parent | Remove spurious import (diff) | |
download | apple-c3481952e04eb79056ed5510f91c597ccb5dddd7.tar.gz apple-c3481952e04eb79056ed5510f91c597ccb5dddd7.zip |
Change name to apple and add makefile
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | README.md | 7 | ||||
-rwxr-xr-x | apple.scm (renamed from game.scm) | 2 | ||||
-rw-r--r-- | makefile | 16 |
4 files changed, 23 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6430706 --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | *.link | ||
2 | apple | ||
3 | apple-bin.scm \ No newline at end of file | ||
diff --git a/README.md b/README.md index a8d553a..9951e43 100644 --- a/README.md +++ b/README.md | |||
@@ -1,14 +1,13 @@ | |||
1 | # 2023 Lisp Game Jam Entry | 1 | # 2023 Lisp Game Jam Entry |
2 | ## "Game" | 2 | ## "Apple" |
3 | 3 | ||
4 | Yeah I don't have a good name yet. I'm just playing around and trying to get characters on the screen right now. | 4 | *Apple* is a reverse snake --- you're an apple trying to avoid the snake. |
5 | 5 | ||
6 | ## Dependencies | 6 | ## Dependencies |
7 | 7 | ||
8 | - chicken scheme (`csi`) with eggs: | 8 | - chicken scheme (`csi`) with eggs: |
9 | - matchable | 9 | - matchable |
10 | - r7rs | 10 | - r7rs |
11 | - srfi-18 | ||
12 | - stty | 11 | - stty |
13 | - my ansi library, [yolk][] | 12 | - my ansi library, [yolk][] |
14 | 13 | ||
@@ -16,7 +15,7 @@ Yeah I don't have a good name yet. I'm just playing around and trying to get ch | |||
16 | 15 | ||
17 | ## Running | 16 | ## Running |
18 | 17 | ||
19 | Run `./game.scm` in this directory. | 18 | Run `./apple.scm` in this directory. Alternatively, run `make` to build a static binary and run that instead. |
20 | 19 | ||
21 | ## License | 20 | ## License |
22 | 21 | ||
diff --git a/game.scm b/apple.scm index 7a43720..5dae4eb 100755 --- a/game.scm +++ b/apple.scm | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | #| -*- scheme -*- | 2 | #| -*- scheme -*- |
3 | exec csi -R r7rs -ss "$0" "$@" | 3 | exec csi -R r7rs -ss "$0" "$@" |
4 | game --- 2023 lisp game jam | 4 | apple --- 2023 lisp game jam |
5 | (C) Case Duckworth <acdw@acdw.net> | 5 | (C) Case Duckworth <acdw@acdw.net> |
6 | Distributed under the terms of the LATCRIFPL, v1.0. | 6 | Distributed under the terms of the LATCRIFPL, v1.0. |
7 | See COPYING for details. | 7 | See COPYING for details. |
diff --git a/makefile b/makefile new file mode 100644 index 0000000..dbdbe9f --- /dev/null +++ b/makefile | |||
@@ -0,0 +1,16 @@ | |||
1 | # 'apple' | ||
2 | |||
3 | CSC = csc -static | ||
4 | |||
5 | apple: apple-bin.scm | ||
6 | $(CSC) $< -o $@ | ||
7 | |||
8 | apple-bin.scm: apple.scm | ||
9 | @echo "writing apple-bin.scm" | ||
10 | @echo '(import (scheme process-context))' > $@ | ||
11 | @echo '(include "$<")' >> $@ | ||
12 | @echo '(main (cdr (command-line)))' >> $@ | ||
13 | |||
14 | .PHONY: clean | ||
15 | clean: | ||
16 | rm apple-bin.scm *.link | ||