-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Toggle the HoverButton with left & right hand - Open/Close the appropriate doors & shutters - Add a sound effect for toggling buttons
- Loading branch information
Showing
37 changed files
with
725 additions
and
252 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#pragma once | ||
|
||
#include "game_system_ISystem.h" | ||
|
||
namespace sym::game::system | ||
{ | ||
|
||
class ButtonInteraction final : public ISystem | ||
{ | ||
public: | ||
ButtonInteraction(scene::GameState& state); | ||
|
||
void Update() final; | ||
|
||
private: | ||
static constexpr int KEYPRESS_LASTING_UPDATE_COUNT = 5; | ||
int lKeyLastingCount = -1; | ||
int rKeyLastingCount = -1; | ||
|
||
void HoverButtonPlayerInteract_(); | ||
void HoverButtonThrownSymbolInteract_(); | ||
|
||
void UpdateKeyLastingCount_(); | ||
bool IsLKeyPressLasts_() const; | ||
bool IsRKeyPressLasts_() const; | ||
void ResetLKeyPress_(); | ||
void ResetRKeyPress_(); | ||
void ToggleOpenedHoverButtonAssociatedOpenables_(int hoverButtonIdx); | ||
}; | ||
|
||
} // namespace sym::game::system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#include "scene_GameState.h" | ||
|
||
namespace sym::game::system | ||
{ | ||
|
||
class ISystem | ||
{ | ||
public: | ||
virtual ~ISystem() = default; | ||
ISystem(scene::GameState& state) : state_(state) | ||
{ | ||
} | ||
|
||
virtual void Update() = 0; | ||
|
||
protected: | ||
scene::GameState& state_; | ||
}; | ||
|
||
} // namespace sym::game::system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include "game_system_ISystem.h" | ||
|
||
namespace sym::game::system | ||
{ | ||
|
||
class PlayerMovement final : public ISystem | ||
{ | ||
public: | ||
PlayerMovement(scene::GameState& state); | ||
|
||
void Update() final; | ||
|
||
private: | ||
}; | ||
|
||
} // namespace sym::game::system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.