added MinMoves to lvl files, added score system in game observer
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user