forked from tas/major_tom
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:
8
Makefile
8
Makefile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user