fix prosperon layout

This commit is contained in:
2026-02-20 21:23:21 -06:00
parent e78faccab8
commit ff2e4bd578
44 changed files with 17 additions and 18 deletions

View File

@@ -23,7 +23,7 @@ function resetBall() {
resetBall()
this.update = function(dt) {
var update = function(dt) {
// Move paddles: positive Y is up, so W/↑ means p.y += speed
if (input.keyboard.down('w')) p1.y += p1.speed*dt
if (input.keyboard.down('s')) p1.y -= p1.speed*dt
@@ -69,7 +69,7 @@ this.update = function(dt) {
if (l>config.width) { score1++; resetBall() }
}
this.hud = function() {
var hud = function() {
// Clear screen black
draw.rectangle({x:0, y:0, width:config.width, height:config.height}, [0,0,0,1])