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:
parent
448f3a0262
commit
b518f03eeb
@ -22,7 +22,7 @@ func _input(event):
|
|||||||
|
|
||||||
if held and not event.pressed:
|
if held and not event.pressed:
|
||||||
held = false;
|
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:
|
if event is InputEventMouseMotion and held:
|
||||||
position = event.position;
|
position = event.position;
|
||||||
|
Loading…
Reference in New Issue
Block a user