1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-15 05:25:57 +00:00

Improve ship grid alignment when snapping. Fixes #2

This commit is contained in:
John 2021-10-31 22:04:11 -05:00
parent 448f3a0262
commit b518f03eeb

View File

@ -22,7 +22,7 @@ func _input(event):
if held and not event.pressed:
held = false;
position = position.snapped(Vector2(32, 32)) + Vector2(2, 2)
position = position.snapped(Vector2(32, 32)) + Vector2(4, 4)
if event is InputEventMouseMotion and held:
position = event.position;