2024-04-26 18:30:59 +00:00
|
|
|
modules = \
|
2024-05-18 21:32:36 +00:00
|
|
|
modules/game-core.scm \
|
2024-05-22 09:18:18 +00:00
|
|
|
modules/ces/component/inputs.scm \
|
2024-05-18 21:32:36 +00:00
|
|
|
modules/ces/component/player.scm \
|
|
|
|
modules/ces/component/position.scm \
|
|
|
|
modules/ces/component/velocity.scm \
|
|
|
|
modules/ces/component/sprite.scm \
|
2024-05-22 22:41:35 +00:00
|
|
|
modules/ces/component/tilemap.scm \
|
2024-05-18 21:32:36 +00:00
|
|
|
modules/ces/component.scm \
|
|
|
|
modules/ces/entity.scm \
|
|
|
|
modules/ces/entity-manager.scm \
|
|
|
|
modules/ces/system-manager.scm \
|
|
|
|
modules/ces/system.scm \
|
2024-05-23 19:54:07 +00:00
|
|
|
modules/ces/system/sprite-renderer.scm \
|
2024-05-22 09:18:18 +00:00
|
|
|
modules/ces/system/keyboard-reader.scm \
|
2024-05-22 22:41:35 +00:00
|
|
|
modules/ces/system/tilemap-renderer.scm \
|
2024-04-26 18:30:59 +00:00
|
|
|
modules/dom/canvas.scm \
|
2024-05-22 07:26:50 +00:00
|
|
|
modules/dom/console.scm \
|
2024-04-26 18:30:59 +00:00
|
|
|
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
|