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
|
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:
|
func jouer_melodie(player_position) -> void:
|
||||||
print("La flûte joue une mélodie.")
|
print("La flûte joue une mélodie.")
|
||||||
jouer()
|
|
||||||
spawn_balle(player_position)
|
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:
|
func faire_roulement() -> void:
|
||||||
print("Le tambour fait un roulement.")
|
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)
|
|
BIN
ressources/images/note1.png
Normal file
BIN
ressources/images/note1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 203 B |
34
ressources/images/note1.png.import
Normal file
34
ressources/images/note1.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://csbrejwjfkspr"
|
||||||
|
path="res://.godot/imported/note1.png-96f27d997f75f6c14a701aa9df88a950.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://ressources/images/note1.png"
|
||||||
|
dest_files=["res://.godot/imported/note1.png-96f27d997f75f6c14a701aa9df88a950.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
ressources/images/note2.png
Normal file
BIN
ressources/images/note2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 203 B |
34
ressources/images/note2.png.import
Normal file
34
ressources/images/note2.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://1xayae6jyuge"
|
||||||
|
path="res://.godot/imported/note2.png-7ddebed95ea93b6f57090ac58466a01e.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://ressources/images/note2.png"
|
||||||
|
dest_files=["res://.godot/imported/note2.png-7ddebed95ea93b6f57090ac58466a01e.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
BIN
ressources/images/note3.png
Normal file
BIN
ressources/images/note3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 203 B |
34
ressources/images/note3.png.import
Normal file
34
ressources/images/note3.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://btqqmug6qex0d"
|
||||||
|
path="res://.godot/imported/note3.png-3a2fd90f8e888d278f8e7c03cb67db73.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://ressources/images/note3.png"
|
||||||
|
dest_files=["res://.godot/imported/note3.png-3a2fd90f8e888d278f8e7c03cb67db73.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
Loading…
Add table
Reference in a new issue