test
This commit is contained in:
parent
1ed3ec0836
commit
3ff4151fbd
|
@ -152,7 +152,7 @@ var paddle = gameobject.clone("paddle", {
|
|||
var xdiff = hit.pos.x - this.pos.x;
|
||||
// if (Math.sign(xdiff) === Math.sign(hit.obj.velocity)) return;
|
||||
var oldvel = hit.obj.velocity;
|
||||
var scaler = Math.max(Math.abs(xdiff)/30, 1);
|
||||
var scaler = Math.max(Math.abs(xdiff)/30, 1.05);
|
||||
hit.obj.velocity = hit.obj.velocity.scale(scaler);
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
function startmenu() {
|
||||
GUI.column([
|
||||
GUI.text.bind(this,"Press uyyyyy start"),
|
||||
GUI.text.bind(this,"Press ENTER start"),
|
||||
GUI.image.bind(this,"bigball.png"),
|
||||
GUI.text.bind(this,"Press ESCAPE to exit"),
|
||||
], Window.dimensions.scale(0.5));
|
||||
|
||||
// GUI.image("bigball.png", [0,0]);
|
||||
GUI.image("bigball.png", [300,300]);
|
||||
}
|
||||
|
||||
register_gui(startmenu);
|
||||
|
|
Loading…
Reference in a new issue