This commit is contained in:
John Alanbrook 2023-05-31 15:40:35 +00:00
parent 1ed3ec0836
commit 3ff4151fbd
2 changed files with 3 additions and 3 deletions

View file

@ -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);
},
});

View file

@ -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);