simplification structure
This commit is contained in:
parent
5ee577d733
commit
8abfc2f900
12 changed files with 104 additions and 42 deletions
|
@ -1,8 +0,0 @@
|
|||
extends Instrument
|
||||
class_name Corde
|
||||
|
||||
func _init(nom : String) -> void:
|
||||
super(nom)
|
||||
|
||||
func pincer() -> void:
|
||||
print("On pince l'instrument %s." % nom)
|
|
@ -1,13 +1,10 @@
|
|||
extends Vent
|
||||
class_name Flute
|
||||
|
||||
var Balle = preload("res://scenes/attaques/Balle.tscn").instantiate() # Charger le nœud Balle
|
||||
|
||||
func _init() -> void:
|
||||
super("Flûte")
|
||||
|
||||
func jouer_melodie(player_position) -> void:
|
||||
print("La flûte joue une mélodie.")
|
||||
jouer()
|
||||
spawn_balle(player_position)
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
class_name Instrument
|
||||
|
||||
var nom : String
|
||||
|
||||
func _init(nom : String) -> void:
|
||||
self.nom = nom
|
||||
|
||||
func jouer() -> void:
|
||||
print("L'instrument %s est joué." % nom)
|
|
@ -1,9 +0,0 @@
|
|||
extends Instrument
|
||||
class_name Percussion
|
||||
|
||||
|
||||
func _init(nom : String) -> void:
|
||||
super(nom)
|
||||
|
||||
func frapper() -> void:
|
||||
print("On frappe l'instrument %s." % nom)
|
|
@ -1,8 +1,5 @@
|
|||
extends Percussion
|
||||
class_name Tambour
|
||||
|
||||
func _init() -> void:
|
||||
super("Tambour")
|
||||
|
||||
func faire_roulement() -> void:
|
||||
print("Le tambour fait un roulement.")
|
||||
jouer()
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
extends Instrument
|
||||
class_name Vent
|
||||
|
||||
func _init(nom : String) -> void:
|
||||
super(nom)
|
||||
|
||||
func souffler() -> void:
|
||||
print("On souffle dans l'instrument %s." % nom)
|
Loading…
Add table
Add a link
Reference in a new issue