Boilerplate code for a simple TIC-80 game using Fennel lisp.
- GNU/Linux or OSX
- Install
tic80
andfennel
packages from your package manager
$ ./utils.sh -c
to compile all Fennel source files;$ ./utils.sh -r
to run the compiled file with TIC-80;$ ./utils.sh -c -r
to do both at once;- If you need to add more files, create them inside the
source
directory and include the source files inSOURCE_FILES
array insideutils.sh
.
- Run your game with
$ ./utils.sh -r
; - Press
ESC
to open the prompt; - Enter
export html
and save the zip file wherever you want, for example inbuild/
; - Quit the game and unzip the files.
If you want to test the game you have to serve the exported files. In this example we will use python, but you can chose whatever method you prefer.
- Go to the terminal and change directory (
cd
) to where you unzipped the files; - Using python enter
$ pythom -m http.server
; - Visit http://0.0.0.0:8000/ on your browser to test your game.