Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #9 #10

Merged
merged 3 commits into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deps/Boxer
Submodule Boxer added at 0451c5
3 changes: 0 additions & 3 deletions resources/sprites/drag1.png

This file was deleted.

3 changes: 0 additions & 3 deletions resources/sprites/drag2.png

This file was deleted.

4 changes: 2 additions & 2 deletions resources/sprites/grab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/sprites/idle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/sprites/idle2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/sprites/jumpAir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/sprites/jumpEnd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/sprites/sleep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/sprites/startJump.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions resources/sprites/walk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 1 addition & 14 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1558,22 +1558,9 @@ struct RandomDelayTransitionMultipleExit : public RandomDelayTransition

struct StartLeftClicTransition : public StateMachine::Node::Transition
{
protected:
bool leftWasPressed = false;

public:
bool canTransition(GameData& blackBoard) final
{
if (blackBoard.leftButtonEvent == GLFW_PRESS)
{
if (leftWasPressed)
{
leftWasPressed = false;
return true;
}
leftWasPressed = true;
}
return false;
return blackBoard.leftButtonEvent == GLFW_PRESS;
};
};

Expand Down