diff --git a/game/collision.go b/game/collision.go index 5761563..c9e5b2b 100644 --- a/game/collision.go +++ b/game/collision.go @@ -15,6 +15,10 @@ func CheckShapeCollision(pos core.Vec2i8, shape *Shape, grid *Grid) bool { if block.Y >= int8(grid.Height()) { return true } + + if grid.At(byte(block.X), byte(block.Y)) != BLOCK_EMPTY { + return true + } } return false