fixed snap in bug, started with space themed sprites
This commit is contained in:
@@ -115,3 +115,8 @@ func (tile *Position) Intersects(moving *Position, velocity *Velocity) (bool, *P
|
||||
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (tile *Position) Intersecting(position *Position, velocity *Velocity) bool {
|
||||
is := tile.Rect.Bounds().Intersect(position.Rect.Bounds())
|
||||
return is != image.ZR
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user