We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7c3b0c commit 43f1129Copy full SHA for 43f1129
src/main/scala/introprog/examples/TestBlockGame.scala
@@ -88,6 +88,7 @@ object TestBlockGame:
88
def timestampLastMove = _timestampLastMove
89
90
var x = 0
91
+
92
var y = 0
93
94
def move(): Unit =
@@ -117,6 +118,7 @@ object TestBlockGame:
117
118
loopCounter += 1
119
120
final def start(): Unit =
- pixelWindow.show() // möjliggör omstart även om fönstret stängts...
121
+ pixelWindow.show() // show window again if closed and start() is called again
122
gameLoop(stopWhen = x == dim._1 - 1 && y == dim._2 - 1)
123
124
end MovingBlock
0 commit comments