Skip to content

Commit

Permalink
update config for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjblanchard committed Nov 9, 2024
1 parent e73afdf commit 4a70d40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
container:
image: emscripten/emsdk:3.1.70
env:
THING_ADD: <div><br>Use WASD to move<br>Built with github actions!</div>
THING_ADD: <div><br>Use WASD to move<br>Built with github actions!<br>Press B to "enter battle" and R to Reset.</div>
credentials:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down
4 changes: 2 additions & 2 deletions assets/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"x": 512,
"y": 288
},
"skipLogos": true,
"mute": true
"skipLogos": false,
"mute": false
}

4 changes: 4 additions & 0 deletions src/game/Systems/PlayerSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ static void startPlayer(GameObject, PlayerComponent& playerComponent, AnimationC
}

static void playerInput(GameObject go, PlayerComponent& player) {
if (KeyDown(Supergoon::KeyboardKeys::Key_R)) {
Events::PushEvent(Events::BuiltinEvents.ResetGameEvent, 0);
return;
}
auto state = GameObject::GetGameObjectWithComponents<GameState>();
auto& stateComponent = state->GetComponent<GameState>();
assert(state.has_value());
Expand Down

0 comments on commit 4a70d40

Please sign in to comment.