mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-14 21:15:58 +00:00
Revert "When interacting with something (object or ship) and SFX is played"
This reverts commit a2a0607364
.
This commit is contained in:
parent
a2a0607364
commit
4eb6a6cad4
@ -17,5 +17,4 @@ func _ready():
|
||||
|
||||
func _on_Forfeit_pressed():
|
||||
queue_free();
|
||||
AudioBus.emit_signal("button_clicked")
|
||||
MessageBus.emit_signal("change_scene", "Title")
|
||||
|
@ -21,7 +21,6 @@ func _input(event):
|
||||
if event is InputEventMouseButton and event.button_index == BUTTON_LEFT:
|
||||
if (event.position - position).length() < click_radius:
|
||||
if not held and event.pressed:
|
||||
AudioBus.emit_signal("button_clicked")
|
||||
held = true;
|
||||
|
||||
if held and not event.pressed:
|
||||
@ -107,7 +106,6 @@ func _input(event):
|
||||
if checkOriginalPos():
|
||||
return
|
||||
else:
|
||||
AudioBus.emit_signal("button_clicked")
|
||||
if originalPos == null:
|
||||
if position == originalPos:
|
||||
return
|
||||
@ -196,14 +194,12 @@ func _input(event):
|
||||
# pass
|
||||
|
||||
func pickup():
|
||||
#AudioBus.emit_signal("button_clicked")
|
||||
if held:
|
||||
return
|
||||
mode = RigidBody2D.MODE_STATIC
|
||||
held = true
|
||||
|
||||
func drop(impulse=Vector2.ZERO):
|
||||
#AudioBus.emit_signal("button_clicked")
|
||||
if held:
|
||||
mode = RigidBody2D.MODE_RIGID
|
||||
apply_central_impulse(impulse)
|
||||
|
@ -5,21 +5,17 @@ func _ready():
|
||||
$VBoxContainer/Singleplayer.grab_focus()
|
||||
|
||||
func _on_Singleplayer_pressed():
|
||||
AudioBus.emit_signal("button_clicked")
|
||||
MessageBus.emit_signal("change_scene", "Singleplayer")
|
||||
queue_free()
|
||||
|
||||
func _on_Multiplayer_pressed():
|
||||
AudioBus.emit_signal("button_clicked")
|
||||
MessageBus.emit_signal("change_scene", "Multiplayer")
|
||||
queue_free()
|
||||
|
||||
func _on_Options_pressed():
|
||||
AudioBus.emit_signal("button_clicked")
|
||||
MessageBus.emit_signal("change_scene", "Options")
|
||||
queue_free()
|
||||
|
||||
func _on_Quit_pressed():
|
||||
AudioBus.emit_signal("button_clicked")
|
||||
MessageBus.emit_signal("quit")
|
||||
queue_free()
|
||||
|
Loading…
Reference in New Issue
Block a user