Skip to content

Commit

Permalink
my rain isn't looping
Browse files Browse the repository at this point in the history
  • Loading branch information
johyunjihyunji committed Oct 13, 2024
1 parent a846f35 commit 36d3292
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions sketch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let stillFrame, runningGif;
let stillFrame, runningGif, rainGif;
let speed = 5;
let direction = 0; // -1 for left, 0 for still, 1 for right
let curPos;
Expand All @@ -14,7 +14,7 @@ function preload() {
yellowStarImage = loadImage('./static/yellow_star.png');
pinkStarImage = loadImage('./static/pink_star.png');

rainGif = loadImage("./static/rainFrame.gif");
rainGif = loadImage("./static/runFrame.gif");
}

function setup() {
Expand Down

0 comments on commit 36d3292

Please sign in to comment.