gdformat
This commit is contained in:
parent
ad43444126
commit
3c6025811b
2 changed files with 16 additions and 13 deletions
15
Scenes/Button_Node2D.gd
Normal file → Executable file
15
Scenes/Button_Node2D.gd
Normal file → Executable file
|
@ -16,12 +16,15 @@ func _ready():
|
||||||
func _process(_delta):
|
func _process(_delta):
|
||||||
match villain.get_frame():
|
match villain.get_frame():
|
||||||
2:
|
2:
|
||||||
if(etat) : print("non")
|
if etat:
|
||||||
else: print("caché")
|
print("non")
|
||||||
|
else:
|
||||||
|
print("caché")
|
||||||
_:
|
_:
|
||||||
if(etat) : print("oui")
|
if etat:
|
||||||
else: print("caché")
|
print("oui")
|
||||||
# pass
|
else:
|
||||||
|
print("caché")
|
||||||
|
|
||||||
|
|
||||||
func _on_Button_pressed():
|
func _on_Button_pressed():
|
||||||
|
@ -33,5 +36,3 @@ func _on_Button_pressed():
|
||||||
self.StyleBoxTexture.set_texture(_texture2) # pas appuyé
|
self.StyleBoxTexture.set_texture(_texture2) # pas appuyé
|
||||||
|
|
||||||
"""
|
"""
|
||||||
""" """
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
pass # Replace with function body.
|
pass # Replace with function body.
|
||||||
|
@ -18,6 +19,7 @@ func _on_PlayButton_pressed():
|
||||||
func _on_Help_Button_pressed():
|
func _on_Help_Button_pressed():
|
||||||
print("help")
|
print("help")
|
||||||
|
|
||||||
|
|
||||||
func _on_Quit_Button_pressed():
|
func _on_Quit_Button_pressed():
|
||||||
get_tree().quit()
|
get_tree().quit()
|
||||||
# Replace with function body.
|
# Replace with function body.
|
||||||
|
|
Reference in a new issue