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

@@ -50,7 +50,7 @@ function wrap(pos) {
resetGame()
this.update = function(dt) {
var update = function(dt) {
if (gameState != "playing") return
moveTimer += dt
if (moveTimer < moveInterval) return
@@ -80,7 +80,7 @@ this.update = function(dt) {
else pop(snake)
}
this.hud = function() {
var hud = function() {
// Optional clear screen
draw.rectangle({x:0, y:0, width:config.width, height:config.height}, [0,0,0,1])
@@ -104,7 +104,7 @@ this.hud = function() {
// No immediate reversal
// "Up" means y=1, so going physically up on screen
this.inputs = {
var inputs = {
up: function() {
if (direction.y != -1) nextDirection = {x:0,y:1}
},
@@ -122,4 +122,4 @@ this.inputs = {
}
}
input.player[0].control(this)
//input.player[0].control()