Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Use correct instance of MovingSquare
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Aug 2, 2024
1 parent 0cd9c80 commit 85d1994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MovingSquare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class MovingSquare {

this.move(this.x, this.y);

input.onButtonPressed(Button.A, () => movingSquare.onButtonAPressed());
input.onButtonPressed(Button.B, () => movingSquare.onButtonBPressed());
input.onButtonPressed(Button.A, () => this.onButtonAPressed());
input.onButtonPressed(Button.B, () => this.onButtonBPressed());
}

private redraw() {
Expand Down

0 comments on commit 85d1994

Please sign in to comment.