about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2023-06-01 16:30:09 -0500
committerCase Duckworth2023-06-01 16:30:09 -0500
commitc3481952e04eb79056ed5510f91c597ccb5dddd7 (patch)
treee73f79a04106fcf121fb7ca516aa6794f3982aeb
parentRemove spurious import (diff)
downloadapple-c3481952e04eb79056ed5510f91c597ccb5dddd7.tar.gz
apple-c3481952e04eb79056ed5510f91c597ccb5dddd7.zip
Change name to apple and add makefile
-rw-r--r--.gitignore3
-rw-r--r--README.md7
-rwxr-xr-xapple.scm (renamed from game.scm)2
-rw-r--r--makefile16
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
2apple
3apple-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
4Yeah 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
19Run `./game.scm` in this directory. 18Run `./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 -*-
3exec csi -R r7rs -ss "$0" "$@" 3exec csi -R r7rs -ss "$0" "$@"
4game --- 2023 lisp game jam 4apple --- 2023 lisp game jam
5(C) Case Duckworth <acdw@acdw.net> 5(C) Case Duckworth <acdw@acdw.net>
6Distributed under the terms of the LATCRIFPL, v1.0. 6Distributed under the terms of the LATCRIFPL, v1.0.
7See COPYING for details. 7See 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
3CSC = csc -static
4
5apple: apple-bin.scm
6 $(CSC) $< -o $@
7
8apple-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
15clean:
16 rm apple-bin.scm *.link