Skip to content

Commit

Permalink
fixed the first setting
Browse files Browse the repository at this point in the history
  • Loading branch information
loglot committed Aug 29, 2023
1 parent 3a3e110 commit 7cf5660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions lib/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ let draw = {
this.DrawStroked("yet another collectathon", 250, 200)
this.DrawStroked("press space to start", 260, 500)
this.DrawStroked(`growth on coin: ${player.GrowOnCoin ? "yes" : "no"} (press t to flip)`, 260, 600)
} else{
if (coin.Exists)
coin.checkPlayerCollision()
this.Circ(player.R, "#afbfaf", player.X, player.Y, true)
} else {
if (coin.Exists) {
// console.log (coin)
coin.checkPlayerCollision()
this.Circ(player.R, "#afbfaf", player.X, player.Y, true)
this.Circ(coin.R, "yellow", coin.X, coin.Y, true)

}
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ let keyManager = {
}

if (this.isKeyPressed("Digit1")) {
misc.GrowPlayerOnCoin = !misc.GrowPlayerOnCoin;
player.GrowOnCoin = !player.GrowOnCoin;
}
} else {
if (this.isKeyPressed("KeyW")) {
Expand Down

0 comments on commit 7cf5660

Please sign in to comment.