Merge remote-tracking branch 'origin/models' into models
# Conflicts: # frontend/game.ts
This commit is contained in:
commit
d0724e668a
3 changed files with 15 additions and 13 deletions
|
|
@ -48,8 +48,7 @@ function draw() {
|
|||
obstacle.draw();
|
||||
obstacle.update();
|
||||
|
||||
// console.log(obstacle.position.x);
|
||||
if(obstacle.position.x <= -obstacleWidth) {
|
||||
if(obstacle.position.x < -obstacleWidth) {
|
||||
obstacle.resetPosition(true);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue