Base game template

This commit is contained in:
Jeremy Kaplan 2026-08-09 13:08:28 -04:00
commit f83c7c0781
7 changed files with 6158 additions and 0 deletions

16
Makefile Normal file
View file

@ -0,0 +1,16 @@
.DEFAULT_GOAL := help
.PHONY: help
help: ## List targets in this Makefile
@awk 'BEGIN { FS = ":|:.*?## "; OFS="\t" }; /^[0-9a-zA-Z_-]+?:/ { print $$1, $$2 }' $(MAKEFILE_LIST) \
| column --separator $$'\t' --table --table-wrap 2 --output-separator ' ' \
| sort --dictionary-order
.PHONY: build
build:
cargo build --release --target wasm32-unknown-unknown --no-default-features --features wasm
wasm-bindgen --target web --out-dir build target/wasm32-unknown-unknown/release/breakout.wasm
.PHONY: publish
publish:
rsync --verbose --checksum --recursive --safe-links --delete --progress build/ root@lab:/www/games/breakout