TakeV
bb06bf2cd2
Add initial components Add player component Add system scaffolding Add entity-manager Add game-core Redo entities so their components are stored in a searchable hashtable Make systems thunk-based Add system-manager Create game-core
34 lines
887 B
Makefile
34 lines
887 B
Makefile
modules = \
|
|
modules/game-core.scm \
|
|
modules/ces/component/player.scm \
|
|
modules/ces/component/position.scm \
|
|
modules/ces/component/velocity.scm \
|
|
modules/ces/component/sprite.scm \
|
|
modules/ces/component.scm \
|
|
modules/ces/entity.scm \
|
|
modules/ces/entity-manager.scm \
|
|
modules/ces/system-manager.scm \
|
|
modules/ces/system.scm \
|
|
modules/dom/canvas.scm \
|
|
modules/dom/document.scm \
|
|
modules/dom/element.scm \
|
|
modules/dom/event.scm \
|
|
modules/dom/image.scm \
|
|
modules/dom/media.scm \
|
|
modules/dom/window.scm \
|
|
modules/math.scm \
|
|
modules/math/rect.scm \
|
|
modules/math/vector.scm
|
|
|
|
game.wasm: game.scm $(modules)
|
|
guild compile-wasm -L modules -o $@ $<
|
|
|
|
serve: game.wasm
|
|
guile -c '((@ (hoot web-server) serve))'
|
|
|
|
bundle: game.wasm
|
|
rm game.zip || true
|
|
zip game.zip -r assets/ js-runtime/ game.js game.css game.wasm index.html
|
|
|
|
clean:
|
|
rm -f game.wasm game.zip
|