Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function spwanapple() {
- var xpos = Math.floor((Math.random() * (WIDTH/SECTION)));
- var ypos = Math.floor((Math.random() * (HEIGHT/SECTION)));
- apples.list.push([xpos, ypos]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement