Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
epic-64 committed Oct 18, 2024
1 parent 80be8e6 commit 844a969
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/scala/ScalaScape/ScalaScape.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ScalaScape(forceTerminal: Boolean):
while (running) {
val keyStroke: KeyStroke = screen.readInput()
if keyStroke == KeyType.EOF then running = false
else handleInput(keyStroke, state)
else state.selectedScene.handleInput(keyStroke, state)
}
}
end inputLoop
Expand All @@ -85,8 +85,4 @@ class ScalaScape(forceTerminal: Boolean):

state
end draw

private def handleInput(keyStroke: KeyStroke, state: GameState): GameState =
state.selectedScene.handleInput(keyStroke, state)
end handleInput
end ScalaScape

0 comments on commit 844a969

Please sign in to comment.