diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 32260b1..4497d42 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: container: image: emscripten/emsdk:3.1.70 env: - THING_ADD:

Use WASD to move
Built with github actions!
+ THING_ADD:

Use WASD to move
Built with github actions!
Press B to "enter battle" and R to Reset.
credentials: username: ${{ vars.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} diff --git a/assets/config.json b/assets/config.json index 71e9189..2da4e26 100644 --- a/assets/config.json +++ b/assets/config.json @@ -8,7 +8,7 @@ "x": 512, "y": 288 }, - "skipLogos": true, - "mute": true + "skipLogos": false, + "mute": false } diff --git a/src/game/Systems/PlayerSystem.cpp b/src/game/Systems/PlayerSystem.cpp index 3389bde..3b9197f 100644 --- a/src/game/Systems/PlayerSystem.cpp +++ b/src/game/Systems/PlayerSystem.cpp @@ -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(); auto& stateComponent = state->GetComponent(); assert(state.has_value());