[Added] Sprite animation for player, crosshair mouse, [Updated] Collision
This commit is contained in:
@@ -13,12 +13,12 @@ TutorialScreen::TutorialScreen() {
|
||||
|
||||
this->background = Background(EBackground::TUTORIAL);
|
||||
|
||||
InputService::getInstance().setKeysToWatch({KEY_ENTER}, {MOUSE_BUTTON_LEFT});
|
||||
InputService::getInstance().setKeysToWatch({KEY_ENTER},{});
|
||||
}
|
||||
|
||||
void TutorialScreen::logic()
|
||||
{
|
||||
if ( InputService::getInstance().isKeyPressed(KEY_ENTER) || InputService::getInstance().isMouseButtonPressed(MOUSE_BUTTON_LEFT))
|
||||
if ( InputService::getInstance().isKeyPressed(KEY_ENTER))
|
||||
{
|
||||
StateService::getInstance().setScreen(EScreen::MAIN);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user