Some code I reuse for games. There is possibly some emphasis on iterative development, but it's still young and convoluted.
Currently an Opengl window can be opened with this:
(defun initialize ())
(defun handle-input ())
(defun render ())
(defun update ())
(defun cleanup ())
(defun example ()
(err:err-run "insert-title"
:init-code (initialize)
:input-code (handle-input)
:render-code (render)
:update-code (update)
:cleanup-code (cleanup)))
See examples folder for some basic projects.
err is known to work with SBCL and Clozure on Linux and Windows (get libraries with win-builds).
-
Get Common Lisp, remember to install quicklisp.
-
Get dependencies, either through quicklisp or from their repositories.
Not in quicklisp (get from their repositories): * cl-soil
- clone this project into the quicklisp/local-projects/ (by default in your user home folder):
$ cd ~/quickload/local-projects/
$ git clone https://github.com/hahahahaman/err
- add ASD project file
Add the relative path of the asd file into system-index.txt (also in the local-projects folder):
err/err.asd
err/err-examples.asd
OR
launch Common Lisp, add project to asdf, and load err:
$ sbcl
* (push #p"/path/to/err" asdf:*central-registry*)
* (ql:quickload :err)
OR
more ways found here.