A simple snake game implement in ClojureScript for tutorial.
-
A basic snake game only use traditional html method. (Without react.js, vue.js ...etc)
-
snake game implement with quil
-
Interactive slides based on t3tr0s-slides, I rewrite it for Clojure/Taiwan meetup.
This slide is still under construction and will be updated soon.
-
Install boot-clj for handle this project
-
Goto the implementation you want to play with
-
Start the
dev
task. In a terminal run:$ boot dev
This will give you a development setup with:
- auto compilation on file changes
- audible warning for compilation success or failures
- auto reload the html page on changes
- Clojurescript REPL
-
Go to http://localhost:3000 in your browser.
-
If you edit and save a file, the task will recompile the code and reload the browser to show the updated version.
-
If you want to connect to ClojureScript REPL, enter following in Clojure REPL:
(start-repl)
-
Run the
prod
task. In a terminal run:$ boot prod
-
The compiled files will be on the
target/
directory. This will use advanced compilation and prerender the html.
Copyright © 2017 Yen-Chin, Lee <coldnew.tw@gmail.com>
Distributed under the MIT License.