From 7eff511ff184230419a6fd94c8aafdc8716d5df3 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Wed, 3 Apr 2019 12:54:05 -0700 Subject: [PATCH] modded y coordinates for food spawning to always spawn completely on-screen --- Pickup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pickup.js b/Pickup.js index e6c32de..fd17ad6 100644 --- a/Pickup.js +++ b/Pickup.js @@ -3,7 +3,7 @@ window.stuff = [{},{},{},{},{},{},{},{},{},{}] function Pickup() { var pType = Math.floor(Math.random()*10); - this.y = 0 + Math.floor(Math.random()*164); + this.y = 0 + Math.floor(Math.random()*148); this.x = 320 + Math.floor(Math.random()*120); this.vX = -4 - Math.floor(Math.random()*catbug.maxHP); this.vY = 0;