This commit is contained in:
John Alanbrook 2023-06-08 22:27:51 +00:00
parent d8420594b6
commit fb639c1d13
3 changed files with 7 additions and 4 deletions

View file

@ -169,11 +169,10 @@ var paddle = gameobject.clone("paddle", {
}, },
shoot() { shoot() {
Log.warn("FIRING MISSILE");
var m1 = World.spawn(gameobjects['missile']); var m1 = World.spawn(gameobjects['missile']);
// var m2 = World.spawn(gameobjects['missile']); var m2 = World.spawn(gameobjects['missile']);
m1.pos = this.pos.add([(this.length/2)-5,0]); m1.pos = this.pos.add([(this.length/2)-5,0]);
// m2.pos = this.pos.add([5-(this.length/2),0]); m2.pos = this.pos.add([5-(this.length/2),0]);
}, },
sticky: false, sticky: false,

View file

@ -104,7 +104,7 @@
"pos": [ -0.5, -0.5 ] "pos": [ -0.5, -0.5 ]
}, },
"angle": 0, "angle": 0,
"scale": 2.91, "scale": 2,
"from": "gameobject" "from": "gameobject"
} }
} }

View file

@ -98,3 +98,7 @@ var startcontroller = {
}; };
Player.players[0].control(startcontroller); Player.players[0].control(startcontroller);
run("file1.js");
run("file2.js");
Log.warn(x);