Optimizations and debug options

This commit is contained in:
2025-11-25 01:06:35 -07:00
parent 57d08f2f04
commit c84ba37353
13 changed files with 377 additions and 212 deletions

View File

@@ -58,12 +58,17 @@ func (s *Surface) IsWalkable() bool {
}
func (s *Surface) Draw(screen *ebiten.Image) {
drawX := float32(int(s.X + 0.5))
drawY := float32(int(s.Y + 0.5))
drawWidth := float32(int(s.Width + 0.5))
drawHeight := float32(int(s.Height + 0.5))
vector.FillRect(
screen,
float32(s.X),
float32(s.Y),
float32(s.Width),
float32(s.Height),
drawX,
drawY,
drawWidth,
drawHeight,
s.Color,
false,
)