From 36d329233302f9b05704c2e9c06ec0eba4ef5691 Mon Sep 17 00:00:00 2001 From: Johanna Lee Date: Sun, 13 Oct 2024 16:29:33 -0700 Subject: [PATCH] my rain isn't looping --- .DS_Store | Bin 8196 -> 8196 bytes sketch.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.DS_Store b/.DS_Store index b836936920ec79b4d5a9be05549c8aa06d7cd18b..1e83868a2a4f8890e2bc25f23499e2730bd3567e 100644 GIT binary patch delta 20 bcmZp1XmQw3F2rtbrlVkNY_z#fsEro@La7Dt delta 20 bcmZp1XmQw3F2rtPuA^XVX1KXdsEro@LZ1cj diff --git a/sketch.js b/sketch.js index 78067fb..e0b10bc 100644 --- a/sketch.js +++ b/sketch.js @@ -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; @@ -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() {