Skip to content

Commit 7458b82

Browse files
authored
fix: function -> class method
Backport from novafacing/selene
1 parent e9a92dd commit 7458b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Game.yue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Game
1414
-- and that's it!
1515
@player = Player.Player!
1616

17-
keypressed: (key, scancode, isrepeat) ->
17+
keypressed: (key, scancode, isrepeat) =>
1818
-- Called when a key is pressed. We will check for keypresses in
1919
-- our player's update function for movement, so this just serves
2020
-- as a way to quit the game.

0 commit comments

Comments
 (0)