mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 05:25:57 +00:00
Merge branch 'main' of https://github.com/StatewideInk/Group12
This commit is contained in:
commit
71cc294774
@ -24,10 +24,9 @@ func _input(event):
|
|||||||
if held and not event.pressed:
|
if held and not event.pressed:
|
||||||
held = false;
|
held = false;
|
||||||
if (position.x > 17.4 and position.x < 337.5) and (position.y > 20.2 and position.y < 335.5):
|
if (position.x > 17.4 and position.x < 337.5) and (position.y > 20.2 and position.y < 335.5):
|
||||||
position = position.snapped(Vector2(32, 32)) + Vector2(2, 2)
|
position = position.snapped(Vector2(32, 32)) + Vector2(4, 4)
|
||||||
else:
|
else:
|
||||||
position = originalPos
|
position = originalPos
|
||||||
|
|
||||||
|
|
||||||
if event is InputEventMouseMotion and held:
|
if event is InputEventMouseMotion and held:
|
||||||
if snapOriginalPos == false:
|
if snapOriginalPos == false:
|
||||||
|
Loading…
Reference in New Issue
Block a user