Compare commits

...

4 Commits

33 changed files with 213 additions and 38 deletions

View File

@ -1,7 +1,20 @@
[gd_scene load_steps=5 format=3 uid="uid://bgvbgeq46wee2"] [gd_scene load_steps=22 format=3 uid="uid://bgvbgeq46wee2"]
[ext_resource type="Script" uid="uid://das7twcy5153p" path="res://entities/player/scripts/player.gd" id="1_abrql"] [ext_resource type="Script" uid="uid://das7twcy5153p" path="res://entities/player/scripts/player.gd" id="1_abrql"]
[ext_resource type="Texture2D" uid="uid://c7ff87jniga5m" path="res://entities/player/assets/sprites/robot.png" id="1_symyc"] [ext_resource type="Texture2D" uid="uid://c7ff87jniga5m" path="res://entities/player/assets/sprites/robot.png" id="1_symyc"]
[ext_resource type="AudioStream" uid="uid://dfrp66a4isnt6" path="res://entities/player/sounds/dig/dig_1.wav" id="3_gx6sm"]
[ext_resource type="AudioStream" uid="uid://bdxkvaciw4mb3" path="res://entities/player/sounds/dig/dig_2.wav" id="4_yqrof"]
[ext_resource type="AudioStream" uid="uid://llxrlwfccywb" path="res://entities/player/sounds/dig/dig_3.wav" id="5_3wlsy"]
[ext_resource type="AudioStream" uid="uid://6qmm1lmkft13" path="res://entities/player/sounds/harvest/harvest_1.wav" id="6_b2kln"]
[ext_resource type="AudioStream" uid="uid://cfwqjs2koxyi8" path="res://entities/player/sounds/harvest/harvest_2.wav" id="7_we0b7"]
[ext_resource type="AudioStream" uid="uid://xiif55xgsoxs" path="res://entities/player/sounds/harvest/harvest_3.wav" id="8_mtric"]
[ext_resource type="AudioStream" uid="uid://bc803023sso65" path="res://entities/player/sounds/harvest/harvest_4.wav" id="9_eyb6c"]
[ext_resource type="AudioStream" uid="uid://bv65uncyiu3dc" path="res://entities/player/sounds/harvest/harvest_5.wav" id="10_221hk"]
[ext_resource type="AudioStream" uid="uid://b0hxscxlo241f" path="res://entities/player/sounds/harvest/harvest_6.wav" id="11_ghoj8"]
[ext_resource type="AudioStream" uid="uid://bkitf5nhaa36p" path="res://entities/player/sounds/pick_up/pick_up_1.wav" id="12_t1t22"]
[ext_resource type="AudioStream" uid="uid://dx58x1sg61mrv" path="res://entities/player/sounds/pick_up/pick_up_2.wav" id="13_50fht"]
[ext_resource type="AudioStream" uid="uid://c0fw77uiiwnfb" path="res://entities/player/sounds/pick_up/pick_up_3.wav" id="14_wuv6x"]
[ext_resource type="AudioStream" uid="uid://b4sxly5jsvlkr" path="res://entities/player/sounds/movement/movement.wav" id="15_qpopc"]
[sub_resource type="CircleShape2D" id="CircleShape2D_sglur"] [sub_resource type="CircleShape2D" id="CircleShape2D_sglur"]
radius = 27.0 radius = 27.0
@ -9,6 +22,35 @@ radius = 27.0
[sub_resource type="CircleShape2D" id="CircleShape2D_abrql"] [sub_resource type="CircleShape2D" id="CircleShape2D_abrql"]
radius = 40.0 radius = 40.0
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_wq0jh"]
random_pitch = 1.5
streams_count = 3
stream_0/stream = ExtResource("3_gx6sm")
stream_1/stream = ExtResource("4_yqrof")
stream_2/stream = ExtResource("5_3wlsy")
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_gt4e4"]
random_pitch = 1.5
streams_count = 6
stream_0/stream = ExtResource("6_b2kln")
stream_1/stream = ExtResource("7_we0b7")
stream_2/stream = ExtResource("8_mtric")
stream_3/stream = ExtResource("9_eyb6c")
stream_4/stream = ExtResource("10_221hk")
stream_5/stream = ExtResource("11_ghoj8")
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_24ehl"]
random_pitch = 1.5
streams_count = 3
stream_0/stream = ExtResource("12_t1t22")
stream_1/stream = ExtResource("13_50fht")
stream_2/stream = ExtResource("14_wuv6x")
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_bwdx1"]
random_pitch = 1.5
streams_count = 1
stream_0/stream = ExtResource("15_qpopc")
[node name="Player" type="CharacterBody2D"] [node name="Player" type="CharacterBody2D"]
script = ExtResource("1_abrql") script = ExtResource("1_abrql")
@ -26,3 +68,17 @@ position = Vector2(0, 21)
[node name="CollisionShape2D" type="CollisionShape2D" parent="InteractArea2D"] [node name="CollisionShape2D" type="CollisionShape2D" parent="InteractArea2D"]
shape = SubResource("CircleShape2D_abrql") shape = SubResource("CircleShape2D_abrql")
[node name="Audio" type="Node2D" parent="."]
[node name="AudioStreamPlayer_dig" type="AudioStreamPlayer" parent="Audio"]
stream = SubResource("AudioStreamRandomizer_wq0jh")
[node name="AudioStreamPlayer_harvest" type="AudioStreamPlayer" parent="Audio"]
stream = SubResource("AudioStreamRandomizer_gt4e4")
[node name="AudioStreamPlayer_pick_up" type="AudioStreamPlayer" parent="Audio"]
stream = SubResource("AudioStreamRandomizer_24ehl")
[node name="AudioStreamPlayer_movement" type="AudioStreamPlayer" parent="Audio"]
stream = SubResource("AudioStreamRandomizer_bwdx1")

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://dfrp66a4isnt6" uid="uid://dfrp66a4isnt6"
path="res://.godot/imported/dig_1.wav-7ad072dab09b362a7e8becc6a8e9d649.sample" path="res://.godot/imported/dig_1.wav-76555a8720a69a7ba42f82311d7beaf8.sample"
[deps] [deps]
source_file="res://entities/player/sounds/dig_1.wav" source_file="res://entities/player/sounds/dig/dig_1.wav"
dest_files=["res://.godot/imported/dig_1.wav-7ad072dab09b362a7e8becc6a8e9d649.sample"] dest_files=["res://.godot/imported/dig_1.wav-76555a8720a69a7ba42f82311d7beaf8.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://bdxkvaciw4mb3" uid="uid://bdxkvaciw4mb3"
path="res://.godot/imported/dig_2.wav-2f707145e043039106f8e3bee1ed8e77.sample" path="res://.godot/imported/dig_2.wav-4085353199cf7c47c8a581183b92f4a4.sample"
[deps] [deps]
source_file="res://entities/player/sounds/dig_2.wav" source_file="res://entities/player/sounds/dig/dig_2.wav"
dest_files=["res://.godot/imported/dig_2.wav-2f707145e043039106f8e3bee1ed8e77.sample"] dest_files=["res://.godot/imported/dig_2.wav-4085353199cf7c47c8a581183b92f4a4.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://llxrlwfccywb" uid="uid://llxrlwfccywb"
path="res://.godot/imported/dig_3.wav-e440fc7357505855b3b56d72821d8a95.sample" path="res://.godot/imported/dig_3.wav-0c0bb89a725edb73ca5a10e31a6cc9ce.sample"
[deps] [deps]
source_file="res://entities/player/sounds/dig_3.wav" source_file="res://entities/player/sounds/dig/dig_3.wav"
dest_files=["res://.godot/imported/dig_3.wav-e440fc7357505855b3b56d72821d8a95.sample"] dest_files=["res://.godot/imported/dig_3.wav-0c0bb89a725edb73ca5a10e31a6cc9ce.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://6qmm1lmkft13" uid="uid://6qmm1lmkft13"
path="res://.godot/imported/harvest_1.wav-ba207989e74395ee730e7c4943696c32.sample" path="res://.godot/imported/harvest_1.wav-556288586fc74dbc9e6e114c8da94313.sample"
[deps] [deps]
source_file="res://entities/player/sounds/harvest_1.wav" source_file="res://entities/player/sounds/harvest/harvest_1.wav"
dest_files=["res://.godot/imported/harvest_1.wav-ba207989e74395ee730e7c4943696c32.sample"] dest_files=["res://.godot/imported/harvest_1.wav-556288586fc74dbc9e6e114c8da94313.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://cfwqjs2koxyi8" uid="uid://cfwqjs2koxyi8"
path="res://.godot/imported/harvest_2.wav-158fd873c16237044d07d7079edc5abf.sample" path="res://.godot/imported/harvest_2.wav-725aa211bb996cf5e7c0f8044f1a0596.sample"
[deps] [deps]
source_file="res://entities/player/sounds/harvest_2.wav" source_file="res://entities/player/sounds/harvest/harvest_2.wav"
dest_files=["res://.godot/imported/harvest_2.wav-158fd873c16237044d07d7079edc5abf.sample"] dest_files=["res://.godot/imported/harvest_2.wav-725aa211bb996cf5e7c0f8044f1a0596.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://xiif55xgsoxs" uid="uid://xiif55xgsoxs"
path="res://.godot/imported/harvest_3.wav-ba1f76ac9d83e08f35513c7dbeb090f5.sample" path="res://.godot/imported/harvest_3.wav-311bb1444da6f3ce34003b61b417f328.sample"
[deps] [deps]
source_file="res://entities/player/sounds/harvest_3.wav" source_file="res://entities/player/sounds/harvest/harvest_3.wav"
dest_files=["res://.godot/imported/harvest_3.wav-ba1f76ac9d83e08f35513c7dbeb090f5.sample"] dest_files=["res://.godot/imported/harvest_3.wav-311bb1444da6f3ce34003b61b417f328.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://bc803023sso65" uid="uid://bc803023sso65"
path="res://.godot/imported/harvest_4.wav-35e3d63c56e7a1d73bee6cc87ace3be8.sample" path="res://.godot/imported/harvest_4.wav-7e79f33b699be1fa97bd3397f39b13b8.sample"
[deps] [deps]
source_file="res://entities/player/sounds/harvest_4.wav" source_file="res://entities/player/sounds/harvest/harvest_4.wav"
dest_files=["res://.godot/imported/harvest_4.wav-35e3d63c56e7a1d73bee6cc87ace3be8.sample"] dest_files=["res://.godot/imported/harvest_4.wav-7e79f33b699be1fa97bd3397f39b13b8.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://bv65uncyiu3dc" uid="uid://bv65uncyiu3dc"
path="res://.godot/imported/harvest_5.wav-2a7c17a378f34ee56ecf2d841af1dcf5.sample" path="res://.godot/imported/harvest_5.wav-39f01e30ca86bf5c233491f011175058.sample"
[deps] [deps]
source_file="res://entities/player/sounds/harvest_5.wav" source_file="res://entities/player/sounds/harvest/harvest_5.wav"
dest_files=["res://.godot/imported/harvest_5.wav-2a7c17a378f34ee56ecf2d841af1dcf5.sample"] dest_files=["res://.godot/imported/harvest_5.wav-39f01e30ca86bf5c233491f011175058.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://b0hxscxlo241f" uid="uid://b0hxscxlo241f"
path="res://.godot/imported/harvest_6.wav-2836dc15776824ff43e7c447a4e48c92.sample" path="res://.godot/imported/harvest_6.wav-2e0a40cb05e9420a9f46463c9b5ddae3.sample"
[deps] [deps]
source_file="res://entities/player/sounds/harvest_6.wav" source_file="res://entities/player/sounds/harvest/harvest_6.wav"
dest_files=["res://.godot/imported/harvest_6.wav-2836dc15776824ff43e7c447a4e48c92.sample"] dest_files=["res://.godot/imported/harvest_6.wav-2e0a40cb05e9420a9f46463c9b5ddae3.sample"]
[params] [params]

Binary file not shown.

View File

@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://b4sxly5jsvlkr"
path="res://.godot/imported/movement.wav-eff57eb45a7ca8b1e138ffe135ccf98e.sample"
[deps]
source_file="res://entities/player/sounds/movement/movement.wav"
dest_files=["res://.godot/imported/movement.wav-eff57eb45a7ca8b1e138ffe135ccf98e.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=2

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://bkitf5nhaa36p" uid="uid://bkitf5nhaa36p"
path="res://.godot/imported/pick_up_1.wav-35d486c68a4148d6f225129804209371.sample" path="res://.godot/imported/pick_up_1.wav-0e258b69af06c5691f2997179a1bf36b.sample"
[deps] [deps]
source_file="res://entities/player/sounds/pick_up_1.wav" source_file="res://entities/player/sounds/pick_up/pick_up_1.wav"
dest_files=["res://.godot/imported/pick_up_1.wav-35d486c68a4148d6f225129804209371.sample"] dest_files=["res://.godot/imported/pick_up_1.wav-0e258b69af06c5691f2997179a1bf36b.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://dx58x1sg61mrv" uid="uid://dx58x1sg61mrv"
path="res://.godot/imported/pick_up_2.wav-8b13148dd5bc8870c5578d85f90542eb.sample" path="res://.godot/imported/pick_up_2.wav-ccfd626b41684f4735889c5b2d905e6f.sample"
[deps] [deps]
source_file="res://entities/player/sounds/pick_up_2.wav" source_file="res://entities/player/sounds/pick_up/pick_up_2.wav"
dest_files=["res://.godot/imported/pick_up_2.wav-8b13148dd5bc8870c5578d85f90542eb.sample"] dest_files=["res://.godot/imported/pick_up_2.wav-ccfd626b41684f4735889c5b2d905e6f.sample"]
[params] [params]

View File

@ -3,12 +3,12 @@
importer="wav" importer="wav"
type="AudioStreamWAV" type="AudioStreamWAV"
uid="uid://c0fw77uiiwnfb" uid="uid://c0fw77uiiwnfb"
path="res://.godot/imported/pick_up_3.wav-4925e1a793c7954804fab43c81d2df3e.sample" path="res://.godot/imported/pick_up_3.wav-1c884c9c43e4320c0a87534d4376e4e0.sample"
[deps] [deps]
source_file="res://entities/player/sounds/pick_up_3.wav" source_file="res://entities/player/sounds/pick_up/pick_up_3.wav"
dest_files=["res://.godot/imported/pick_up_3.wav-4925e1a793c7954804fab43c81d2df3e.sample"] dest_files=["res://.godot/imported/pick_up_3.wav-1c884c9c43e4320c0a87534d4376e4e0.sample"]
[params] [params]

View File

@ -0,0 +1,51 @@
[gd_resource type="Theme" load_steps=5 format=3 uid="uid://xte1h3dxr5vs"]
[ext_resource type="FontFile" uid="uid://byyfovm1ha5ya" path="res://gui/ressources/fonts/AtomicMd-3zXDZ.ttf" id="1_hv6r3"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hv6r3"]
bg_color = Color(0.976471, 0.741176, 0.4, 1)
border_width_left = 10
border_width_top = 10
border_width_right = 10
border_width_bottom = 10
border_color = Color(0.975367, 0.740445, 0.401877, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y48f0"]
bg_color = Color(0.886275, 0.623529, 0.196078, 1)
border_width_left = 10
border_width_top = 10
border_width_right = 10
border_width_bottom = 10
border_color = Color(0.886275, 0.623529, 0.196078, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_st1o2"]
bg_color = Color(0.692349, 0.477218, 0.112321, 1)
border_width_left = 10
border_width_top = 10
border_width_right = 10
border_width_bottom = 10
border_color = Color(0.694118, 0.478431, 0.113725, 1)
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5
[resource]
Button/font_sizes/font_size = 25
Button/fonts/font = ExtResource("1_hv6r3")
Button/styles/hover = SubResource("StyleBoxFlat_hv6r3")
Button/styles/normal = SubResource("StyleBoxFlat_y48f0")
Button/styles/pressed = SubResource("StyleBoxFlat_st1o2")
HBoxContainer/constants/separation = 15
MarginContainer/constants/margin_bottom = 15
MarginContainer/constants/margin_left = 15
MarginContainer/constants/margin_right = 15
MarginContainer/constants/margin_top = 15

View File

@ -1,10 +1,11 @@
[gd_scene load_steps=6 format=3 uid="uid://c5bruelvqbm1k"] [gd_scene load_steps=7 format=3 uid="uid://c5bruelvqbm1k"]
[ext_resource type="PackedScene" uid="uid://12nak7amd1uq" path="res://gui/root_gui.tscn" id="1_jnlp7"] [ext_resource type="PackedScene" uid="uid://12nak7amd1uq" path="res://gui/root_gui.tscn" id="1_jnlp7"]
[ext_resource type="PackedScene" uid="uid://tsi5j1uxppa4" path="res://stages/terrain/planet/planet.tscn" id="1_pyidc"] [ext_resource type="PackedScene" uid="uid://tsi5j1uxppa4" path="res://stages/terrain/planet/planet.tscn" id="1_pyidc"]
[ext_resource type="PackedScene" uid="uid://bgvbgeq46wee2" path="res://entities/player/player.tscn" id="2_vvh5c"] [ext_resource type="PackedScene" uid="uid://bgvbgeq46wee2" path="res://entities/player/player.tscn" id="2_vvh5c"]
[ext_resource type="PackedScene" uid="uid://dj7gp3crtg2yt" path="res://entities/camera/camera.tscn" id="3_vvh5c"] [ext_resource type="PackedScene" uid="uid://dj7gp3crtg2yt" path="res://entities/camera/camera.tscn" id="3_vvh5c"]
[ext_resource type="PackedScene" uid="uid://clpcqkdlj3d8e" path="res://entities/interactables/plants/default_plant.tscn" id="4_28aoi"] [ext_resource type="PackedScene" uid="uid://clpcqkdlj3d8e" path="res://entities/interactables/plants/default_plant.tscn" id="4_28aoi"]
[ext_resource type="AudioStream" uid="uid://dnskjv3wty2ms" path="res://stages/terrain/planet/music/niveau_forestier_phase_1.ogg" id="5_l8v81"]
[node name="Root" type="Node2D"] [node name="Root" type="Node2D"]
@ -50,6 +51,11 @@ position = Vector2(-269, 1)
[node name="Planet" parent="." node_paths=PackedStringArray("import_entities_from_node") instance=ExtResource("1_pyidc")] [node name="Planet" parent="." node_paths=PackedStringArray("import_entities_from_node") instance=ExtResource("1_pyidc")]
import_entities_from_node = NodePath("../Entities") import_entities_from_node = NodePath("../Entities")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Planet"]
stream = ExtResource("5_l8v81")
volume_db = -4.0
autoplay = true
[node name="Camera" parent="." node_paths=PackedStringArray("following") instance=ExtResource("3_vvh5c")] [node name="Camera" parent="." node_paths=PackedStringArray("following") instance=ExtResource("3_vvh5c")]
position = Vector2(2.22, 0) position = Vector2(2.22, 0)
following = NodePath("../Entities/Player") following = NodePath("../Entities/Player")

Binary file not shown.

View File

@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://eoocn1djnep8"
path="res://.godot/imported/fin_de_cycle_phase_1.ogg-0ff8ce8f81c800fde9f50f867d824b2b.oggvorbisstr"
[deps]
source_file="res://stages/terrain/planet/music/fin_de_cycle_phase_1.ogg"
dest_files=["res://.godot/imported/fin_de_cycle_phase_1.ogg-0ff8ce8f81c800fde9f50f867d824b2b.oggvorbisstr"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://dnskjv3wty2ms"
path="res://.godot/imported/niveau_forestier_phase_1.ogg-dbd624eb1808fe51c6958b8897206d5f.oggvorbisstr"
[deps]
source_file="res://stages/terrain/planet/music/niveau_forestier_phase_1.ogg"
dest_files=["res://.godot/imported/niveau_forestier_phase_1.ogg-dbd624eb1808fe51c6958b8897206d5f.oggvorbisstr"]
[params]
loop=true
loop_offset=0
bpm=0
beat_count=0
bar_beats=4