Compare commits
12 commits
main
...
audio_mart
Author | SHA1 | Date | |
---|---|---|---|
743324f4b0 | |||
f982491170 | |||
89c4dc19ed | |||
fe57faa0e8 | |||
cfc374f419 | |||
fea802364d | |||
dc2235b871 | |||
0288622f4f | |||
0f5042e78e | |||
9538f8e4b2 | |||
3b89be0d9c | |||
![]() |
f42123d1b2 |
34 changed files with 85 additions and 486 deletions
|
@ -11,5 +11,5 @@ bus/2/name = &"Sfx"
|
|||
bus/2/solo = false
|
||||
bus/2/mute = false
|
||||
bus/2/bypass_fx = false
|
||||
bus/2/volume_db = 0.0
|
||||
bus/2/volume_db = -7.63485
|
||||
bus/2/send = &"Master"
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dnpbiuxu41tqr"
|
||||
path="res://.godot/imported/melodie-2.png.png-1e7ec568d7b7e533e118b9283b70a243.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/images/melodie-2.png.png"
|
||||
dest_files=["res://.godot/imported/melodie-2.png.png-1e7ec568d7b7e533e118b9283b70a243.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
|
|
@ -1,34 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bnh6qj2mr7ni2"
|
||||
path="res://.godot/imported/melodie-4.png.png-42d7f34a3096af80d7b3a7d3a7b73e30.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/images/melodie-4.png.png"
|
||||
dest_files=["res://.godot/imported/melodie-4.png.png-42d7f34a3096af80d7b3a7d3a7b73e30.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
|
|
@ -1,34 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cm886u7l583eg"
|
||||
path="res://.godot/imported/melodie_cote-2.png.png-1fbf7de2f61b6cf29d5b1e195dc9a1b3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/images/melodie_cote-2.png.png"
|
||||
dest_files=["res://.godot/imported/melodie_cote-2.png.png-1fbf7de2f61b6cf29d5b1e195dc9a1b3.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
|
|
@ -1,34 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b4udql8psej1n"
|
||||
path="res://.godot/imported/melodie_cote-4.png.png-a7a6a259fd83bc3cb82e28583df75ead.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/images/melodie_cote-4.png.png"
|
||||
dest_files=["res://.godot/imported/melodie_cote-4.png.png-a7a6a259fd83bc3cb82e28583df75ead.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
|
|
@ -1,34 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dio8ciloxv6f"
|
||||
path="res://.godot/imported/melodie_dos-2.png.png-1a6d2dc47c396e3de82fda25bb80b34f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/images/melodie_dos-2.png.png"
|
||||
dest_files=["res://.godot/imported/melodie_dos-2.png.png-1a6d2dc47c396e3de82fda25bb80b34f.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
|
|
@ -1,34 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b3848xxx4bumg"
|
||||
path="res://.godot/imported/melodie_dos-4.png.png-ca174ff4b410f929cf68409e5ffa0048.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/images/melodie_dos-4.png.png"
|
||||
dest_files=["res://.godot/imported/melodie_dos-4.png.png-ca174ff4b410f929cf68409e5ffa0048.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
|
|
@ -1,19 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://5a1syiwvowk2"
|
||||
path="res://.godot/imported/blob-bobo.mp3-a17d23314def42dfb98b7e09aeeda943.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/sons/blob-bobo.mp3"
|
||||
dest_files=["res://.godot/imported/blob-bobo.mp3-a17d23314def42dfb98b7e09aeeda943.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://17l5y4daoi6f"
|
||||
uid="uid://dfa84osa3fxcp"
|
||||
path="res://.godot/imported/melodie-bobo-1.mp3-7aa3030b2c790daa8c4313aa01ae98f9.mp3str"
|
||||
|
||||
[deps]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://dvx77b2ja5e1t"
|
||||
uid="uid://8d6usnj4u2xk"
|
||||
path="res://.godot/imported/melodie-bobo-2.mp3-bb198435e05ddb0da77a07ac4cfc56ba.mp3str"
|
||||
|
||||
[deps]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://noeysgss5wsi"
|
||||
uid="uid://crv0k2mkurxx8"
|
||||
path="res://.godot/imported/melodie-bobo-3.mp3-12ce345635646780a00ff0064dda381b.mp3str"
|
||||
|
||||
[deps]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://b0y2n4slo8k3f"
|
||||
uid="uid://dy07kjwgmff45"
|
||||
path="res://.godot/imported/melodie-bobo-4.mp3-85d81fc35615c5448418bb695518b42e.mp3str"
|
||||
|
||||
[deps]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://bpdelql7a1hfb"
|
||||
uid="uid://dlnuw5afkji7y"
|
||||
path="res://.godot/imported/melodie-bobo-5.mp3-3f367a2a630c34a5f2323ebc8535769d.mp3str"
|
||||
|
||||
[deps]
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://dp6xr1dkaab2u"
|
||||
path="res://.godot/imported/poulpe-bobo.mp3-ddbc62e50412213c95688398f4c2d8a6.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/sons/poulpe-bobo.mp3"
|
||||
dest_files=["res://.godot/imported/poulpe-bobo.mp3-ddbc62e50412213c95688398f4c2d8a6.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
|
@ -1,19 +0,0 @@
|
|||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://bduu3c4c05k6i"
|
||||
path="res://.godot/imported/roby-bobo.mp3-4c91f97263eb900e643d718eb309f330.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ressources/sons/roby-bobo.mp3"
|
||||
dest_files=["res://.godot/imported/roby-bobo.mp3-4c91f97263eb900e643d718eb309f330.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
|
@ -4,12 +4,12 @@
|
|||
[ext_resource type="Script" path="res://scenes/room.gd" id="1_jh83c"]
|
||||
[ext_resource type="AudioStream" uid="uid://qyacm71epyhi" path="res://ressources/sons/idle_theme.wav" id="2_8nbnd"]
|
||||
[ext_resource type="Texture2D" uid="uid://ky4e7158gqf6" path="res://ressources/images/cgj_default_tile.svg" id="2_torsx"]
|
||||
[ext_resource type="PackedScene" uid="uid://cyvqa6g64cw37" path="res://scenes/enemies/slime.tscn" id="3_04ip2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bge3nllk1bq5r" path="res://ressources/images/mur.svg" id="3_oi2tl"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhva3tivsvknl" path="res://ressources/images/mur_coin.svg" id="4_6a3f6"]
|
||||
[ext_resource type="PackedScene" uid="uid://di4chlep1t1or" path="res://parametres/menu_parametres.tscn" id="6_6ubhx"]
|
||||
[ext_resource type="PackedScene" uid="uid://bndtclt51nsih" path="res://scenes/interface.tscn" id="8_5s7tf"]
|
||||
[ext_resource type="PackedScene" uid="uid://cnd2a1x1smulq" path="res://scenes/interface.tscn" id="8_5s7tf"]
|
||||
[ext_resource type="PackedScene" uid="uid://ctgxrbcg2vu1p" path="res://scenes/ecran_mort.tscn" id="10_3ou8w"]
|
||||
[ext_resource type="Script" path="res://scenes/vague.gd" id="12_n6lb5"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_1c4te"]
|
||||
normal = Vector2(0, 1)
|
||||
|
@ -43,6 +43,11 @@ offset_bottom = 360.0
|
|||
texture = ExtResource("2_torsx")
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="Player_Melodie" parent="." node_paths=PackedStringArray("interface") instance=ExtResource("1_cl1wt")]
|
||||
scale = Vector2(3, 3)
|
||||
collision_layer = 1
|
||||
interface = NodePath("../Interface")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." groups=["World_Border"]]
|
||||
collision_layer = 3
|
||||
collision_mask = 3
|
||||
|
@ -129,6 +134,9 @@ texture = ExtResource("4_6a3f6")
|
|||
|
||||
[node name="Camera2D" type="Camera2D" parent="CanvasLayer"]
|
||||
|
||||
[node name="Slime" parent="." groups=["Enemies"] instance=ExtResource("3_04ip2")]
|
||||
position = Vector2(-448, 205)
|
||||
|
||||
[node name="Interface" parent="." instance=ExtResource("8_5s7tf")]
|
||||
offset_left = -640.0
|
||||
offset_top = -360.0
|
||||
|
@ -151,31 +159,5 @@ offset_top = -383.0
|
|||
offset_right = -258.0
|
||||
offset_bottom = -383.0
|
||||
|
||||
[node name="vague" type="Node2D" parent="." node_paths=PackedStringArray("spawner1", "spawner2", "spawner3", "spawner4")]
|
||||
script = ExtResource("12_n6lb5")
|
||||
spawner1 = NodePath("Spawner1")
|
||||
spawner2 = NodePath("Spawner2")
|
||||
spawner3 = NodePath("Spawner3")
|
||||
spawner4 = NodePath("Spawner4")
|
||||
|
||||
[node name="Spawner1" type="Node2D" parent="vague"]
|
||||
position = Vector2(482, -232)
|
||||
|
||||
[node name="Spawner2" type="Node2D" parent="vague"]
|
||||
position = Vector2(-538, 238)
|
||||
|
||||
[node name="Spawner3" type="Node2D" parent="vague"]
|
||||
position = Vector2(-502, -240)
|
||||
|
||||
[node name="Spawner4" type="Node2D" parent="vague"]
|
||||
position = Vector2(484, 220)
|
||||
|
||||
[node name="Timer" type="Timer" parent="vague"]
|
||||
|
||||
[node name="Player_Melodie" parent="vague" node_paths=PackedStringArray("interface") instance=ExtResource("1_cl1wt")]
|
||||
scale = Vector2(3, 3)
|
||||
interface = NodePath("../../Interface")
|
||||
|
||||
[connection signal="finished" from="Musique" to="." method="_on_audio_stream_player_finished"]
|
||||
[connection signal="retour_menu" from="Ecran mort" to="." method="_on_ecran_mort_retour_menu"]
|
||||
[connection signal="timeout" from="vague/Timer" to="vague" method="_on_timer_timeout"]
|
||||
|
|
|
@ -18,4 +18,7 @@ texture = ExtResource("1_qx664")
|
|||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_1x7bj")
|
||||
|
||||
[node name="effet" type="AudioStreamPlayer" parent="."]
|
||||
bus = &"Sfx"
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="Collision"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bfso5wd843777"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cjv2wvu7p3mny"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Instrument/onde.gd" id="1_mly3m"]
|
||||
[ext_resource type="Texture2D" uid="uid://cb5xpbtagu6jv" path="res://ressources/images/ronde tambour.png.png" id="2_2cju6"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://ctuw2lsq5wn1x"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b18h4ypqlthf3"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Instrument/fusil_pompe.gd" id="1_bq6st"]
|
||||
[ext_resource type="Texture2D" uid="uid://bv3bmi78swof6" path="res://ressources/images/griffes.svg" id="2_1lh44"]
|
||||
|
@ -16,4 +16,7 @@ texture = ExtResource("2_1lh44")
|
|||
scale = Vector2(0.75, 0.75)
|
||||
polygon = PackedVector2Array(-130, -148, -130, -146.3, -132, -145.2, -132, -135.2, -128.8, -132, -137.4, -130, -140, -130, -140, -119.2, -136.8, -116, -136, -116, -148, -113.6, -148, -103.2, -144.8, -100, -139.5, -100, -137.6, -92, -124, -92, -124, -87.2, -120.8, -84, -115.5, -84, -113.6, -76, -99.5, -76, -97.6, -68, -84, -68, -84, -63.2, -80.8, -60, -75.5, -60, -73.6, -52, -60, -52, -60, -47.2, -56.8, -44, -51.5, -44, -49.6, -36, -36, -36, -36, -31.2, -32.8, -28, -28, -28, -28, -23.2, -24.8, -20, -20, -20, -20, -15.2, -16.8, -12, -12, -12, -12, -7.2, -8.8, -4, -4, -4, -4, 0.799988, -0.800003, 4, 4, 4, 4, 8.79999, 7.20001, 12, 12, 12, 12, 16.8, 15.2, 20, 20.5, 20, 22.4, 28, 28.2, 28, 30.2, 44, 44, 44, 44, 56.8, 47.2, 60, 52, 60, 52, 64.8, 55.2, 68, 60.5, 68, 62.4, 76, 68, 76, 68, 88.8, 71.2, 92, 76, 92, 76, 105.6, 84, 107.5, 84, 120.8, 87.2, 124, 92.5, 124, 94.4, 132, 100, 132, 100, 144.8, 103.2, 148, 108, 148, 108, 160.8, 111.2, 164, 116, 164, 116, 177.6, 124, 179.5, 124, 192.8, 127.2, 196, 132.5, 196, 134.4, 204, 144.8, 204, 148, 200.8, 148, 190.4, 140, 188.4, 140, 180, 142.4, 188, 152.8, 188, 156, 184.8, 156, 174.4, 148, 172.4, 148, 164, 150, 169, 150, 172.5, 161.4, 170, 164, 170, 164, 158.4, 156, 156.4, 156, 142.4, 148, 140.4, 148, 126.4, 140, 124.4, 140, 110.4, 132, 108.4, 132, 95.2, 128.8, 92, 123.5, 92, 121.6, 84, 116, 84, 116, 71.2, 112.8, 68, 108, 68, 108, 54.4, 100, 52.4, 100, 39.2, 96.8, 36, 92, 36, 92, 31.2, 88.8, 28, 83.5, 28, 82, 23, 82, 20, 76, 20, 76, 7.20001, 72.8, 4, 68, 4, 68, -0.800003, 64.8, -4, 60, -4, 60, -8.8, 56.8, -12, 52, -12, 52, -16.8, 48.8, -20, 44, -20, 44, -24.8, 40.8, -28, 36, -28, 36, -32.8, 32.8, -36, 28, -36, 28, -40.8, 24.8, -44, 20, -44, 20, -48.8, 16.8, -52, 12, -52, 12, -56.8, 8.79999, -60, 4, -60, 4, -64.8, 0.799988, -68, -4, -68, -4, -72.8, -7.2, -76, -12.5, -76, -14.4, -84, -28, -84, -28, -88.8, -31.2, -92, -36.5, -92, -38.4, -100, -52.5, -100, -54.4, -108, -60.2, -108, -62, -129.2, -62, -132.5, -73.4, -130, -76, -130, -76, -116, -78, -121, -78, -124, -92, -124, -92, -128.8, -95.2, -132, -100.5, -132, -102, -137, -102, -140, -116.5, -140, -118, -145, -118, -148)
|
||||
|
||||
[node name="effet" type="AudioStreamPlayer" parent="."]
|
||||
bus = &"Sfx"
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="Collision"]
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bcypcnpu0608o"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bcypcnpu0608o"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Instrument/onde.gd" id="1_6377h"]
|
||||
[ext_resource type="Texture2D" uid="uid://cb5xpbtagu6jv" path="res://ressources/images/ronde tambour.png.png" id="1_oawub"]
|
||||
[ext_resource type="AudioStream" uid="uid://dsgqlnwdavr31" path="res://ressources/sons/tambour-1.mp3" id="3_hup36"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_r81ru"]
|
||||
radius = 125.575
|
||||
|
||||
[node name="Onde" type="CharacterBody2D"]
|
||||
[node name="Onde" type="Area2D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_6377h")
|
||||
|
@ -17,3 +18,7 @@ texture = ExtResource("1_oawub")
|
|||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_r81ru")
|
||||
|
||||
[node name="effet" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_hup36")
|
||||
bus = &"Sfx"
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://dqfrqntx73do5" path="res://ressources/images/menu_jeu_button.svg" id="3_ecfx2"]
|
||||
[ext_resource type="Texture2D" uid="uid://kpss4kt07w8l" path="res://ressources/images/menu_jeu_button_survole.svg" id="4_jv24w"]
|
||||
|
||||
[node name="Control2" type="Control"]
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
@ -37,7 +37,6 @@ expand_mode = 1
|
|||
[node name="Mort" type="Label" parent="HBoxContainer/VBoxContainer/TextureRect"]
|
||||
modulate = Color(0.917647, 0.941176, 0.847059, 1)
|
||||
self_modulate = Color(0.917647, 0.941176, 0.847059, 1)
|
||||
layout_mode = 0
|
||||
offset_left = 89.0
|
||||
offset_top = 187.0
|
||||
offset_right = 414.0
|
||||
|
|
|
@ -42,7 +42,6 @@ func _process(delta: float) -> void:
|
|||
|
||||
|
||||
func attaquer_joueur() -> void:
|
||||
$AnimatedSprite2D.play("Attack")
|
||||
balle = Balle.instantiate()
|
||||
balle.set_direction(target_position)
|
||||
balle.position = position
|
||||
|
|
|
@ -1,22 +1,13 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://voiqrkjd02om"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://voiqrkjd02om"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/enemies/poulpe.gd" id="1_hu6wh"]
|
||||
[ext_resource type="Texture2D" uid="uid://2spn60rmdyy5" path="res://ressources/images/poulpe-1.png" id="1_lgwa7"]
|
||||
[ext_resource type="Texture2D" uid="uid://b4ukmsspx16f" path="res://ressources/images/poulpe-2.png" id="2_5x4i5"]
|
||||
[ext_resource type="Texture2D" uid="uid://dinxaox0ug7kx" path="res://ressources/images/poulpe-atk.png" id="2_ketov"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_2hq77"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_ketov")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Attack",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_lgwa7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
|
@ -30,13 +21,13 @@ animations = [{
|
|||
[sub_resource type="CircleShape2D" id="CircleShape2D_s7foh"]
|
||||
radius = 38.2753
|
||||
|
||||
[node name="Poulpe" type="CharacterBody2D" groups=["Enemies"]]
|
||||
[node name="Poulpe" type="CharacterBody2D"]
|
||||
script = ExtResource("1_hu6wh")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
scale = Vector2(0.4, 0.4)
|
||||
sprite_frames = SubResource("SpriteFrames_2hq77")
|
||||
animation = &"Attack"
|
||||
animation = &"Generic"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_s7foh")
|
||||
|
|
|
@ -1,27 +1,14 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://cm5spgl8o4fam"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://cm5spgl8o4fam"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dwwe0eanmrcra" path="res://ressources/images/roby-idle-0.png" id="1_mo3hb"]
|
||||
[ext_resource type="Script" path="res://scenes/enemies/robot.gd" id="1_tikkk"]
|
||||
[ext_resource type="Texture2D" uid="uid://8m84oe4oes3u" path="res://ressources/images/roby-idle-1.png" id="2_4n77m"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcyf6teijpttj" path="res://ressources/images/roby-idle-2.png" id="3_8bmqk"]
|
||||
[ext_resource type="Texture2D" uid="uid://duto5skmjixh6" path="res://ressources/images/roby-atk-0.png" id="5_muiti"]
|
||||
[ext_resource type="Texture2D" uid="uid://8xhcmbkyxlwb" path="res://ressources/images/roby-atk-1.png" id="6_otdac"]
|
||||
[ext_resource type="Texture2D" uid="uid://br8d144g0u2le" path="res://ressources/images/roby-atk-2.png" id="7_nsi5m"]
|
||||
[ext_resource type="Texture2D" uid="uid://cxvxfwv2nii64" path="res://ressources/images/roby-atk-3.png" id="8_tsp5e"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_vaeha"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_otdac")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_nsi5m")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_tsp5e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_mo3hb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
|
@ -29,25 +16,21 @@ animations = [{
|
|||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_8bmqk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_muiti")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"Generic",
|
||||
"speed": 7.0
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_utjf8"]
|
||||
size = Vector2(126, 185)
|
||||
|
||||
[node name="Robot" type="CharacterBody2D" groups=["Enemies"]]
|
||||
[node name="Robot" type="CharacterBody2D"]
|
||||
script = ExtResource("1_tikkk")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_vaeha")
|
||||
animation = &"Generic"
|
||||
frame_progress = 0.260687
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-2, 6.5)
|
||||
|
|
|
@ -21,7 +21,7 @@ animations = [{
|
|||
[sub_resource type="CircleShape2D" id="CircleShape2D_bokrm"]
|
||||
radius = 20.0
|
||||
|
||||
[node name="Slime" type="CharacterBody2D" groups=["Enemies"]]
|
||||
[node name="Slime" type="CharacterBody2D"]
|
||||
collision_layer = 6
|
||||
collision_mask = 6
|
||||
script = ExtResource("1_hnufy")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bndtclt51nsih"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cnd2a1x1smulq"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/interface.gd" id="1_5p24o"]
|
||||
[ext_resource type="Texture2D" uid="uid://jyrl33rv1fnp" path="res://ressources/images/full_heart.svg" id="2_opn3r"]
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
radius = 6.0
|
||||
height = 32.0
|
||||
|
||||
[node name="Player_Melodie" type="CharacterBody2D" groups=["Player"]]
|
||||
[node name="Player_Melodie" type="CharacterBody2D"]
|
||||
collision_layer = 5
|
||||
script = ExtResource("1_7sg4g")
|
||||
|
||||
|
|
|
@ -1,91 +0,0 @@
|
|||
extends Node2D
|
||||
|
||||
@export var spawner1: Node2D
|
||||
@export var spawner2: Node2D
|
||||
@export var spawner3: Node2D
|
||||
@export var spawner4: Node2D
|
||||
|
||||
class Vague:
|
||||
var poulpes: int
|
||||
var slimes: int
|
||||
var robots: int
|
||||
|
||||
func _init(poulpes: int, slimes: int, robots: int):
|
||||
self.poulpes = poulpes
|
||||
self.slimes = slimes
|
||||
self.robots = robots
|
||||
|
||||
# Waves and spawners
|
||||
var vagues = [
|
||||
Vague.new(0, 1, 0),
|
||||
Vague.new(1, 1, 0),
|
||||
Vague.new(1, 2, 0),
|
||||
Vague.new(2, 2, 1),
|
||||
Vague.new(2, 3, 1),
|
||||
Vague.new(3, 3, 2),
|
||||
Vague.new(3, 1, 2),
|
||||
Vague.new(1, 4, 3),
|
||||
Vague.new(2, 2, 3),
|
||||
Vague.new(1, 5, 2),
|
||||
Vague.new(2, 3, 2),
|
||||
Vague.new(3, 2, 1),
|
||||
Vague.new(1, 4, 3),
|
||||
Vague.new(4, 1, 2),
|
||||
Vague.new(2, 2, 3),
|
||||
Vague.new(1, 5, 1),
|
||||
Vague.new(3, 1, 4),
|
||||
Vague.new(4, 3, 1),
|
||||
Vague.new(3, 4, 2),
|
||||
Vague.new(1, 2, 4),
|
||||
Vague.new(3, 5, 2)
|
||||
]
|
||||
|
||||
var spawners = []
|
||||
|
||||
var vague_actuelle = 0
|
||||
var poulpe_scene: PackedScene
|
||||
var slime_scene: PackedScene
|
||||
var robot_scene: PackedScene
|
||||
|
||||
func _ready():
|
||||
poulpe_scene = load("res://scenes/enemies/poulpe.tscn")
|
||||
slime_scene = load("res://scenes/enemies/slime.tscn")
|
||||
robot_scene = load("res://scenes/enemies/robot.tscn")
|
||||
|
||||
spawners = [spawner1, spawner2, spawner3, spawner4]
|
||||
|
||||
# Ensure spawners are set
|
||||
for spawner in spawners:
|
||||
if spawner == null:
|
||||
push_error("Spawner is not assigned.")
|
||||
|
||||
$Timer.start(2)
|
||||
|
||||
func instancier_ennemis(vague: Vague):
|
||||
for i in range(vague.poulpes):
|
||||
var spawner = spawners[randi() % len(spawners)]
|
||||
var poulpe_instance = poulpe_scene.instantiate()
|
||||
poulpe_instance.position = spawner.global_position
|
||||
add_child(poulpe_instance)
|
||||
|
||||
for i in range(vague.slimes):
|
||||
var spawner = spawners[randi() % len(spawners)]
|
||||
var slime_instance = slime_scene.instantiate()
|
||||
slime_instance.position = spawner.global_position
|
||||
add_child(slime_instance)
|
||||
|
||||
for i in range(vague.robots):
|
||||
var spawner = spawners[randi() % len(spawners)]
|
||||
var robot_instance = robot_scene.instantiate()
|
||||
robot_instance.position = spawner.global_position
|
||||
add_child(robot_instance)
|
||||
|
||||
func _on_timer_timeout():
|
||||
if vague_actuelle < len(vagues):
|
||||
print("t")
|
||||
instancier_ennemis(vagues[vague_actuelle])
|
||||
vague_actuelle = (vague_actuelle + 1) % len(vagues)
|
||||
$Timer.set_wait_time(30)
|
||||
$Timer.start()
|
||||
else:
|
||||
print("All waves cleared!")
|
|
@ -1,22 +0,0 @@
|
|||
vagues:
|
||||
- {slime: 1, poulpe: 0, robot: 0}
|
||||
- {slime: 1, poulpe: 1, robot: 0}
|
||||
- {slime: 2, poulpe: 1, robot: 0}
|
||||
- {slime: 2, poulpe: 2, robot: 1}
|
||||
- {slime: 3, poulpe: 2, robot: 1}
|
||||
- {slime: 3, poulpe: 3, robot: 2}
|
||||
- {slime: 4, poulpe: 3, robot: 2}
|
||||
- {slime: 4, poulpe: 4, robot: 3}
|
||||
- {slime: 5, poulpe: 4, robot: 3}
|
||||
- {slime: 5, poulpe: 5, robot: 4}
|
||||
- {slime: 3, poulpe: 2, robot: 2}
|
||||
- {slime: 2, poulpe: 3, robot: 1}
|
||||
- {slime: 4, poulpe: 1, robot: 3}
|
||||
- {slime: 1, poulpe: 4, robot: 2}
|
||||
- {slime: 2, poulpe: 2, robot: 3}
|
||||
- {slime: 5, poulpe: 1, robot: 1}
|
||||
- {slime: 1, poulpe: 3, robot: 4}
|
||||
- {slime: 3, poulpe: 4, robot: 1}
|
||||
- {slime: 4, poulpe: 3, robot: 2}
|
||||
- {slime: 2, poulpe: 1, robot: 4}
|
||||
- {slime: 5, poulpe: 3, robot: 2}
|
|
@ -1,30 +0,0 @@
|
|||
extends Node
|
||||
|
||||
func lire_yaml():
|
||||
var fichier = FileAccess.open("res://scenes/vague/vague.yaml", FileAccess.READ)
|
||||
if fichier != null:
|
||||
var contenu = fichier.get_as_text()
|
||||
fichier = null
|
||||
var yaml_contenu = parse_yaml(contenu)
|
||||
return yaml_contenu
|
||||
else:
|
||||
print("Erreur lors de la lecture du fichier YAML")
|
||||
return null
|
||||
|
||||
func parse_yaml(yaml_text):
|
||||
# Godot ne prend pas en charge nativement les fichiers YAML.
|
||||
# Vous devrez utiliser une bibliothèque externe pour parser les fichiers YAML.
|
||||
print("Erreur : Godot ne prend pas en charge nativement les fichiers YAML")
|
||||
return null
|
||||
|
||||
func _ready():
|
||||
var contenu = lire_yaml()
|
||||
if contenu:
|
||||
print(contenu)
|
||||
var vagues = contenu["vagues"]
|
||||
for i in range(len(vagues)):
|
||||
var vague = vagues[i]
|
||||
print("Vague ", i+1)
|
||||
print(" Slime : ", vague["slime"])
|
||||
print(" Poulpe : ", vague["poulpe"])
|
||||
print(" Robot : ", vague["robot"])
|
|
@ -1,6 +1,18 @@
|
|||
extends Area2D
|
||||
|
||||
@export var speed: float = 300 # Définir la vitesse de la balle
|
||||
@onready var audio = $effet
|
||||
var sound_list = [
|
||||
preload("res://ressources/sons/flute-1.mp3"),
|
||||
preload("res://ressources/sons/flute-2.mp3"),
|
||||
preload("res://ressources/sons/flute-3.mp3"),
|
||||
preload("res://ressources/sons/flute-4.mp3"),
|
||||
]
|
||||
|
||||
func _ready() :
|
||||
var index = randi() % 3
|
||||
audio.stream = sound_list[index]
|
||||
audio.play()
|
||||
|
||||
# Direction initiale du mouvement
|
||||
var initial_direction: Vector2 = Vector2(1, 0) # Exemple par défaut : vers la droite
|
||||
|
|
|
@ -3,6 +3,18 @@ extends Area2D
|
|||
var timer = 0.0
|
||||
var cooldown = 0.3
|
||||
|
||||
@onready var audio = $effet
|
||||
var sound_list = [
|
||||
preload("res://ressources/sons/lyre-1.mp3"),
|
||||
preload("res://ressources/sons/lyre-2.mp3"),
|
||||
preload("res://ressources/sons/lyre-3.mp3"),
|
||||
]
|
||||
|
||||
func _ready() :
|
||||
var index = randi() % 3
|
||||
audio.stream = sound_list[index]
|
||||
audio.play()
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
timer += delta
|
||||
if timer >= cooldown:
|
||||
|
|
|
@ -1,5 +1,21 @@
|
|||
extends Area2D
|
||||
|
||||
var audio : AudioStreamPlayer
|
||||
var sound_list = [
|
||||
preload("res://ressources/sons/tambour-1.mp3"),
|
||||
preload("res://ressources/sons/tambour-2.mp3"),
|
||||
preload("res://ressources/sons/tambour-3.mp3"),
|
||||
]
|
||||
|
||||
|
||||
func _ready() :
|
||||
var index = randi_range(0, 2)
|
||||
print(sound_list[index])
|
||||
var audiostream = AudioStreamPlayer.new()
|
||||
audiostream.stream = sound_list[index]
|
||||
get_tree().current_scene.add_child(audiostream)
|
||||
audiostream.play()
|
||||
|
||||
var timer = 0.0
|
||||
var cooldown = 0.33
|
||||
|
||||
|
@ -11,4 +27,4 @@ func _process(delta: float) -> void:
|
|||
|
||||
func Collision(body: Node2D) -> void:
|
||||
if body.is_in_group("Enemies") :
|
||||
body.take_damage(2)
|
||||
body.take_damage(3)
|
||||
|
|
|
@ -21,10 +21,8 @@ var flute_cooldown = 0.5
|
|||
var tambour_cooldown = 3.0
|
||||
var lyre_cooldown = 1
|
||||
|
||||
var instrument_list = [
|
||||
"",
|
||||
""
|
||||
]
|
||||
var slot = []
|
||||
var slotstr = []
|
||||
|
||||
var vie = 10
|
||||
|
||||
|
@ -105,7 +103,7 @@ func _process(delta: float) -> void:
|
|||
lyre.jouer_melodie(position, direction_balle, angle_lyre)
|
||||
lyre_timer = lyre_cooldown
|
||||
|
||||
|
||||
|
||||
func take_damage(dmg : int) :
|
||||
vie -= dmg
|
||||
interface.set_life(vie)
|
||||
|
|
Loading…
Add table
Reference in a new issue