added MinMoves to lvl files, added score system in game observer

This commit is contained in:
2024-02-28 19:58:05 +01:00
parent ebaeb51f68
commit 1c0f3d19d0
19 changed files with 112 additions and 78 deletions

View File

@@ -4,8 +4,6 @@ import (
"fmt"
"image"
. "openquell/config"
"log/slog"
)
// physical location on screen
@@ -105,13 +103,13 @@ func (tile *Position) Intersects(moving *Position, velocity *Velocity) (bool, *P
object.Update(tile.X, tile.Rect.Max.Y)
}
slog.Debug("Intersect",
"velocity", velocity.Data,
"player", moving,
"moved player", object,
"collision at", is,
"tilepos", tile,
)
// slog.Debug("Intersect",
// "velocity", velocity.Data,
// "player", moving,
// "moved player", object,
// "collision at", is,
// "tilepos", tile,
// )
return true, object
}