Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
viliRocha committed Aug 11, 2024
1 parent 2dcadd6 commit 0a1938d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ function draw() {
ground.velocity.x = game_velocity;

//Generate a new ground in front of the other one otherwise player would fall(ground has speed)
// with my idea, the ground animation moves and not the object itself, so this wouldn't be necessary
if (ground.x <= -windowWidth - 2200) {
ground.x = ground.width / 2;
}
Expand Down Expand Up @@ -262,7 +261,7 @@ function draw() {
bg = 156;
moonOpacity = 0;

//reset the moons position
//reset the moon's position
moon.position.y = -100;

//reset cactuses, clouds and Pterodactylus generation
Expand Down

0 comments on commit 0a1938d

Please sign in to comment.