mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2025-02-04 12:28:35 +00:00
Improve ship grid alignment when snapping. Fixes #2
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user