Skip to content

Commit

Permalink
Update flappy_bird.md (#1637)
Browse files Browse the repository at this point in the history
koden deres sletter hinder og oppdaterer score hele tiden, jeg endra den til å bare gjøre det når hinderet sin x-koordinat er 0 altså når den er helt på kanten av skjermen.
  • Loading branch information
MegErJens authored Mar 12, 2024
1 parent 46a4d18 commit e5238d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/microbit/pxt_flappy_bird/flappy_bird.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ basic.forever(function () {
game.gameOver()
}
}
if (hinder.get(LedSpriteProperty.X) == 0){
game.addScore(1)
hinder.delete()
}
}
})
```
Expand Down

0 comments on commit e5238d3

Please sign in to comment.