pinball
This commit is contained in:
parent
d8420594b6
commit
fb639c1d13
|
@ -169,11 +169,10 @@ var paddle = gameobject.clone("paddle", {
|
|||
},
|
||||
|
||||
shoot() {
|
||||
Log.warn("FIRING 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]);
|
||||
// m2.pos = this.pos.add([5-(this.length/2),0]);
|
||||
m2.pos = this.pos.add([5-(this.length/2),0]);
|
||||
},
|
||||
|
||||
sticky: false,
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
"pos": [ -0.5, -0.5 ]
|
||||
},
|
||||
"angle": 0,
|
||||
"scale": 2.91,
|
||||
"scale": 2,
|
||||
"from": "gameobject"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,3 +98,7 @@ var startcontroller = {
|
|||
};
|
||||
|
||||
Player.players[0].control(startcontroller);
|
||||
|
||||
run("file1.js");
|
||||
run("file2.js");
|
||||
Log.warn(x);
|
||||
|
|
Loading…
Reference in a new issue