modded y coordinates for food spawning to always spawn completely on-screen

This commit is contained in:
Iris Lightshard 2019-04-03 12:54:05 -07:00
parent 03ce064cf6
commit 7eff511ff1
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

View file

@ -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;