Rebind Space to jump, gate editor behind localStorage flag

Space is now the alternate jump key (was shoot). Web shell shows
game controls by default and hides editor UI unless
localStorage.show_editor is set to 'true'. The E key and ?edit URL
are blocked when the editor is not enabled.

Also fix Makefile to track web/shell.html as a WASM link dependency
so shell changes trigger a rebuild.
This commit is contained in:
Thomas
2026-03-01 18:24:21 +00:00
parent 3584aace75
commit 302bcc592d
4 changed files with 120 additions and 72 deletions

View File

@@ -80,7 +80,13 @@ OBJ_ALL := $(SRC_ALL:src/%.c=$(OBJ_DIR)/%.o)
all: $(BIN)
$(BIN): $(OBJ_ALL) | outdirs
# On WASM builds the shell template is baked into the output HTML,
# so re-link whenever it changes.
ifdef WASM
EXTRA_LINK_DEPS := web/shell.html
endif
$(BIN): $(OBJ_ALL) $(EXTRA_LINK_DEPS) | outdirs
$(CC) $(OBJ_ALL) -o $@ $(LDFLAGS)
outdirs: