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:
@@ -40,7 +40,7 @@ static SDL_Scancode s_bindings[ACTION_COUNT] = {
|
||||
|
||||
/* Alternate bindings (0 = no alternate) */
|
||||
static SDL_Scancode s_alt_bindings[ACTION_COUNT] = {
|
||||
[ACTION_SHOOT] = SDL_SCANCODE_SPACE,
|
||||
[ACTION_JUMP] = SDL_SCANCODE_SPACE,
|
||||
};
|
||||
|
||||
void input_init(void) {
|
||||
|
||||
Reference in New Issue
Block a user