summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrenin Cardoso <behilustra@gmail.com>2022-07-17 12:30:16 -0300
committerBrenin Cardoso <behilustra@gmail.com>2022-07-17 12:30:16 -0300
commit378b6b8282470c22a5c597e56652b50c70cfca74 (patch)
treeb3bb4da6a9a0c0e88b5e356e0384135ad720f95f
parent646f3b8009645785fb85c76adb07728f259cb4c2 (diff)
parent06ea6608202adbcbc372e6c28065b022485563f2 (diff)
downloadgamejam-gmtk-2022-378b6b8282470c22a5c597e56652b50c70cfca74.tar.gz
gamejam-gmtk-2022-378b6b8282470c22a5c597e56652b50c70cfca74.tar.bz2
gamejam-gmtk-2022-378b6b8282470c22a5c597e56652b50c70cfca74.zip
Merge remote-tracking branch 'origin/main'
-rw-r--r--Assets/Enemies/Goblin-Idle-Monster.pngbin30521 -> 40280 bytes
-rw-r--r--Assets/Enemies/Skeleton-Square-Monster.pngbin28071 -> 37653 bytes
-rw-r--r--Assets/Enemies/Slime-RandCardinal-Monster.pngbin30584 -> 44730 bytes
-rw-r--r--Assets/Sound/coin_sound.wavbin0 -> 32348 bytes
-rw-r--r--Assets/Sound/coin_sound.wav.import21
-rw-r--r--Assets/Sound/crystal.wavbin0 -> 199400 bytes
-rw-r--r--Assets/Sound/crystal.wav.import21
-rw-r--r--Assets/Sound/dice_moving.wavbin0 -> 42600 bytes
-rw-r--r--Assets/Sound/dice_moving.wav.import21
-rw-r--r--Assets/Sound/explosion.wavbin0 -> 124000 bytes
-rw-r--r--Assets/Sound/explosion.wav.import21
-rw-r--r--Assets/Sound/peludito.wavbin0 -> 128080 bytes
-rw-r--r--Assets/Sound/peludito.wav.import21
-rw-r--r--Scenes/Crystal.gd1
-rw-r--r--Scenes/Crystal.tscn38
-rw-r--r--Scenes/Dungeon.tscn116
-rw-r--r--Scenes/Global.gd2
-rw-r--r--Scenes/Monster.gd2
-rw-r--r--Scenes/Monster.tscn37
-rw-r--r--Scenes/Player.gd1
-rw-r--r--Scenes/Player.tscn7
-rw-r--r--Scenes/ScoreParticle.gd3
-rw-r--r--Scenes/ScoreParticle.tscn19
-rw-r--r--Scenes/Transition.gd1
-rw-r--r--Scenes/Transition.tscn8
-rw-r--r--Scenes/UIController.gd1
26 files changed, 328 insertions, 13 deletions
diff --git a/Assets/Enemies/Goblin-Idle-Monster.png b/Assets/Enemies/Goblin-Idle-Monster.png
index d058031..820c3b7 100644
--- a/Assets/Enemies/Goblin-Idle-Monster.png
+++ b/Assets/Enemies/Goblin-Idle-Monster.png
Binary files differ
diff --git a/Assets/Enemies/Skeleton-Square-Monster.png b/Assets/Enemies/Skeleton-Square-Monster.png
index a304ce3..3411d21 100644
--- a/Assets/Enemies/Skeleton-Square-Monster.png
+++ b/Assets/Enemies/Skeleton-Square-Monster.png
Binary files differ
diff --git a/Assets/Enemies/Slime-RandCardinal-Monster.png b/Assets/Enemies/Slime-RandCardinal-Monster.png
index 7279b97..37ebbd8 100644
--- a/Assets/Enemies/Slime-RandCardinal-Monster.png
+++ b/Assets/Enemies/Slime-RandCardinal-Monster.png
Binary files differ
diff --git a/Assets/Sound/coin_sound.wav b/Assets/Sound/coin_sound.wav
new file mode 100644
index 0000000..1587484
--- /dev/null
+++ b/Assets/Sound/coin_sound.wav
Binary files differ
diff --git a/Assets/Sound/coin_sound.wav.import b/Assets/Sound/coin_sound.wav.import
new file mode 100644
index 0000000..4042e5a
--- /dev/null
+++ b/Assets/Sound/coin_sound.wav.import
@@ -0,0 +1,21 @@
+[remap]
+
+importer="wav"
+type="AudioStreamSample"
+path="res://.import/coin_sound.wav-93c0d868ac40de11914401a01a033328.sample"
+
+[deps]
+
+source_file="res://Assets/Sound/coin_sound.wav"
+dest_files=[ "res://.import/coin_sound.wav-93c0d868ac40de11914401a01a033328.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=false
+compress/mode=0
diff --git a/Assets/Sound/crystal.wav b/Assets/Sound/crystal.wav
new file mode 100644
index 0000000..4dd93f7
--- /dev/null
+++ b/Assets/Sound/crystal.wav
Binary files differ
diff --git a/Assets/Sound/crystal.wav.import b/Assets/Sound/crystal.wav.import
new file mode 100644
index 0000000..b1d0df5
--- /dev/null
+++ b/Assets/Sound/crystal.wav.import
@@ -0,0 +1,21 @@
+[remap]
+
+importer="wav"
+type="AudioStreamSample"
+path="res://.import/crystal.wav-12a4ebf061f3c65d36f60755a921aec3.sample"
+
+[deps]
+
+source_file="res://Assets/Sound/crystal.wav"
+dest_files=[ "res://.import/crystal.wav-12a4ebf061f3c65d36f60755a921aec3.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=false
+compress/mode=0
diff --git a/Assets/Sound/dice_moving.wav b/Assets/Sound/dice_moving.wav
new file mode 100644
index 0000000..e7aa941
--- /dev/null
+++ b/Assets/Sound/dice_moving.wav
Binary files differ
diff --git a/Assets/Sound/dice_moving.wav.import b/Assets/Sound/dice_moving.wav.import
new file mode 100644
index 0000000..f5826ee
--- /dev/null
+++ b/Assets/Sound/dice_moving.wav.import
@@ -0,0 +1,21 @@
+[remap]
+
+importer="wav"
+type="AudioStreamSample"
+path="res://.import/dice_moving.wav-8f67a2a1cd25ae58634c18c9f943f96b.sample"
+
+[deps]
+
+source_file="res://Assets/Sound/dice_moving.wav"
+dest_files=[ "res://.import/dice_moving.wav-8f67a2a1cd25ae58634c18c9f943f96b.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=false
+compress/mode=0
diff --git a/Assets/Sound/explosion.wav b/Assets/Sound/explosion.wav
new file mode 100644
index 0000000..86d8570
--- /dev/null
+++ b/Assets/Sound/explosion.wav
Binary files differ
diff --git a/Assets/Sound/explosion.wav.import b/Assets/Sound/explosion.wav.import
new file mode 100644
index 0000000..f002907
--- /dev/null
+++ b/Assets/Sound/explosion.wav.import
@@ -0,0 +1,21 @@
+[remap]
+
+importer="wav"
+type="AudioStreamSample"
+path="res://.import/explosion.wav-61739d31e2f6159a680a7e1d7b800070.sample"
+
+[deps]
+
+source_file="res://Assets/Sound/explosion.wav"
+dest_files=[ "res://.import/explosion.wav-61739d31e2f6159a680a7e1d7b800070.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=false
+compress/mode=0
diff --git a/Assets/Sound/peludito.wav b/Assets/Sound/peludito.wav
new file mode 100644
index 0000000..ab9477d
--- /dev/null
+++ b/Assets/Sound/peludito.wav
Binary files differ
diff --git a/Assets/Sound/peludito.wav.import b/Assets/Sound/peludito.wav.import
new file mode 100644
index 0000000..2117073
--- /dev/null
+++ b/Assets/Sound/peludito.wav.import
@@ -0,0 +1,21 @@
+[remap]
+
+importer="wav"
+type="AudioStreamSample"
+path="res://.import/peludito.wav-9ace920181ae0824da71df8538721cff.sample"
+
+[deps]
+
+source_file="res://Assets/Sound/peludito.wav"
+dest_files=[ "res://.import/peludito.wav-9ace920181ae0824da71df8538721cff.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=false
+compress/mode=0
diff --git a/Scenes/Crystal.gd b/Scenes/Crystal.gd
index f3ac484..af5ece4 100644
--- a/Scenes/Crystal.gd
+++ b/Scenes/Crystal.gd
@@ -29,6 +29,7 @@ func cor_activate(args : Array):
yield(get_tree(), "idle_frame")
+ $AudioStreamPlayer.play()
$AnimationPlayer.play("Activate")
yield($AnimationPlayer,"animation_finished")
$AnimationPlayer.play("Active")
diff --git a/Scenes/Crystal.tscn b/Scenes/Crystal.tscn
index 4c5bc2e..6701dce 100644
--- a/Scenes/Crystal.tscn
+++ b/Scenes/Crystal.tscn
@@ -1,7 +1,9 @@
-[gd_scene load_steps=8 format=2]
+[gd_scene load_steps=10 format=2]
[ext_resource path="res://Scenes/Crystal.gd" type="Script" id=1]
[ext_resource path="res://Assets/Environment/crystal.gltf" type="PackedScene" id=2]
+[ext_resource path="res://Assets/blob_shadow.png" type="Texture" id=3]
+[ext_resource path="res://Assets/Sound/crystal.wav" type="AudioStream" id=4]
[sub_resource type="PrismMesh" id=3]
size = Vector3( 1, 1, 1 )
@@ -25,6 +27,18 @@ tracks/0/keys = {
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 0.64478, 0 ) ]
}
+tracks/1/type = "value"
+tracks/1/path = NodePath("Sprite3D:scale")
+tracks/1/interp = 1
+tracks/1/loop_wrap = true
+tracks/1/imported = false
+tracks/1/enabled = true
+tracks/1/keys = {
+"times": PoolRealArray( 0, 0.5 ),
+"transitions": PoolRealArray( 1, 1 ),
+"update": 0,
+"values": [ Vector3( 2.5, 2.5, 1 ), Vector3( 2, 2, 1 ) ]
+}
[sub_resource type="Animation" id=5]
resource_name = "Active"
@@ -81,6 +95,18 @@ tracks/1/keys = {
"update": 0,
"values": [ Vector3( 0, 0, 0 ) ]
}
+tracks/2/type = "value"
+tracks/2/path = NodePath("Sprite3D:scale")
+tracks/2/interp = 1
+tracks/2/loop_wrap = true
+tracks/2/imported = false
+tracks/2/enabled = true
+tracks/2/keys = {
+"times": PoolRealArray( 0 ),
+"transitions": PoolRealArray( 1 ),
+"update": 0,
+"values": [ Vector3( 2.5, 2.5, 1 ) ]
+}
[node name="Crystal" type="Spatial"]
script = ExtResource( 1 )
@@ -100,3 +126,13 @@ transform = Transform( 0.374, 0, 0, 0, 0.314, 0, 0, 0, 0.25, 0, 0, 0 )
anims/Activate = SubResource( 4 )
anims/Active = SubResource( 5 )
anims/RESET = SubResource( 6 )
+
+[node name="Sprite3D" type="Sprite3D" parent="."]
+transform = Transform( 2.5, 0, 0, 0, -1.09278e-07, -1, 0, 2.5, -4.37114e-08, 0, 0.001, 0 )
+modulate = Color( 0, 0, 0, 0.435294 )
+texture = ExtResource( 3 )
+
+[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
+stream = ExtResource( 4 )
+volume_db = -20.0
+pitch_scale = 0.7
diff --git a/Scenes/Dungeon.tscn b/Scenes/Dungeon.tscn
index de22f45..b3d619f 100644
--- a/Scenes/Dungeon.tscn
+++ b/Scenes/Dungeon.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=29 format=2]
+[gd_scene load_steps=33 format=2]
[ext_resource path="res://Scenes/Dungeon.gd" type="Script" id=1]
[ext_resource path="res://Scenes/CameraControl.gd" type="Script" id=2]
@@ -18,6 +18,50 @@ background_color = Color( 0.1, 0.1, 0.1, 1 )
ambient_light_color = Color( 1, 1, 1, 1 )
dof_blur_far_amount = 0.06
+[sub_resource type="Animation" id=23]
+resource_name = "Default"
+length = 4.0
+loop = true
+tracks/0/type = "value"
+tracks/0/path = NodePath(".:rect_position")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/keys = {
+"times": PoolRealArray( 0, 4 ),
+"transitions": PoolRealArray( 1, 1 ),
+"update": 0,
+"values": [ Vector2( 0, -300 ), Vector2( -128, -173 ) ]
+}
+tracks/1/type = "value"
+tracks/1/path = NodePath(".:rect_size")
+tracks/1/interp = 1
+tracks/1/loop_wrap = true
+tracks/1/imported = false
+tracks/1/enabled = true
+tracks/1/keys = {
+"times": PoolRealArray( 0 ),
+"transitions": PoolRealArray( 1 ),
+"update": 0,
+"values": [ Vector2( 1152, 1080 ) ]
+}
+
+[sub_resource type="Animation" id=24]
+length = 0.001
+tracks/0/type = "value"
+tracks/0/path = NodePath(".:rect_size")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/keys = {
+"times": PoolRealArray( 0 ),
+"transitions": PoolRealArray( 1 ),
+"update": 0,
+"values": [ Vector2( 1152, 720 ) ]
+}
+
[sub_resource type="DynamicFont" id=5]
size = 48
outline_size = 2
@@ -216,6 +260,37 @@ tracks/0/keys = {
"values": [ Color( 1, 1, 1, 0 ) ]
}
+[sub_resource type="Animation" id=25]
+resource_name = "FadeIn"
+length = 0.4
+tracks/0/type = "value"
+tracks/0/path = NodePath(".:modulate")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/keys = {
+"times": PoolRealArray( 0, 0.4 ),
+"transitions": PoolRealArray( 1, 1 ),
+"update": 0,
+"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
+}
+
+[sub_resource type="Animation" id=26]
+length = 0.001
+tracks/0/type = "value"
+tracks/0/path = NodePath(".:modulate")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/keys = {
+"times": PoolRealArray( 0 ),
+"transitions": PoolRealArray( 1 ),
+"update": 0,
+"values": [ Color( 1, 1, 1, 0 ) ]
+}
+
[sub_resource type="Animation" id=9]
resource_name = "FadeIn"
length = 0.4
@@ -309,11 +384,19 @@ layer = -1
modulate = Color( 0.690196, 0.494118, 0.768627, 1 )
anchor_right = 1.0
anchor_bottom = 1.0
+margin_top = -300.0
+margin_right = 1152.0
+margin_bottom = 420.0
rect_rotation = -0.0481524
texture = ExtResource( 8 )
expand = true
stretch_mode = 2
+[node name="AnimationPlayer" type="AnimationPlayer" parent="Background/Cleyton"]
+autoplay = "Default"
+anims/Default = SubResource( 23 )
+anims/RESET = SubResource( 24 )
+
[node name="UIController" type="CanvasLayer" parent="."]
script = ExtResource( 4 )
@@ -564,6 +647,37 @@ valign = 1
anims/FadeIn = SubResource( 21 )
anims/RESET = SubResource( 22 )
+[node name="Intro7" type="Label" parent="UIController/OnboardingOverlay"]
+visible = false
+modulate = Color( 1, 1, 1, 0 )
+anchor_left = 1.0
+anchor_right = 1.0
+margin_left = -554.0
+margin_top = 299.0
+margin_right = -125.0
+margin_bottom = 416.0
+custom_fonts/font = SubResource( 6 )
+text = "You gain 10 turns as bonus after each stage. Good luck!"
+valign = 2
+autowrap = true
+
+[node name="Up" type="Label" parent="UIController/OnboardingOverlay/Intro7"]
+anchor_left = 1.0
+anchor_right = 1.0
+margin_left = -206.0
+margin_top = -30.0
+margin_right = -189.0
+margin_bottom = 7.0
+rect_rotation = 90.0938
+custom_fonts/font = SubResource( 6 )
+text = "<"
+align = 1
+valign = 1
+
+[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay/Intro7"]
+anims/FadeIn = SubResource( 25 )
+anims/RESET = SubResource( 26 )
+
[node name="AnimationPlayer" type="AnimationPlayer" parent="UIController/OnboardingOverlay"]
anims/FadeIn = SubResource( 9 )
anims/RESET = SubResource( 10 )
diff --git a/Scenes/Global.gd b/Scenes/Global.gd
index 1bda622..6b40d87 100644
--- a/Scenes/Global.gd
+++ b/Scenes/Global.gd
@@ -7,7 +7,7 @@ onready var turns = STARTING_TURNS setget set_turns
onready var current_stage = 0 setget set_stage
onready var active_crystals = 0 setget set_crystals
onready var max_crystals = 0
-onready var onboarding = true
+onready var onboarding = false
signal update_ui
diff --git a/Scenes/Monster.gd b/Scenes/Monster.gd
index a760d64..4293a49 100644
--- a/Scenes/Monster.gd
+++ b/Scenes/Monster.gd
@@ -26,6 +26,8 @@ func cor_stomp(args : Array):
func cor_dies(args : Array):
$AnimationPlayer.play("fucking_dies")
+ $FuckingDies.pitch_scale = 1.5 + randf()
+ $FuckingDies.play()
yield($AnimationPlayer, "animation_finished")
hide()
diff --git a/Scenes/Monster.tscn b/Scenes/Monster.tscn
index a67c88f..3922973 100644
--- a/Scenes/Monster.tscn
+++ b/Scenes/Monster.tscn
@@ -1,8 +1,37 @@
-[gd_scene load_steps=7 format=2]
+[gd_scene load_steps=9 format=2]
[ext_resource path="res://Assets/Enemies/Bat-Monster.png" type="Texture" id=1]
[ext_resource path="res://Scenes/Monster.gd" type="Script" id=2]
[ext_resource path="res://Assets/blob_shadow.png" type="Texture" id=3]
+[ext_resource path="res://Assets/Sound/peludito.wav" type="AudioStream" id=4]
+
+[sub_resource type="Animation" id=4]
+resource_name = "Idle"
+loop = true
+tracks/0/type = "value"
+tracks/0/path = NodePath("Sprite3D:scale")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/keys = {
+"times": PoolRealArray( 0, 0.5 ),
+"transitions": PoolRealArray( 0.5, 0.5 ),
+"update": 0,
+"values": [ Vector3( 1, 1, 1 ), Vector3( 1.1, 0.9, 1 ) ]
+}
+tracks/1/type = "value"
+tracks/1/path = NodePath("Sprite3D:translation")
+tracks/1/interp = 1
+tracks/1/loop_wrap = true
+tracks/1/imported = false
+tracks/1/enabled = true
+tracks/1/keys = {
+"times": PoolRealArray( 0, 0.5 ),
+"transitions": PoolRealArray( 0.5, 0.5 ),
+"update": 0,
+"values": [ Vector3( 0, 1, 0 ), Vector3( 0, 0.9, 0 ) ]
+}
[sub_resource type="Animation" id=1]
length = 0.001
@@ -109,6 +138,12 @@ double_sided = false
texture = ExtResource( 3 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
+autoplay = "Idle"
+anims/Idle = SubResource( 4 )
anims/RESET = SubResource( 1 )
anims/fucking_dies = SubResource( 2 )
anims/stomp = SubResource( 3 )
+
+[node name="FuckingDies" type="AudioStreamPlayer" parent="."]
+stream = ExtResource( 4 )
+pitch_scale = 2.0
diff --git a/Scenes/Player.gd b/Scenes/Player.gd
index 21d182e..0e05204 100644
--- a/Scenes/Player.gd
+++ b/Scenes/Player.gd
@@ -93,6 +93,7 @@ func cor_move(args : Array): # args = [Vector3, float]
break
yield(get_tree(), "idle_frame")
+ $AudioStreamPlayer.play()
func cor_half_move(args : Array): # args = [Vector3, float]
var pos_original = translation
diff --git a/Scenes/Player.tscn b/Scenes/Player.tscn
index 0ec3d52..da12e00 100644
--- a/Scenes/Player.tscn
+++ b/Scenes/Player.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=14 format=2]
+[gd_scene load_steps=15 format=2]
[ext_resource path="res://Scenes/Player.gd" type="Script" id=1]
[ext_resource path="res://Assets/2_dots_blue.png" type="Texture" id=2]
@@ -6,6 +6,7 @@
[ext_resource path="res://Assets/DiceFaceMaterial.tres" type="Material" id=4]
[ext_resource path="res://Assets/3_dots_blue.png" type="Texture" id=5]
[ext_resource path="res://Assets/4_dots.png" type="Texture" id=6]
+[ext_resource path="res://Assets/Sound/dice_moving.wav" type="AudioStream" id=7]
[ext_resource path="res://Assets/6_dots.png" type="Texture" id=8]
[sub_resource type="QuadMesh" id=5]
@@ -65,3 +66,7 @@ material/0 = SubResource( 9 )
transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -0.5 )
mesh = SubResource( 5 )
material/0 = SubResource( 10 )
+
+[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
+stream = ExtResource( 7 )
+pitch_scale = 2.93
diff --git a/Scenes/ScoreParticle.gd b/Scenes/ScoreParticle.gd
index 51a23f5..5deb893 100644
--- a/Scenes/ScoreParticle.gd
+++ b/Scenes/ScoreParticle.gd
@@ -16,3 +16,6 @@ func animate():
animation_player.add_animation("Animate", anim)
animation_player.play("Animate")
+
+ yield(animation_player, "animation_finished")
+ $AudioStreamPlayer.play()
diff --git a/Scenes/ScoreParticle.tscn b/Scenes/ScoreParticle.tscn
index 8f10224..4c0b436 100644
--- a/Scenes/ScoreParticle.tscn
+++ b/Scenes/ScoreParticle.tscn
@@ -1,11 +1,12 @@
-[gd_scene load_steps=5 format=2]
+[gd_scene load_steps=6 format=2]
[ext_resource path="res://Scenes/ScoreParticle.gd" type="Script" id=1]
[ext_resource path="res://Assets/Environment/turn-icon.png" type="Texture" id=2]
+[ext_resource path="res://Assets/Sound/coin_sound.wav" type="AudioStream" id=3]
[sub_resource type="Animation" id=7]
resource_name = "Animate"
-length = 0.4
+length = 0.6
tracks/0/type = "bezier"
tracks/0/path = NodePath(".:rect_position:x")
tracks/0/interp = 1
@@ -13,8 +14,8 @@ tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
-"points": PoolRealArray( 508, -0.25, 0, 0.25, 0, 232, -0.25, 0, 0.25, 0 ),
-"times": PoolRealArray( 0, 0.4 )
+"points": PoolRealArray( 508, -0.25, 0, 0.25, 0, 0, -0.25, 0, 0.25, 0 ),
+"times": PoolRealArray( 0, 0.6 )
}
tracks/1/type = "bezier"
tracks/1/path = NodePath(".:rect_position:y")
@@ -23,8 +24,8 @@ tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
-"points": PoolRealArray( 260, -0.25, 0, 0.075, -163.46, 2, -0.1, -0.845123, 0.25, 0 ),
-"times": PoolRealArray( 0, 0.4 )
+"points": PoolRealArray( 260, -0.25, 0, 0.075, -163.46, 0, 0, -0.845, 0.25, 0 ),
+"times": PoolRealArray( 0, 0.6 )
}
tracks/2/type = "value"
tracks/2/path = NodePath(".:visible")
@@ -33,7 +34,7 @@ tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
-"times": PoolRealArray( 0, 0.4 ),
+"times": PoolRealArray( 0, 0.6 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 1,
"values": [ true, false ]
@@ -85,3 +86,7 @@ script = ExtResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/Animate = SubResource( 7 )
anims/RESET = SubResource( 8 )
+
+[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
+stream = ExtResource( 3 )
+volume_db = -5.0
diff --git a/Scenes/Transition.gd b/Scenes/Transition.gd
index 9723813..a9f6019 100644
--- a/Scenes/Transition.gd
+++ b/Scenes/Transition.gd
@@ -38,6 +38,7 @@ func game_over():
$UIController/Explosion.position = pos
$UIController/Explosion.show()
$UIController/Explosion/AnimationPlayer.play("Explode")
+ $AudioExplosion.play()
yield(get_tree().create_timer(0.1),"timeout")
get_node(dices[prev_stage]).hide()
yield(get_tree().create_timer(1),"timeout")
diff --git a/Scenes/Transition.tscn b/Scenes/Transition.tscn
index 3489b5f..aa51821 100644
--- a/Scenes/Transition.tscn
+++ b/Scenes/Transition.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=28 format=2]
+[gd_scene load_steps=29 format=2]
[ext_resource path="res://Assets/transition.png" type="Texture" id=1]
[ext_resource path="res://Scenes/CameraControl.gd" type="Script" id=2]
@@ -13,6 +13,7 @@
[ext_resource path="res://Assets/5_dots.png" type="Texture" id=11]
[ext_resource path="res://Assets/2_dots.png" type="Texture" id=12]
[ext_resource path="res://Assets/4_dots.png" type="Texture" id=13]
+[ext_resource path="res://Assets/Sound/explosion.wav" type="AudioStream" id=14]
[sub_resource type="QuadMesh" id=5]
@@ -494,6 +495,7 @@ pixel_size = 0.03
texture = ExtResource( 1 )
[node name="Pitch" type="Spatial" parent="."]
+transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.6636, 0, 0 )
script = ExtResource( 2 )
[node name="Yaw" type="Spatial" parent="Pitch"]
@@ -621,3 +623,7 @@ anims/Explode = SubResource( 17 )
anims/RESET = SubResource( 18 )
[node name="Tween" type="Tween" parent="."]
+
+[node name="AudioExplosion" type="AudioStreamPlayer" parent="."]
+stream = ExtResource( 14 )
+volume_db = -20.0
diff --git a/Scenes/UIController.gd b/Scenes/UIController.gd
index 99e85c6..df18866 100644
--- a/Scenes/UIController.gd
+++ b/Scenes/UIController.gd
@@ -48,6 +48,7 @@ func on_onboarding():
yield(onboarding_step(4), "completed")
yield(onboarding_step(5), "completed")
yield(onboarding_step(6), "completed")
+ yield(onboarding_step(7), "completed")
$OnboardingOverlay/AnimationPlayer.play_backwards("FadeIn")
yield($OnboardingOverlay/AnimationPlayer,"animation_finished")
$OnboardingOverlay.hide()