Optimizations and debug options
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user