Jetpack added

This commit is contained in:
Debugman committed 2026-10-17 15:06:15 -05:00
1 parent a4cbce328d
commit 73361d2cf3
16 files changed
+385 -17

No files matched your search

+7 -7
View File
@@ -1,16 +1,16 @@
extends TextureButton
var first_press = false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
pass
func _process(delta: float) -> void:
pass
func _on_toggled(toggled_on: bool) -> void:
if !first_press:
first_press = true
%Player2D.get_node("BackgroundMusic").play()
toggled_on = !toggled_on
%Player2D.get_node("BackgroundMusic").playing = !%Player2D.get_node("BackgroundMusic").playing
%Player2D.get_node("BackgroundMusic").stream_paused = !%Player2D.get_node("BackgroundMusic").stream_paused