simplification structure

This commit is contained in:
Elouan 2025-01-24 14:42:27 +01:00
parent 5ee577d733
commit 8abfc2f900
12 changed files with 104 additions and 42 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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()

View file

@ -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)