diff --git a/Sound Effect/natural-sampling-59215.mp3 b/Sound Effect/natural-sampling-59215.mp3 new file mode 100644 index 0000000..8f7d55b Binary files /dev/null and b/Sound Effect/natural-sampling-59215.mp3 differ diff --git a/Sound Effect/natural-sampling-59215.mp3.import b/Sound Effect/natural-sampling-59215.mp3.import new file mode 100644 index 0000000..adb1b28 --- /dev/null +++ b/Sound Effect/natural-sampling-59215.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://bu6mq35ijg4g" +path="res://.godot/imported/natural-sampling-59215.mp3-f7b2d313cdcc21246a106b2d2529b8f6.mp3str" + +[deps] + +source_file="res://Sound Effect/natural-sampling-59215.mp3" +dest_files=["res://.godot/imported/natural-sampling-59215.mp3-f7b2d313cdcc21246a106b2d2529b8f6.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Sound Effect/night-forest-soundscape-158701.mp3 b/Sound Effect/night-forest-soundscape-158701.mp3 new file mode 100644 index 0000000..73be409 Binary files /dev/null and b/Sound Effect/night-forest-soundscape-158701.mp3 differ diff --git a/Sound Effect/night-forest-soundscape-158701.mp3.import b/Sound Effect/night-forest-soundscape-158701.mp3.import new file mode 100644 index 0000000..ab26326 --- /dev/null +++ b/Sound Effect/night-forest-soundscape-158701.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://c5bkkcg65mnjx" +path="res://.godot/imported/night-forest-soundscape-158701.mp3-25026bc3e91f6646e088a9f8f5e9f359.mp3str" + +[deps] + +source_file="res://Sound Effect/night-forest-soundscape-158701.mp3" +dest_files=["res://.godot/imported/night-forest-soundscape-158701.mp3-25026bc3e91f6646e088a9f8f5e9f359.mp3str"] + +[params] + +loop=true +loop_offset=0.0 +bpm=0.0 +beat_count=0 +bar_beats=4 diff --git a/Sound Effect/scary-siren-air-raid-tornado-nuke-7010.mp3 b/Sound Effect/scary-siren-air-raid-tornado-nuke-7010.mp3 new file mode 100644 index 0000000..47582b9 Binary files /dev/null and b/Sound Effect/scary-siren-air-raid-tornado-nuke-7010.mp3 differ diff --git a/Sound Effect/scary-siren-air-raid-tornado-nuke-7010.mp3.import b/Sound Effect/scary-siren-air-raid-tornado-nuke-7010.mp3.import new file mode 100644 index 0000000..f91722f --- /dev/null +++ b/Sound Effect/scary-siren-air-raid-tornado-nuke-7010.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://b7hxccjiokijn" +path="res://.godot/imported/scary-siren-air-raid-tornado-nuke-7010.mp3-90eee17821fb5ee9462e732b9b1fda8b.mp3str" + +[deps] + +source_file="res://Sound Effect/scary-siren-air-raid-tornado-nuke-7010.mp3" +dest_files=["res://.godot/imported/scary-siren-air-raid-tornado-nuke-7010.mp3-90eee17821fb5ee9462e732b9b1fda8b.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Sound Effect/the-end-of-the-world-25685.mp3 b/Sound Effect/the-end-of-the-world-25685.mp3 new file mode 100644 index 0000000..474dce5 Binary files /dev/null and b/Sound Effect/the-end-of-the-world-25685.mp3 differ diff --git a/Sound Effect/the-end-of-the-world-25685.mp3.import b/Sound Effect/the-end-of-the-world-25685.mp3.import new file mode 100644 index 0000000..ef589d0 --- /dev/null +++ b/Sound Effect/the-end-of-the-world-25685.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://debjlg4q7cey4" +path="res://.godot/imported/the-end-of-the-world-25685.mp3-67427725bacfc2084a084e56eb9783a2.mp3str" + +[deps] + +source_file="res://Sound Effect/the-end-of-the-world-25685.mp3" +dest_files=["res://.godot/imported/the-end-of-the-world-25685.mp3-67427725bacfc2084a084e56eb9783a2.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Sound Effect/wing-of-faith-183303.mp3 b/Sound Effect/wing-of-faith-183303.mp3 new file mode 100644 index 0000000..43f34c9 Binary files /dev/null and b/Sound Effect/wing-of-faith-183303.mp3 differ diff --git a/Sound Effect/wing-of-faith-183303.mp3.import b/Sound Effect/wing-of-faith-183303.mp3.import new file mode 100644 index 0000000..4cce808 --- /dev/null +++ b/Sound Effect/wing-of-faith-183303.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://b7xalf8yx4uv2" +path="res://.godot/imported/wing-of-faith-183303.mp3-8bf974c9ebc84d74047472e9809a6d76.mp3str" + +[deps] + +source_file="res://Sound Effect/wing-of-faith-183303.mp3" +dest_files=["res://.godot/imported/wing-of-faith-183303.mp3-8bf974c9ebc84d74047472e9809a6d76.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/asset/Sound Effect/Backsound/713564__audiocoffee__funny-cocktail-loop.wav.import b/asset/Sound Effect/Backsound/713564__audiocoffee__funny-cocktail-loop.wav.import new file mode 100644 index 0000000..1650273 --- /dev/null +++ b/asset/Sound Effect/Backsound/713564__audiocoffee__funny-cocktail-loop.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b1p482r2ih7ws" +path="res://.godot/imported/713564__audiocoffee__funny-cocktail-loop.wav-fce2febf0d20cb29641aa362c8ce78a6.sample" + +[deps] + +source_file="res://asset/Sound Effect/Backsound/713564__audiocoffee__funny-cocktail-loop.wav" +dest_files=["res://.godot/imported/713564__audiocoffee__funny-cocktail-loop.wav-fce2febf0d20cb29641aa362c8ce78a6.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=0 diff --git a/asset/Sound Effect/Backsound/The Last Battle.mp3.import b/asset/Sound Effect/Backsound/The Last Battle.mp3.import new file mode 100644 index 0000000..07f804f --- /dev/null +++ b/asset/Sound Effect/Backsound/The Last Battle.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://cybwn5dnfl0hw" +path="res://.godot/imported/The Last Battle.mp3-cde8b72b4d1d6f76e9f4aadcbf91c101.mp3str" + +[deps] + +source_file="res://asset/Sound Effect/Backsound/The Last Battle.mp3" +dest_files=["res://.godot/imported/The Last Battle.mp3-cde8b72b4d1d6f76e9f4aadcbf91c101.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/asset/Sound Effect/Character/Batuk_2.ogg.import b/asset/Sound Effect/Character/Batuk_2.ogg.import new file mode 100644 index 0000000..b000ca1 --- /dev/null +++ b/asset/Sound Effect/Character/Batuk_2.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://br00aui5m1es4" +path="res://.godot/imported/Batuk_2.ogg-ac0e8fbb2875cd2011b89cf875cbc6a8.oggvorbisstr" + +[deps] + +source_file="res://asset/Sound Effect/Character/Batuk_2.ogg" +dest_files=["res://.godot/imported/Batuk_2.ogg-ac0e8fbb2875cd2011b89cf875cbc6a8.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/asset/Sound Effect/Character/Player_Damage.wav.import b/asset/Sound Effect/Character/Player_Damage.wav.import new file mode 100644 index 0000000..63da76b --- /dev/null +++ b/asset/Sound Effect/Character/Player_Damage.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://b0fdwglg1xqq8" +path="res://.godot/imported/Player_Damage.wav-450f62f3e7e152af38e38d9bdccfe6c5.sample" + +[deps] + +source_file="res://asset/Sound Effect/Character/Player_Damage.wav" +dest_files=["res://.godot/imported/Player_Damage.wav-450f62f3e7e152af38e38d9bdccfe6c5.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=0 diff --git a/asset/Sound Effect/Character/batuk_1.ogg.import b/asset/Sound Effect/Character/batuk_1.ogg.import new file mode 100644 index 0000000..06900f3 --- /dev/null +++ b/asset/Sound Effect/Character/batuk_1.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://cw5aqxtqjriay" +path="res://.godot/imported/batuk_1.ogg-070138d97a611d2c09bc73cac0bde36e.oggvorbisstr" + +[deps] + +source_file="res://asset/Sound Effect/Character/batuk_1.ogg" +dest_files=["res://.godot/imported/batuk_1.ogg-070138d97a611d2c09bc73cac0bde36e.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/asset/Sound Effect/Character/die1.wav.import b/asset/Sound Effect/Character/die1.wav.import new file mode 100644 index 0000000..3b4160d --- /dev/null +++ b/asset/Sound Effect/Character/die1.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c7153sfcgx48w" +path="res://.godot/imported/die1.wav-f5f413e8d5c1cbbb2339d51c61be7216.sample" + +[deps] + +source_file="res://asset/Sound Effect/Character/die1.wav" +dest_files=["res://.godot/imported/die1.wav-f5f413e8d5c1cbbb2339d51c61be7216.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=0 diff --git a/asset/Sound Effect/Character/die2.wav.import b/asset/Sound Effect/Character/die2.wav.import new file mode 100644 index 0000000..7f2b367 --- /dev/null +++ b/asset/Sound Effect/Character/die2.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://c5w4l3hwdibfl" +path="res://.godot/imported/die2.wav-2b0d6758ec88cf60a275f54f69919624.sample" + +[deps] + +source_file="res://asset/Sound Effect/Character/die2.wav" +dest_files=["res://.godot/imported/die2.wav-2b0d6758ec88cf60a275f54f69919624.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=0 diff --git a/asset/Sound Effect/Character/footstep.ogg.import b/asset/Sound Effect/Character/footstep.ogg.import new file mode 100644 index 0000000..2f3f133 --- /dev/null +++ b/asset/Sound Effect/Character/footstep.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://b2ma601sfwx3x" +path="res://.godot/imported/footstep.ogg-8617cdefd9f95960406e8dac7acb26f0.oggvorbisstr" + +[deps] + +source_file="res://asset/Sound Effect/Character/footstep.ogg" +dest_files=["res://.godot/imported/footstep.ogg-8617cdefd9f95960406e8dac7acb26f0.oggvorbisstr"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/asset/Sound Effect/Character/jumpland.wav.import b/asset/Sound Effect/Character/jumpland.wav.import new file mode 100644 index 0000000..53ea340 --- /dev/null +++ b/asset/Sound Effect/Character/jumpland.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://qq67jmqavs67" +path="res://.godot/imported/jumpland.wav-08df6abcb99d6b2fe2411b331e350c4c.sample" + +[deps] + +source_file="res://asset/Sound Effect/Character/jumpland.wav" +dest_files=["res://.godot/imported/jumpland.wav-08df6abcb99d6b2fe2411b331e350c4c.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=0 diff --git a/asset/Sound Effect/Character/pain1.wav.import b/asset/Sound Effect/Character/pain1.wav.import new file mode 100644 index 0000000..6e5cc5e --- /dev/null +++ b/asset/Sound Effect/Character/pain1.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://eqv4gkj4w8hy" +path="res://.godot/imported/pain1.wav-f46bd7d64a8a2ac83053f14e2d3f0831.sample" + +[deps] + +source_file="res://asset/Sound Effect/Character/pain1.wav" +dest_files=["res://.godot/imported/pain1.wav-f46bd7d64a8a2ac83053f14e2d3f0831.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=0 diff --git a/asset/Sound Effect/Character/pain2.wav.import b/asset/Sound Effect/Character/pain2.wav.import new file mode 100644 index 0000000..552fc92 --- /dev/null +++ b/asset/Sound Effect/Character/pain2.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://cgtodsxr8lobp" +path="res://.godot/imported/pain2.wav-f24e95f3deb8aef8c5036eb7950beb40.sample" + +[deps] + +source_file="res://asset/Sound Effect/Character/pain2.wav" +dest_files=["res://.godot/imported/pain2.wav-f24e95f3deb8aef8c5036eb7950beb40.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=0 diff --git a/asset/Sound Effect/GUI/GUI Sound Effects_024.mp3.import b/asset/Sound Effect/GUI/GUI Sound Effects_024.mp3.import new file mode 100644 index 0000000..6247f0c --- /dev/null +++ b/asset/Sound Effect/GUI/GUI Sound Effects_024.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://bldq8apmks7bi" +path="res://.godot/imported/GUI Sound Effects_024.mp3-aa1894082bdfef971acd653f6131d7a4.mp3str" + +[deps] + +source_file="res://asset/Sound Effect/GUI/GUI Sound Effects_024.mp3" +dest_files=["res://.godot/imported/GUI Sound Effects_024.mp3-aa1894082bdfef971acd653f6131d7a4.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/asset/Sound Effect/GUI/Item2A.wav.import b/asset/Sound Effect/GUI/Item2A.wav.import new file mode 100644 index 0000000..0494e24 --- /dev/null +++ b/asset/Sound Effect/GUI/Item2A.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://ct3ht6nu4fnok" +path="res://.godot/imported/Item2A.wav-74dbfc9fd2efe82351bc98e614b3483d.sample" + +[deps] + +source_file="res://asset/Sound Effect/GUI/Item2A.wav" +dest_files=["res://.godot/imported/Item2A.wav-74dbfc9fd2efe82351bc98e614b3483d.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=0 diff --git a/asset/Sound Effect/GUI/Klik.wav.import b/asset/Sound Effect/GUI/Klik.wav.import new file mode 100644 index 0000000..e68d751 --- /dev/null +++ b/asset/Sound Effect/GUI/Klik.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bvap2kcwe5oom" +path="res://.godot/imported/Klik.wav-878a17f8652c620ac0e0e95fc9b74c90.sample" + +[deps] + +source_file="res://asset/Sound Effect/GUI/Klik.wav" +dest_files=["res://.godot/imported/Klik.wav-878a17f8652c620ac0e0e95fc9b74c90.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=0 diff --git a/cobaspawn.tscn b/cobaspawn.tscn deleted file mode 100644 index 70f760b..0000000 --- a/cobaspawn.tscn +++ /dev/null @@ -1,20 +0,0 @@ -[gd_scene load_steps=4 format=3 uid="uid://3v8e7eibusbf"] - -[ext_resource type="Script" path="res://Scripts/coba.gd" id="1_axcba"] - -[sub_resource type="BoxMesh" id="BoxMesh_bmx2b"] - -[sub_resource type="CapsuleMesh" id="CapsuleMesh_gg5ic"] - -[node name="Node3D" type="Node3D"] - -[node name="MeshInstance3D" type="MeshInstance3D" parent="."] -transform = Transform3D(19.3778, 0, 0, 0, 1, 0, 0, 0, 23.1683, 0, 0, 0) -mesh = SubResource("BoxMesh_bmx2b") - -[node name="SpawnPartikelonFire" type="Node3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.04189, 0) -script = ExtResource("1_axcba") - -[node name="MeshInstance3D" type="MeshInstance3D" parent="SpawnPartikelonFire"] -mesh = SubResource("CapsuleMesh_gg5ic") diff --git a/nyobaspawn.tscn b/nyobaspawn.tscn deleted file mode 100644 index 2551511..0000000 --- a/nyobaspawn.tscn +++ /dev/null @@ -1,12 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://c45gxeh03ac2b"] - -[sub_resource type="BoxMesh" id="BoxMesh_ftemr"] - -[sub_resource type="BoxShape3D" id="BoxShape3D_llie3"] - -[node name="MeshInstance3D" type="MeshInstance3D"] -transform = Transform3D(38.2099, 0, 0, 0, 1, 0, 0, 0, 23.6784, 0, 0, 0) -mesh = SubResource("BoxMesh_ftemr") - -[node name="CollisionShape3D" type="CollisionShape3D" parent="."] -shape = SubResource("BoxShape3D_llie3") diff --git a/project.godot b/project.godot index 21cb34f..c1787f7 100644 --- a/project.godot +++ b/project.godot @@ -56,6 +56,11 @@ Sprint={ "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194325,"key_label":0,"unicode":0,"echo":false,"script":null) ] } +pause={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194305,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} [rendering] diff --git a/scenes/City/kota.tscn b/scenes/City/kota.tscn new file mode 100644 index 0000000..0e0ac1b --- /dev/null +++ b/scenes/City/kota.tscn @@ -0,0 +1,42 @@ +[gd_scene load_steps=4 format=3 uid="uid://xguaywfqlvfe"] + +[ext_resource type="PackedScene" uid="uid://d38sax7wmr5tg" path="res://asset/models/maps/Kota.glb" id="1_3tq3r"] +[ext_resource type="PackedScene" uid="uid://c8uhe3kh5ph5g" path="res://scenes/fix_characters.tscn" id="2_euy6w"] +[ext_resource type="AudioStream" uid="uid://b7hxccjiokijn" path="res://Sound Effect/scary-siren-air-raid-tornado-nuke-7010.mp3" id="3_cjdgs"] + +[node name="Kota" instance=ExtResource("1_3tq3r")] + +[node name="Fix_characters" parent="." index="2" instance=ExtResource("2_euy6w")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.337297, 0) + +[node name="Sound Effect" type="Node3D" parent="." index="3"] + +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="Sound Effect" index="0"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.1224, 0, 0) +stream = ExtResource("3_cjdgs") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D2" type="AudioStreamPlayer3D" parent="Sound Effect" index="1"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, -1.27234) +stream = ExtResource("3_cjdgs") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D5" type="AudioStreamPlayer3D" parent="Sound Effect" index="2"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -37.5282, -0.961746, -1.35645) +stream = ExtResource("3_cjdgs") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D4" type="AudioStreamPlayer3D" parent="Sound Effect" index="3"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, 40.5879) +stream = ExtResource("3_cjdgs") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D3" type="AudioStreamPlayer3D" parent="Sound Effect" index="4"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, -44.2975) +stream = ExtResource("3_cjdgs") +autoplay = true +max_distance = 50.0 diff --git a/scenes/Forest/Forest.tscn b/scenes/Forest/Forest.tscn index f45f915..ddfe30d 100644 --- a/scenes/Forest/Forest.tscn +++ b/scenes/Forest/Forest.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=30 format=3 uid="uid://dbv76e8baxow2"] +[gd_scene load_steps=31 format=3 uid="uid://dbv76e8baxow2"] [ext_resource type="Texture2D" uid="uid://upx1xvrix683" path="res://scenes/Forest/Material/farm_field_puresky_2k.hdr" id="1_5ncdk"] [ext_resource type="Script" path="res://Scripts/Forest.gd" id="1_6c3er"] @@ -13,10 +13,11 @@ [ext_resource type="Script" path="res://addons/proton_scatter/src/scatter_shape.gd" id="10_gtfh4"] [ext_resource type="Script" path="res://addons/proton_scatter/src/shapes/box_shape.gd" id="12_wglmp"] [ext_resource type="PackedScene" uid="uid://o5u65ya2tq5g" path="res://scenes/Forest/models/maple_tree.glb" id="14_3q7sd"] -[ext_resource type="PackedScene" uid="uid://cb1iwxp77nqof" path="res://scenes/characters.tscn" id="14_c3le2"] [ext_resource type="PackedScene" uid="uid://xhsrdb700uow" path="res://scenes/Forest/river.tscn" id="15_4qsuh"] [ext_resource type="PackedScene" uid="uid://brw0vhcrfxclj" path="res://scenes/Forest/Material/bridge.glb" id="15_e4gru"] [ext_resource type="PackedScene" uid="uid://b4v3mde23oqfm" path="res://scenes/Forest/Flametscn.tscn" id="17_1qrcl"] +[ext_resource type="PackedScene" uid="uid://c8uhe3kh5ph5g" path="res://scenes/fix_characters.tscn" id="17_gdxvr"] +[ext_resource type="AudioStream" uid="uid://c5bkkcg65mnjx" path="res://Sound Effect/night-forest-soundscape-158701.mp3" id="18_8qw5y"] [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_eq7f2"] panorama = ExtResource("1_5ncdk") @@ -31,7 +32,7 @@ sky = SubResource("Sky_fmyih") ambient_light_sky_contribution = 0.5 ambient_light_energy = 0.3 -[sub_resource type="Resource" id="Resource_8g32c"] +[sub_resource type="Resource" id="Resource_38p20"] script = ExtResource("5_sn2ft") amount = 5000 enabled = true @@ -40,7 +41,7 @@ custom_seed = 0 restrict_height = true reference_frame = 1 -[sub_resource type="Resource" id="Resource_tn3pq"] +[sub_resource type="Resource" id="Resource_ix6gv"] script = ExtResource("6_2ajgw") position = Vector3(0.15, 0.15, 0.15) rotation = Vector3(5, 50, 5) @@ -51,7 +52,7 @@ custom_seed = 0 restrict_height = false reference_frame = 2 -[sub_resource type="Resource" id="Resource_or1cn"] +[sub_resource type="Resource" id="Resource_s2me7"] script = ExtResource("7_mvsr3") iterations = 3 offset_step = 0.2 @@ -63,7 +64,7 @@ custom_seed = 0 restrict_height = true reference_frame = 0 -[sub_resource type="Resource" id="Resource_l4phd"] +[sub_resource type="Resource" id="Resource_hy1js"] script = ExtResource("8_5o828") ray_direction = Vector3(0, -1, 0) ray_length = 5.0 @@ -79,9 +80,9 @@ custom_seed = 0 restrict_height = false reference_frame = 0 -[sub_resource type="Resource" id="Resource_wqef5"] +[sub_resource type="Resource" id="Resource_iudyj"] script = ExtResource("4_c2q18") -stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_8g32c"), SubResource("Resource_tn3pq"), SubResource("Resource_or1cn"), SubResource("Resource_l4phd")]) +stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_38p20"), SubResource("Resource_ix6gv"), SubResource("Resource_s2me7"), SubResource("Resource_hy1js")]) [sub_resource type="Resource" id="Resource_sfagw"] script = ExtResource("12_wglmp") @@ -105,131 +106,163 @@ script = ExtResource("1_6c3er") [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource("Environment_2cic6") -[node name="Node3D" type="Node3D" parent="."] +[node name="Forest_Atribute" type="Node3D" parent="."] -[node name="floor" type="CSGBox3D" parent="Node3D"] +[node name="floor" type="CSGBox3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.013, -5, -0.02) material_override = ExtResource("1_d0iq0") use_collision = true size = Vector3(100, 1, 100) -[node name="floor7" type="CSGBox3D" parent="Node3D"] +[node name="floor7" type="CSGBox3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.125427, -3.55973, -0.152309) material_override = ExtResource("1_d0iq0") use_collision = true size = Vector3(70, 1, 70) -[node name="floor8" type="CSGBox3D" parent="Node3D"] +[node name="floor8" type="CSGBox3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 0.957797, 0.287444, 0, -0.287444, 0.957797, 0.125427, -3.66065, -30.9483) material_override = ExtResource("1_d0iq0") use_collision = true size = Vector3(70, 1, 10) -[node name="floor6" type="CSGBox3D" parent="Node3D"] +[node name="floor6" type="CSGBox3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.013, -3.61869, -0.02) material_override = ExtResource("1_d0iq0") use_collision = true size = Vector3(100, 1, 100) -[node name="floor2" type="CSGBox3D" parent="Node3D"] +[node name="floor2" type="CSGBox3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 3.85199, 0, 0, 0, 1, -11.9673, -3.60269, -0.02) material_override = ExtResource("1_d0iq0") use_collision = true size = Vector3(25, 1, 50) -[node name="floor3" type="CSGBox3D" parent="Node3D"] +[node name="floor3" type="CSGBox3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 3.85199, 0, 0, 0, 1, 0.491068, -3.2639, -13.9607) material_override = ExtResource("1_d0iq0") use_collision = true size = Vector3(50, 1, 25) -[node name="floor4" type="CSGBox3D" parent="Node3D"] +[node name="floor4" type="CSGBox3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 3.85199, 0, 0, 0, 1, 16.788, -3.60269, 17.4199) material_override = ExtResource("1_d0iq0") use_collision = true size = Vector3(15, 1, 15) -[node name="sa" type="CSGBox3D" parent="Node3D"] +[node name="sa" type="CSGBox3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 3.85199, 0, 0, 0, 1, 7.31919, -3.60269, 19.1795) visible = false material_override = ExtResource("1_d0iq0") use_collision = true size = Vector3(15, 1, 1.65527) -[node name="ProtonScatter" type="Node3D" parent="."] +[node name="ProtonScatter" type="Node3D" parent="Forest_Atribute"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.18909, 0) script = ExtResource("3_7ah5r") -modifier_stack = SubResource("Resource_wqef5") +modifier_stack = SubResource("Resource_iudyj") Performance/use_chunks = true Performance/chunk_dimensions = Vector3(15, 15, 15) -[node name="coal" type="Node3D" parent="ProtonScatter"] +[node name="coal" type="Node3D" parent="Forest_Atribute/ProtonScatter"] script = ExtResource("9_vlymg") source_scale_multiplier = 2.0 path = "res://addons/proton_scatter/demos/assets/small_rock.tscn" -[node name="tree" type="Node3D" parent="ProtonScatter"] +[node name="tree" type="Node3D" parent="Forest_Atribute/ProtonScatter"] transform = Transform3D(0.986957, -0.160984, 0, 0.160984, 0.986957, 0, 0, 0, 1, 0, 0, 0) script = ExtResource("9_vlymg") source_scale_multiplier = 1.7 path = "res://addons/proton_scatter/demos/assets/pine_tree.tscn" -[node name="Grass" type="Node3D" parent="ProtonScatter"] +[node name="Grass" type="Node3D" parent="Forest_Atribute/ProtonScatter"] script = ExtResource("9_vlymg") proportion = 700 source_scale_multiplier = 1.5 path = "res://addons/proton_scatter/demos/assets/grass_2.tscn" -[node name="Grass2" type="Node3D" parent="ProtonScatter"] +[node name="Grass2" type="Node3D" parent="Forest_Atribute/ProtonScatter"] script = ExtResource("9_vlymg") proportion = 300 path = "res://addons/proton_scatter/demos/assets/bush.tscn" -[node name="Grass3" type="Node3D" parent="ProtonScatter"] +[node name="Grass3" type="Node3D" parent="Forest_Atribute/ProtonScatter"] script = ExtResource("9_vlymg") proportion = 10 path = "res://addons/proton_scatter/demos/assets/large_rock.tscn" -[node name="ScatterShape" type="Node3D" parent="ProtonScatter"] +[node name="ScatterShape" type="Node3D" parent="Forest_Atribute/ProtonScatter"] transform = Transform3D(50, 0, -1.49011e-06, 0, 1, 0, 1.49011e-06, 0, 50, 0, 0, 0) visible = false script = ExtResource("10_gtfh4") shape = SubResource("Resource_sfagw") -[node name="ScatterShape4" type="Node3D" parent="ProtonScatter"] +[node name="ScatterShape4" type="Node3D" parent="Forest_Atribute/ProtonScatter"] transform = Transform3D(100, 0, -2.98022e-06, 0, 1, 0, 2.98022e-06, 0, 100, 0, 0, 0) visible = false script = ExtResource("10_gtfh4") shape = SubResource("Resource_kv2ay") -[node name="ScatterShape2" type="Node3D" parent="ProtonScatter"] +[node name="ScatterShape2" type="Node3D" parent="Forest_Atribute/ProtonScatter"] transform = Transform3D(23, 0, 0, 0, 1, 0, 0, 0, 10, 13.1633, -0.231185, 4.30711) visible = false script = ExtResource("10_gtfh4") negative = true shape = SubResource("Resource_fdj15") -[node name="ScatterShape3" type="Node3D" parent="ProtonScatter"] +[node name="ScatterShape3" type="Node3D" parent="Forest_Atribute/ProtonScatter"] transform = Transform3D(-1.00536e-06, 0, 10, 0, 1, 0, -23, 0, -4.37114e-07, 4.89083, -0.231185, 17.3521) visible = false script = ExtResource("10_gtfh4") negative = true shape = SubResource("Resource_nbflo") -[node name="Sketchfab_Scene" parent="." instance=ExtResource("14_3q7sd")] +[node name="Sketchfab_Scene" parent="Forest_Atribute" instance=ExtResource("14_3q7sd")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.228386, -1.06149, -0.16226) -[node name="Characters" parent="." instance=ExtResource("14_c3le2")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.57757, 1.81317, 8.89749) - -[node name="river" parent="." instance=ExtResource("15_4qsuh")] +[node name="river" parent="Forest_Atribute" instance=ExtResource("15_4qsuh")] transform = Transform3D(3.24778, 0, 0, 0, 2.18124, 0, 0, 0, 1.42023, 7.59141, -4.26844, 4.67385) -[node name="river2" parent="." instance=ExtResource("15_4qsuh")] +[node name="river2" parent="Forest_Atribute" instance=ExtResource("15_4qsuh")] transform = Transform3D(-5.45637e-07, 0, 1, 0, 3.12165, 0, -12.4827, 0, -4.37114e-08, 5.44302, -5.27712, 26.1199) -[node name="Sketchfab_Scene2" parent="." instance=ExtResource("15_e4gru")] +[node name="Sketchfab_Scene2" parent="Forest_Atribute" instance=ExtResource("15_e4gru")] transform = Transform3D(-4.37114e-10, 0, 0.016003, 0, 0.01, 0, -0.01, 0, -6.99516e-10, 5.04575, -2.38821, 19.141) -[node name="FireFlame" parent="." instance=ExtResource("17_1qrcl")] +[node name="FireFlame" parent="Forest_Atribute" instance=ExtResource("17_1qrcl")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 30.5753, -3.29115, -32.7851) + +[node name="Fix_characters" parent="." instance=ExtResource("17_gdxvr")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.93955, 0.373589, 0) + +[node name="Sound Effect" type="Node3D" parent="."] + +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="Sound Effect"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.1224, 0, 0) +stream = ExtResource("18_8qw5y") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D2" type="AudioStreamPlayer3D" parent="Sound Effect"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, -1.27234) +stream = ExtResource("18_8qw5y") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D5" type="AudioStreamPlayer3D" parent="Sound Effect"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -37.5282, -0.961746, -1.35645) +stream = ExtResource("18_8qw5y") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D4" type="AudioStreamPlayer3D" parent="Sound Effect"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, 40.5879) +stream = ExtResource("18_8qw5y") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D3" type="AudioStreamPlayer3D" parent="Sound Effect"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, -44.2975) +stream = ExtResource("18_8qw5y") +autoplay = true +max_distance = 50.0 diff --git a/scenes/Forest/PauseMenu_Forest.gdshader b/scenes/Forest/PauseMenu_Forest.gdshader new file mode 100644 index 0000000..b05625e --- /dev/null +++ b/scenes/Forest/PauseMenu_Forest.gdshader @@ -0,0 +1,21 @@ +shader_type canvas_item; + +uniform sampler2D screen_texture : hint_screen_texture, filter_linear_mipmap; +uniform float amount : hint_range(0.0,5.0); + +void vertex() { + + // Called for every vertex the material is visible on. +} + +void fragment() { + vec4 color = textureLod(screen_texture,SCREEN_UV, amount); + COLOR = color; + + // Called for every pixel the material is visible on. +} + +//void light() { + // Called for every pixel for every light affecting the CanvasItem. + // Uncomment to replace the default light processing function with this one. +//} diff --git a/scenes/Forest/PauseMenu_Forest.tscn b/scenes/Forest/PauseMenu_Forest.tscn new file mode 100644 index 0000000..ea69ee9 --- /dev/null +++ b/scenes/Forest/PauseMenu_Forest.tscn @@ -0,0 +1,55 @@ +[gd_scene load_steps=4 format=3 uid="uid://cp6fpb7yrntmg"] + +[ext_resource type="Shader" path="res://scenes/Forest/PauseMenu_Forest.gdshader" id="1_8okwi"] +[ext_resource type="Script" path="res://scripts/PauseMenu_Forest.gd" id="1_65j1s"] + +[sub_resource type="ShaderMaterial" id="ShaderMaterial_7lbsw"] +shader = ExtResource("1_8okwi") +shader_parameter/amount = null + +[node name="PauseMenu_Forest" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_65j1s") + +[node name="ColorRect" type="ColorRect" parent="."] +material = SubResource("ShaderMaterial_7lbsw") +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="MarginContainer" type="MarginContainer" parent="."] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -150.5 +offset_top = -68.5 +offset_right = 150.5 +offset_bottom = 68.5 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"] +layout_mode = 2 + +[node name="Resume" type="Button" parent="MarginContainer/VBoxContainer"] +layout_mode = 2 +text = "Resume" + +[node name="Quit" type="Button" parent="MarginContainer/VBoxContainer"] +layout_mode = 2 +text = "Quit +" + +[connection signal="pressed" from="MarginContainer/VBoxContainer/Resume" to="." method="_on_resume_pressed"] +[connection signal="pressed" from="MarginContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"] diff --git a/scenes/Forest/cobarandompart.gd b/scenes/Forest/cobarandompart.gd deleted file mode 100644 index e8f3ae3..0000000 --- a/scenes/Forest/cobarandompart.gd +++ /dev/null @@ -1,21 +0,0 @@ -extends MeshInstance3D - -# Called when the node enters the scene tree for the first time. -func _ready(): - pass # Replace with function body. - -# -## Called every frame. 'delta' is the elapsed time since the previous frame. -#func _process(delta): - #pass -func spawn(): - var spawned_scene = load("res://scenes/Forest/Flametscn.tscn") - var spawned_scene_copy = spawned_scene.instance() - spawned_scene_copy.translation.x = randi() % 5 - add_child(spawned_scene_copy) - - -func _process(delta): - pass - if Input.is_action_just_pressed("spawn_flame"): - spawn() diff --git a/scenes/Bukit.tscn b/scenes/Terrain/Bukit.tscn similarity index 82% rename from scenes/Bukit.tscn rename to scenes/Terrain/Bukit.tscn index 2a712d9..14e36d3 100644 --- a/scenes/Bukit.tscn +++ b/scenes/Terrain/Bukit.tscn @@ -2,7 +2,6 @@ [ext_resource type="PackedScene" uid="uid://cfda6q4u17mpq" path="res://asset/models/maps/Bukit.glb" id="1_dh35g"] [ext_resource type="PackedScene" uid="uid://xhsrdb700uow" path="res://scenes/Forest/river.tscn" id="2_aegqr"] -[ext_resource type="PackedScene" uid="uid://cb1iwxp77nqof" path="res://scenes/characters.tscn" id="2_j0y0q"] [ext_resource type="Texture2D" uid="uid://upx1xvrix683" path="res://scenes/Forest/Material/farm_field_puresky_2k.hdr" id="4_hkx8d"] [ext_resource type="Script" path="res://addons/proton_scatter/src/scatter.gd" id="5_8lf41"] [ext_resource type="Script" path="res://addons/proton_scatter/src/stack/modifier_stack.gd" id="6_j5ec3"] @@ -13,6 +12,7 @@ [ext_resource type="Script" path="res://addons/proton_scatter/src/scatter_item.gd" id="11_x5crm"] [ext_resource type="Script" path="res://addons/proton_scatter/src/scatter_shape.gd" id="12_uw8g4"] [ext_resource type="Script" path="res://addons/proton_scatter/src/shapes/box_shape.gd" id="13_4ogwv"] +[ext_resource type="PackedScene" uid="uid://c8uhe3kh5ph5g" path="res://scenes/fix_characters.tscn" id="13_k8v8f"] [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_nsq7r"] panorama = ExtResource("4_hkx8d") @@ -27,7 +27,7 @@ sky = SubResource("Sky_5tmio") ambient_light_sky_contribution = 0.5 ambient_light_energy = 0.3 -[sub_resource type="Resource" id="Resource_ps2gt"] +[sub_resource type="Resource" id="Resource_bhclh"] script = ExtResource("7_pj3oc") amount = 75 enabled = true @@ -36,7 +36,7 @@ custom_seed = 0 restrict_height = true reference_frame = 1 -[sub_resource type="Resource" id="Resource_ll5b7"] +[sub_resource type="Resource" id="Resource_5vd5k"] script = ExtResource("8_32m2u") position = Vector3(0.15, 0.15, 0.15) rotation = Vector3(20, 360, 20) @@ -47,7 +47,7 @@ custom_seed = 0 restrict_height = false reference_frame = 2 -[sub_resource type="Resource" id="Resource_gfoi1"] +[sub_resource type="Resource" id="Resource_101wd"] script = ExtResource("9_bc4ri") iterations = 3 offset_step = 0.2 @@ -59,7 +59,7 @@ custom_seed = 0 restrict_height = true reference_frame = 0 -[sub_resource type="Resource" id="Resource_2n0o2"] +[sub_resource type="Resource" id="Resource_6x5ke"] script = ExtResource("10_c4abl") ray_direction = Vector3(0, -1, 0) ray_length = 5.0 @@ -75,9 +75,9 @@ custom_seed = 0 restrict_height = false reference_frame = 0 -[sub_resource type="Resource" id="Resource_5kd2f"] +[sub_resource type="Resource" id="Resource_nmrsq"] script = ExtResource("6_j5ec3") -stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_ps2gt"), SubResource("Resource_ll5b7"), SubResource("Resource_gfoi1"), SubResource("Resource_2n0o2")]) +stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_bhclh"), SubResource("Resource_5vd5k"), SubResource("Resource_101wd"), SubResource("Resource_6x5ke")]) [sub_resource type="Resource" id="Resource_7kssd"] script = ExtResource("13_4ogwv") @@ -92,21 +92,17 @@ transform = Transform3D(150, 0, 0, 0, 1, 0, 0, 0, 150, -5.72327, 1.52873, 26.608 transform = Transform3D(1, 0, 0, 0, 1, -2.84217e-14, 0, 2.84217e-14, 1, 0, 0, 0) visible = false -[node name="Characters" parent="." index="2" instance=ExtResource("2_j0y0q")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.72327, 14.603, 26.6085) - -[node name="WorldEnvironment2" type="WorldEnvironment" parent="." index="3"] +[node name="WorldEnvironment2" type="WorldEnvironment" parent="." index="2"] environment = SubResource("Environment_i1goh") -[node name="ProtonScatter" type="Node3D" parent="." index="4"] +[node name="ProtonScatter" type="Node3D" parent="." index="3"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -41.3929, 22.2534, 16.5762) script = ExtResource("5_8lf41") -modifier_stack = SubResource("Resource_5kd2f") +modifier_stack = SubResource("Resource_nmrsq") Performance/use_chunks = true Performance/chunk_dimensions = Vector3(15, 15, 15) [node name="ScatterItem" type="Node3D" parent="ProtonScatter" index="0"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) script = ExtResource("11_x5crm") path = "res://addons/proton_scatter/demos/assets/pine_tree.tscn" @@ -114,3 +110,6 @@ path = "res://addons/proton_scatter/demos/assets/pine_tree.tscn" transform = Transform3D(1, 0, -2.98023e-08, 2.30684e-08, 0.633123, 0.774049, 1.88685e-08, -0.774049, 0.633123, 0, -10.653, 24.3309) script = ExtResource("12_uw8g4") shape = SubResource("Resource_7kssd") + +[node name="Fix_characters" parent="." index="4" instance=ExtResource("13_k8v8f")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 13.6139, 23.2135) diff --git a/scenes/characters.tscn b/scenes/Try_characters.tscn similarity index 90% rename from scenes/characters.tscn rename to scenes/Try_characters.tscn index d03f147..22b344a 100644 --- a/scenes/characters.tscn +++ b/scenes/Try_characters.tscn @@ -1,21 +1,21 @@ [gd_scene load_steps=5 format=3 uid="uid://cb1iwxp77nqof"] -[ext_resource type="Script" path="res://Scripts/characters.gd" id="1_dbmqh"] -[ext_resource type="Script" path="res://Scripts/maincamera.gd" id="2_y5gb2"] +[ext_resource type="Script" path="res://Scripts/characters.gd" id="1_558iq"] +[ext_resource type="Script" path="res://Scripts/maincamera.gd" id="2_i2qjq"] [sub_resource type="CapsuleMesh" id="CapsuleMesh_68vne"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_5uewi"] [node name="Characters" type="CharacterBody3D"] -script = ExtResource("1_dbmqh") +script = ExtResource("1_558iq") [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("CapsuleMesh_68vne") [node name="head" type="Node3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.14962) -script = ExtResource("2_y5gb2") +script = ExtResource("2_i2qjq") [node name="Camera3D" type="Camera3D" parent="head"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.568857, 0.0611478) diff --git a/scenes/beach/scanes/terrain_bitch.tscn b/scenes/beach/scanes/terrain_bitch.tscn index 6d9bfc8..a68f062 100644 --- a/scenes/beach/scanes/terrain_bitch.tscn +++ b/scenes/beach/scanes/terrain_bitch.tscn @@ -1,7 +1,6 @@ -[gd_scene load_steps=32 format=3 uid="uid://cujblkrvrif77"] +[gd_scene load_steps=33 format=3 uid="uid://cujblkrvrif77"] [ext_resource type="PackedScene" uid="uid://ck1exncbpw8fg" path="res://scenes/beach/metrial/terrain_bitch.glb" id="1_vlsq8"] -[ext_resource type="PackedScene" uid="uid://cb1iwxp77nqof" path="res://scenes/characters.tscn" id="2_lc7uk"] [ext_resource type="Texture2D" uid="uid://upx1xvrix683" path="res://scenes/Forest/Material/farm_field_puresky_2k.hdr" id="3_ls4r2"] [ext_resource type="Script" path="res://addons/proton_scatter/src/scatter.gd" id="4_dxvd5"] [ext_resource type="Script" path="res://addons/proton_scatter/src/stack/modifier_stack.gd" id="5_ysghk"] @@ -12,7 +11,9 @@ [ext_resource type="Script" path="res://addons/proton_scatter/src/scatter_item.gd" id="10_4d7y7"] [ext_resource type="Script" path="res://addons/proton_scatter/src/scatter_shape.gd" id="11_m2fys"] [ext_resource type="Script" path="res://addons/proton_scatter/src/shapes/box_shape.gd" id="12_u8aqd"] +[ext_resource type="PackedScene" uid="uid://c8uhe3kh5ph5g" path="res://scenes/fix_characters.tscn" id="13_1hjd5"] [ext_resource type="PackedScene" uid="uid://xhsrdb700uow" path="res://scenes/Forest/river.tscn" id="13_4xlhg"] +[ext_resource type="AudioStream" uid="uid://debjlg4q7cey4" path="res://Sound Effect/the-end-of-the-world-25685.mp3" id="14_me4ec"] [sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_ekkge"] panorama = ExtResource("3_ls4r2") @@ -27,7 +28,7 @@ sky = SubResource("Sky_fkvty") ambient_light_sky_contribution = 0.5 ambient_light_energy = 0.3 -[sub_resource type="Resource" id="Resource_gf1wj"] +[sub_resource type="Resource" id="Resource_33167"] script = ExtResource("6_jp76b") amount = 1000 enabled = true @@ -36,7 +37,7 @@ custom_seed = 0 restrict_height = true reference_frame = 1 -[sub_resource type="Resource" id="Resource_mxo8a"] +[sub_resource type="Resource" id="Resource_uqr12"] script = ExtResource("7_eq4cw") position = Vector3(0.15, 0.15, 0.15) rotation = Vector3(20, 360, 20) @@ -47,7 +48,7 @@ custom_seed = 0 restrict_height = false reference_frame = 2 -[sub_resource type="Resource" id="Resource_wlatv"] +[sub_resource type="Resource" id="Resource_pdfqt"] script = ExtResource("8_heh5i") iterations = 3 offset_step = 0.2 @@ -59,7 +60,7 @@ custom_seed = 0 restrict_height = true reference_frame = 0 -[sub_resource type="Resource" id="Resource_wlxf3"] +[sub_resource type="Resource" id="Resource_6orhg"] script = ExtResource("9_5gydk") ray_direction = Vector3(0, -1, 0) ray_length = 5.0 @@ -75,9 +76,9 @@ custom_seed = 0 restrict_height = false reference_frame = 0 -[sub_resource type="Resource" id="Resource_dbtop"] +[sub_resource type="Resource" id="Resource_hmyyd"] script = ExtResource("5_ysghk") -stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_gf1wj"), SubResource("Resource_mxo8a"), SubResource("Resource_wlatv"), SubResource("Resource_wlxf3")]) +stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_33167"), SubResource("Resource_uqr12"), SubResource("Resource_pdfqt"), SubResource("Resource_6orhg")]) [sub_resource type="Resource" id="Resource_dbwml"] script = ExtResource("12_u8aqd") @@ -91,7 +92,7 @@ size = Vector3(1, 1, 1) script = ExtResource("12_u8aqd") size = Vector3(1, 1, 1) -[sub_resource type="Resource" id="Resource_djqd6"] +[sub_resource type="Resource" id="Resource_qpt1s"] script = ExtResource("6_jp76b") amount = 75 enabled = true @@ -100,7 +101,7 @@ custom_seed = 0 restrict_height = true reference_frame = 1 -[sub_resource type="Resource" id="Resource_oxyfw"] +[sub_resource type="Resource" id="Resource_oe4j1"] script = ExtResource("7_eq4cw") position = Vector3(0.15, 0.15, 0.15) rotation = Vector3(20, 360, 20) @@ -111,7 +112,7 @@ custom_seed = 0 restrict_height = false reference_frame = 2 -[sub_resource type="Resource" id="Resource_6bu4o"] +[sub_resource type="Resource" id="Resource_kwe4c"] script = ExtResource("8_heh5i") iterations = 3 offset_step = 0.2 @@ -123,7 +124,7 @@ custom_seed = 0 restrict_height = true reference_frame = 0 -[sub_resource type="Resource" id="Resource_cj8k3"] +[sub_resource type="Resource" id="Resource_i4xdn"] script = ExtResource("9_5gydk") ray_direction = Vector3(0, -1, 0) ray_length = 5.0 @@ -139,9 +140,9 @@ custom_seed = 0 restrict_height = false reference_frame = 0 -[sub_resource type="Resource" id="Resource_1da0m"] +[sub_resource type="Resource" id="Resource_ktcy4"] script = ExtResource("5_ysghk") -stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_djqd6"), SubResource("Resource_oxyfw"), SubResource("Resource_6bu4o"), SubResource("Resource_cj8k3")]) +stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_qpt1s"), SubResource("Resource_oe4j1"), SubResource("Resource_kwe4c"), SubResource("Resource_i4xdn")]) [sub_resource type="Resource" id="Resource_fk050"] script = ExtResource("12_u8aqd") @@ -168,7 +169,7 @@ environment = SubResource("Environment_rkls2") [node name="ProtonScatter" type="Node3D" parent="." index="2"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 24.8035, -1.79541, 0) script = ExtResource("4_dxvd5") -modifier_stack = SubResource("Resource_dbtop") +modifier_stack = SubResource("Resource_hmyyd") Performance/use_chunks = true Performance/chunk_dimensions = Vector3(15, 15, 15) @@ -221,7 +222,7 @@ shape = SubResource("Resource_708id") [node name="ProtonScatter2" type="Node3D" parent="." index="3"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6.63083, 0) script = ExtResource("4_dxvd5") -modifier_stack = SubResource("Resource_1da0m") +modifier_stack = SubResource("Resource_ktcy4") Performance/use_chunks = true Performance/chunk_dimensions = Vector3(15, 15, 15) @@ -240,8 +241,40 @@ script = ExtResource("11_m2fys") negative = true shape = SubResource("Resource_pki8b") -[node name="Characters" parent="." index="4" instance=ExtResource("2_lc7uk")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.618598, 8.52664, -6.99799) - -[node name="river" parent="." index="5" instance=ExtResource("13_4xlhg")] +[node name="river" parent="." index="4" instance=ExtResource("13_4xlhg")] transform = Transform3D(150, 0, 0, 0, 1, 0, 0, 0, 150, -5.72327, -5.69258, 26.6085) + +[node name="Fix_characters" parent="." index="5" instance=ExtResource("13_1hjd5")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.0408, 0) + +[node name="Sound Effect" type="Node3D" parent="." index="6"] + +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="Sound Effect" index="0"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.1224, 0, 0) +stream = ExtResource("14_me4ec") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D2" type="AudioStreamPlayer3D" parent="Sound Effect" index="1"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, -1.27234) +stream = ExtResource("14_me4ec") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D5" type="AudioStreamPlayer3D" parent="Sound Effect" index="2"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -37.5282, -0.961746, -1.35645) +stream = ExtResource("14_me4ec") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D4" type="AudioStreamPlayer3D" parent="Sound Effect" index="3"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, 40.5879) +stream = ExtResource("14_me4ec") +autoplay = true +max_distance = 50.0 + +[node name="AudioStreamPlayer3D3" type="AudioStreamPlayer3D" parent="Sound Effect" index="4"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, -44.2975) +stream = ExtResource("14_me4ec") +autoplay = true +max_distance = 50.0 diff --git a/scenes/fix_characters.tscn b/scenes/fix_characters.tscn new file mode 100644 index 0000000..0ac83ed --- /dev/null +++ b/scenes/fix_characters.tscn @@ -0,0 +1,22 @@ +[gd_scene load_steps=5 format=3 uid="uid://c8uhe3kh5ph5g"] + +[ext_resource type="Script" path="res://Scripts/fix_characters_PauseMenu.gd" id="1_1oqvr"] +[ext_resource type="PackedScene" uid="uid://cb1iwxp77nqof" path="res://scenes/Try_characters.tscn" id="2_k5gbq"] +[ext_resource type="PackedScene" uid="uid://cp6fpb7yrntmg" path="res://scenes/Forest/PauseMenu_Forest.tscn" id="3_par86"] +[ext_resource type="AudioStream" uid="uid://bu6mq35ijg4g" path="res://Sound Effect/natural-sampling-59215.mp3" id="4_q32r5"] + +[node name="Fix_characters" type="Node3D"] +script = ExtResource("1_1oqvr") + +[node name="Characters" parent="." instance=ExtResource("2_k5gbq")] + +[node name="Sound Effect" type="Node3D" parent="Characters"] + +[node name="AudioStreamPlayer3D2" type="AudioStreamPlayer3D" parent="Characters/Sound Effect"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.943221, -0.96175, -1.27234) +stream = ExtResource("4_q32r5") +autoplay = true +max_distance = 50.0 + +[node name="PauseMenu_Forest" parent="." instance=ExtResource("3_par86")] +visible = false diff --git a/scenes/kota.tscn b/scenes/kota.tscn deleted file mode 100644 index 5d0b2a8..0000000 --- a/scenes/kota.tscn +++ /dev/null @@ -1,9 +0,0 @@ -[gd_scene load_steps=3 format=3 uid="uid://xguaywfqlvfe"] - -[ext_resource type="PackedScene" uid="uid://d38sax7wmr5tg" path="res://asset/models/maps/Kota.glb" id="1_3tq3r"] -[ext_resource type="PackedScene" uid="uid://cb1iwxp77nqof" path="res://scenes/characters.tscn" id="2_6wjqs"] - -[node name="Kota" instance=ExtResource("1_3tq3r")] - -[node name="Characters" parent="." index="2" instance=ExtResource("2_6wjqs")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 48.4026, 78.0722, 58.4799) diff --git a/scenes/mainLobby.tscn b/scenes/mainLobby.tscn index ee14407..bbaa4ae 100644 --- a/scenes/mainLobby.tscn +++ b/scenes/mainLobby.tscn @@ -1,7 +1,7 @@ -[gd_scene load_steps=5 format=3 uid="uid://blqdv3o5dbhgs"] +[gd_scene load_steps=5 format=3 uid="uid://bptictxj2i1ou"] [ext_resource type="Material" uid="uid://20liuco73hno" path="res://asset/Colors/colorLobbyDirt.tres" id="1_tpmp3"] -[ext_resource type="PackedScene" uid="uid://cb1iwxp77nqof" path="res://scenes/characters.tscn" id="2_qkxpa"] +[ext_resource type="PackedScene" uid="uid://cb1iwxp77nqof" path="res://scenes/Try_characters.tscn" id="2_qkxpa"] [sub_resource type="BoxMesh" id="BoxMesh_kaaoc"] diff --git a/scenes/main_lobby.tscn b/scenes/main_lobby.tscn deleted file mode 100644 index fe11ffa..0000000 --- a/scenes/main_lobby.tscn +++ /dev/null @@ -1,3 +0,0 @@ -[gd_scene format=3 uid="uid://wuh4jyynkfvv"] - -[node name="Main_Lobby" type="Node3D"] diff --git a/scenes/main_menu.tscn b/scenes/main_menu.tscn index c5b9d73..c761036 100644 --- a/scenes/main_menu.tscn +++ b/scenes/main_menu.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=5 format=3 uid="uid://cqnswg872gsb3"] +[gd_scene load_steps=6 format=3 uid="uid://cqnswg872gsb3"] [ext_resource type="Script" path="res://scripts/main_menu.gd" id="1_b57s2"] [ext_resource type="Texture2D" uid="uid://bmhdf3k3ssg52" path="res://asset/img/main_Menu.jpg" id="2_m252e"] [ext_resource type="FontFile" uid="uid://m7gtob8sjwlv" path="res://asset/font/04B_30__.TTF" id="3_flsee"] +[ext_resource type="AudioStream" uid="uid://b7xalf8yx4uv2" path="res://Sound Effect/wing-of-faith-183303.mp3" id="4_6qeuc"] [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_8frb8"] texture = ExtResource("2_m252e") @@ -81,6 +82,10 @@ theme_override_font_sizes/font_size = 50 text = "SIMULATION " +[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("4_6qeuc") +autoplay = true + [connection signal="pressed" from="VBoxContainer/Button" to="." method="_on_start_pressed"] [connection signal="pressed" from="VBoxContainer/Button2" to="." method="_on_credit_pressed"] [connection signal="pressed" from="VBoxContainer/Button3" to="." method="_on_exit_pressed"] diff --git a/scripts/Forest.gd b/scripts/Forest.gd index 67e954f..ea4a90d 100644 --- a/scripts/Forest.gd +++ b/scripts/Forest.gd @@ -1 +1,2 @@ extends Node3D + diff --git a/scripts/PauseMenu_Forest.gd b/scripts/PauseMenu_Forest.gd new file mode 100644 index 0000000..1e3c3d4 --- /dev/null +++ b/scripts/PauseMenu_Forest.gd @@ -0,0 +1,10 @@ +extends Control + + +@onready var main = $"../" + +func _on_resume_pressed(): + main.pauseMenu() + +func _on_quit_pressed(): + get_tree().quit() diff --git a/scripts/fix_characters_PauseMenu.gd b/scripts/fix_characters_PauseMenu.gd new file mode 100644 index 0000000..69567ad --- /dev/null +++ b/scripts/fix_characters_PauseMenu.gd @@ -0,0 +1,27 @@ +extends Node3D + + + +@onready var pauseMenu_forest = $PauseMenu_Forest + + +var paused = false + +func _process(delta): + if Input.is_action_just_pressed("pause"): + pauseMenu() + +func pauseMenu(): + if paused: + # Jika sudah dijeda, sembunyikan menu pause dan kembalikan waktu normal + pauseMenu_forest.hide() + Engine.time_scale = 1 + Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) # Sembunyikan kursor saat tidak dijeda + else: + # Jika belum dijeda, tampilkan menu pause dan hentikan waktu + pauseMenu_forest.show() + Engine.time_scale = 0 + Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) # Tampilkan kursor saat dijeda + + # Toggle status pause + paused = !paused diff --git a/scripts/player.gd b/scripts/player.gd index f27ecba..e69de29 100644 --- a/scripts/player.gd +++ b/scripts/player.gd @@ -1,59 +0,0 @@ - -extends CharacterBody3D - -var ORIGINAL_SPEED -var SPEED = 3.0 -var sprint_draint_amount = 0.3 -var sprint_refresh_amount = 0.4 -var SPRINT_SPEED = 7.0 -const JUMP_VELOCITY = 4.5 -var sprint_slider -var movable = false - -# Get the gravity from the project settings to be synced with RigidBody nodes. -var gravity = ProjectSettings.get_setting("physics/3d/default_gravity") - -func _ready(): - ORIGINAL_SPEED = SPEED - sprint_slider = get_node("/root/" + get_tree().current_scene.name + "/UI/sprint_slider") - -func _process(delta): - if SPEED == SPRINT_SPEED: - sprint_slider.value = sprint_slider.value - sprint_draint_amount * delta - if sprint_slider.value == sprint_slider.min_value: - SPEED = ORIGINAL_SPEED - if SPEED != SPRINT_SPEED: - if sprint_slider.value < sprint_slider.max_value: - sprint_slider.value = sprint_slider.value + sprint_refresh_amount * delta - if sprint_slider.value == sprint_slider.max_value: - sprint_slider.visible = false - -func _physics_process(delta): - # Add the gravity. - if not is_on_floor(): - velocity.y -= gravity * delta - - if movable == true : - # Handle jump. - if Input.is_action_just_pressed("jump") and is_on_floor(): - velocity.y = JUMP_VELOCITY - - - # As good practice, you should replace UI actions with custom gameplay actions. - var input_dir = Input.get_vector("left", "right", "forward", "backward") - var direction = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() - if direction: - velocity.x = direction.x * SPEED - velocity.z = direction.z * SPEED - - if Input.is_action_just_pressed("Sprint"): - sprint_slider.visible = true - SPEED = SPRINT_SPEED - if Input.is_action_just_released("Sprint") : - SPEED = ORIGINAL_SPEED - - else: - velocity.x = move_toward(velocity.x, 0, SPEED) - velocity.z = move_toward(velocity.z, 0, SPEED) - - move_and_slide()