modded y coordinates for food spawning to always spawn completely on-screen
This commit is contained in:
parent
03ce064cf6
commit
7eff511ff1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue