add fixture autofire

This commit is contained in:
Asraelite 2016-03-30 20:40:05 +01:00
parent d9e8e217c6
commit 8e0c4b02e4
9 changed files with 40 additions and 8 deletions

View file

@ -29,7 +29,7 @@ class World {
this.bounds = {
left: 0,
right: 150,
right: 60,
top: 0,
bottom: 30
}
@ -115,7 +115,7 @@ class World {
}
populate() {
for (var i = 0; i < 50; i++) {
for (var i = 0; i < 30; i++) {
let pos = {
x: Math.random() * this.bounds.right,
y: Math.random() * this.bounds.bottom