Skip to content

Commit

Permalink
Increased move keys delay on menu + removed HoverButton method from b…
Browse files Browse the repository at this point in the history
…oth conditionals
  • Loading branch information
Brunoo16 committed Apr 8, 2019
1 parent 2f30ea5 commit 09c33d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gaster_fight/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,7 @@ void Player::Update()
{
this->button_hovered--;
}
this->HoverButton(this->button_hovered);
button_hover_move_tick = current_tick + 150;
}

else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Right))
{
if (this->button_hovered == Button_Type::Mercy_Button)
Expand All @@ -246,9 +243,9 @@ void Player::Update()
{
this->button_hovered++;
}
this->HoverButton(this->button_hovered);
button_hover_move_tick = current_tick + 150;
}
this->HoverButton(this->button_hovered);
button_hover_move_tick = current_tick + 200;
}

if (sf::Keyboard::isKeyPressed(sf::Keyboard::Z))
Expand Down

0 comments on commit 09c33d9

Please sign in to comment.