Browse Source

Added more sound effects and some music. More things make sounds now. A level has been designed and loads at startgit add . No exit yet.

master
Bryan Miller 4 years ago
parent
commit
8fea9bd695
65 changed files with 1561 additions and 44 deletions
  1. +3
    -0
      .import/BTN_Idle.png-e74f631b90dec4cd646e38f47bc13e95.md5
  2. BIN
      .import/BTN_Idle.png-e74f631b90dec4cd646e38f47bc13e95.stex
  3. +3
    -0
      .import/BTN_Pressed.png-25e259f0b49e79e987fef8005ecf5df0.md5
  4. BIN
      .import/BTN_Pressed.png-25e259f0b49e79e987fef8005ecf5df0.stex
  5. +3
    -0
      .import/Fly.ogg-254c5bd28962b977630c6e193b701d3c.md5
  6. BIN
      .import/Fly.ogg-254c5bd28962b977630c6e193b701d3c.oggstr
  7. +3
    -0
      .import/Fly_1.ogg-ee0d729b18b61e50e9c4d6d8de9213af.md5
  8. BIN
      .import/Fly_1.ogg-ee0d729b18b61e50e9c4d6d8de9213af.oggstr
  9. +3
    -0
      .import/Industria.ogg-e6835b16d37378708175eedd8988ac30.md5
  10. BIN
      .import/Industria.ogg-e6835b16d37378708175eedd8988ac30.oggstr
  11. +3
    -0
      .import/Industria_1.ogg-a2e1c1fa1e315b8c2849a5a5ecc6ef64.md5
  12. BIN
      .import/Industria_1.ogg-a2e1c1fa1e315b8c2849a5a5ecc6ef64.oggstr
  13. +3
    -0
      .import/MenuBody.png-adfd431e48986ffd45ce321909d3e4d5.md5
  14. BIN
      .import/MenuBody.png-adfd431e48986ffd45ce321909d3e4d5.stex
  15. +3
    -0
      .import/Metal_BigHit.wav-301f2ab29694745cf0477c983d28b966.md5
  16. BIN
      .import/Metal_BigHit.wav-301f2ab29694745cf0477c983d28b966.sample
  17. +3
    -0
      .import/Metal_SmallHit.wav-a96cd04532b7cb530f4cc0be36a05c2c.md5
  18. BIN
      .import/Metal_SmallHit.wav-a96cd04532b7cb530f4cc0be36a05c2c.sample
  19. +3
    -0
      .import/mechanic-doors.wav-e3d41aa7b17567f9e61107bd79531fc4.md5
  20. BIN
      .import/mechanic-doors.wav-e3d41aa7b17567f9e61107bd79531fc4.sample
  21. +3
    -0
      .import/splash.wav-a3b087a0a53acc6a8ab6da4179b2bcc9.md5
  22. BIN
      .import/splash.wav-a3b087a0a53acc6a8ab6da4179b2bcc9.sample
  23. BIN
      Data/Graphics/UI/BTN_Idle.png
  24. +34
    -0
      Data/Graphics/UI/BTN_Idle.png.import
  25. BIN
      Data/Graphics/UI/BTN_Pressed.png
  26. +34
    -0
      Data/Graphics/UI/BTN_Pressed.png.import
  27. BIN
      Data/Graphics/UI/MenuBody.png
  28. +34
    -0
      Data/Graphics/UI/MenuBody.png.import
  29. +1
    -0
      Data/Objects/BladeSaw.tscn
  30. +6
    -2
      Data/Objects/HalfDoor.tscn
  31. +7
    -2
      Data/Objects/Liquid.tscn
  32. +11
    -1
      Data/Objects/Player.tscn
  33. +2
    -1
      Data/Objects/Pusher.tscn
  34. +1041
    -0
      Data/Scenes/Levels/Level_001.tscn
  35. +11
    -35
      Data/Scenes/Levels/Level_TestSite.tscn
  36. +134
    -1
      Data/Scenes/World.tscn
  37. +2
    -0
      Data/Scripts/Controller.gd
  38. +3
    -0
      Data/Scripts/HalfDoor.gd
  39. +7
    -0
      Data/Scripts/Levels/Level_001.gd
  40. +3
    -0
      Data/Scripts/Levels/Level_TestSite.gd
  41. +3
    -1
      Data/Scripts/Liquid.gd
  42. +10
    -0
      Data/Scripts/UI/GUI.gd
  43. +21
    -1
      Data/Scripts/World.gd
  44. +14
    -0
      Data/Sound/Attributions.txt
  45. BIN
      Data/Sound/Effects/Metal_BigHit.wav
  46. +21
    -0
      Data/Sound/Effects/Metal_BigHit.wav.import
  47. BIN
      Data/Sound/Effects/Metal_SmallHit.wav
  48. +21
    -0
      Data/Sound/Effects/Metal_SmallHit.wav.import
  49. BIN
      Data/Sound/Effects/mechanic-doors.wav
  50. +21
    -0
      Data/Sound/Effects/mechanic-doors.wav.import
  51. BIN
      Data/Sound/Effects/splash.wav
  52. +21
    -0
      Data/Sound/Effects/splash.wav.import
  53. BIN
      Data/Sound/Music/Fly.mp3
  54. BIN
      Data/Sound/Music/Fly.ogg
  55. +15
    -0
      Data/Sound/Music/Fly.ogg.import
  56. BIN
      Data/Sound/Music/Fly_1.mp3
  57. BIN
      Data/Sound/Music/Fly_1.ogg
  58. +15
    -0
      Data/Sound/Music/Fly_1.ogg.import
  59. BIN
      Data/Sound/Music/Industria.mp3
  60. BIN
      Data/Sound/Music/Industria.ogg
  61. +15
    -0
      Data/Sound/Music/Industria.ogg.import
  62. BIN
      Data/Sound/Music/Industria_1.mp3
  63. BIN
      Data/Sound/Music/Industria_1.ogg
  64. +15
    -0
      Data/Sound/Music/Industria_1.ogg.import
  65. +6
    -0
      default_bus_layout.tres

+ 3
- 0
.import/BTN_Idle.png-e74f631b90dec4cd646e38f47bc13e95.md5 View File

@@ -0,0 +1,3 @@
source_md5="4285eee32f455b7f9e3e4f6219931218"
dest_md5="a85d6e037a24dd8283d5a0655a2967dc"


BIN
.import/BTN_Idle.png-e74f631b90dec4cd646e38f47bc13e95.stex View File


+ 3
- 0
.import/BTN_Pressed.png-25e259f0b49e79e987fef8005ecf5df0.md5 View File

@@ -0,0 +1,3 @@
source_md5="f5e4f502cd58c098580f65b4d19af406"
dest_md5="a8833ad2cae7af32343589a96801bcd4"


BIN
.import/BTN_Pressed.png-25e259f0b49e79e987fef8005ecf5df0.stex View File


+ 3
- 0
.import/Fly.ogg-254c5bd28962b977630c6e193b701d3c.md5 View File

@@ -0,0 +1,3 @@
source_md5="2e984f6982285286c8496d1aec87f5a1"
dest_md5="c3b69383019093b880966a964e383011"


BIN
.import/Fly.ogg-254c5bd28962b977630c6e193b701d3c.oggstr View File


+ 3
- 0
.import/Fly_1.ogg-ee0d729b18b61e50e9c4d6d8de9213af.md5 View File

@@ -0,0 +1,3 @@
source_md5="0c46925f7bce5330b78ad30cafac2b5f"
dest_md5="2d8a8fcd51ddc6e9d0757ee292d31041"


BIN
.import/Fly_1.ogg-ee0d729b18b61e50e9c4d6d8de9213af.oggstr View File


+ 3
- 0
.import/Industria.ogg-e6835b16d37378708175eedd8988ac30.md5 View File

@@ -0,0 +1,3 @@
source_md5="b019777e1b7e18f7eca2c4f09d0407f5"
dest_md5="bf64a91809e6d34f5fcbd5e3512fec36"


BIN
.import/Industria.ogg-e6835b16d37378708175eedd8988ac30.oggstr View File


+ 3
- 0
.import/Industria_1.ogg-a2e1c1fa1e315b8c2849a5a5ecc6ef64.md5 View File

@@ -0,0 +1,3 @@
source_md5="c068566312d766acc3c7e420f39b813a"
dest_md5="fbd61d8318f8d7ec8905d4dc6ad67bfb"


BIN
.import/Industria_1.ogg-a2e1c1fa1e315b8c2849a5a5ecc6ef64.oggstr View File


+ 3
- 0
.import/MenuBody.png-adfd431e48986ffd45ce321909d3e4d5.md5 View File

@@ -0,0 +1,3 @@
source_md5="5bd3382e0499d2c140f4a61dc9ae5a73"
dest_md5="07945a5ef11fd3810e0383c8ea7c4da3"


BIN
.import/MenuBody.png-adfd431e48986ffd45ce321909d3e4d5.stex View File


+ 3
- 0
.import/Metal_BigHit.wav-301f2ab29694745cf0477c983d28b966.md5 View File

@@ -0,0 +1,3 @@
source_md5="2c2a06317f3aee4987358a884ff5c20b"
dest_md5="824e456c408d87856a0b0d6a415e0041"


BIN
.import/Metal_BigHit.wav-301f2ab29694745cf0477c983d28b966.sample View File


+ 3
- 0
.import/Metal_SmallHit.wav-a96cd04532b7cb530f4cc0be36a05c2c.md5 View File

@@ -0,0 +1,3 @@
source_md5="fb67a4f99a359a440ee91c653143fa3a"
dest_md5="dfe4d5f63ece13e2594a9d7aa2f0bae8"


BIN
.import/Metal_SmallHit.wav-a96cd04532b7cb530f4cc0be36a05c2c.sample View File


+ 3
- 0
.import/mechanic-doors.wav-e3d41aa7b17567f9e61107bd79531fc4.md5 View File

@@ -0,0 +1,3 @@
source_md5="bcee037a5de0db4673107a78a3631504"
dest_md5="5895199fd90f72bc69bc3a8fb82f4589"


BIN
.import/mechanic-doors.wav-e3d41aa7b17567f9e61107bd79531fc4.sample View File


+ 3
- 0
.import/splash.wav-a3b087a0a53acc6a8ab6da4179b2bcc9.md5 View File

@@ -0,0 +1,3 @@
source_md5="655df19c64eb5c74d3b0ae75b65dc101"
dest_md5="f3c76b9d7a63a0379add8eb82f91b42d"


BIN
.import/splash.wav-a3b087a0a53acc6a8ab6da4179b2bcc9.sample View File


BIN
Data/Graphics/UI/BTN_Idle.png View File

Before After
Width: 200  |  Height: 48  |  Size: 324B

+ 34
- 0
Data/Graphics/UI/BTN_Idle.png.import View File

@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/BTN_Idle.png-e74f631b90dec4cd646e38f47bc13e95.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Data/Graphics/UI/BTN_Idle.png"
dest_files=[ "res://.import/BTN_Idle.png-e74f631b90dec4cd646e38f47bc13e95.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
Data/Graphics/UI/BTN_Pressed.png View File

Before After
Width: 200  |  Height: 48  |  Size: 324B

+ 34
- 0
Data/Graphics/UI/BTN_Pressed.png.import View File

@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/BTN_Pressed.png-25e259f0b49e79e987fef8005ecf5df0.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Data/Graphics/UI/BTN_Pressed.png"
dest_files=[ "res://.import/BTN_Pressed.png-25e259f0b49e79e987fef8005ecf5df0.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

BIN
Data/Graphics/UI/MenuBody.png View File

Before After
Width: 64  |  Height: 64  |  Size: 325B

+ 34
- 0
Data/Graphics/UI/MenuBody.png.import View File

@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="StreamTexture"
path="res://.import/MenuBody.png-adfd431e48986ffd45ce321909d3e4d5.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://Data/Graphics/UI/MenuBody.png"
dest_files=[ "res://.import/MenuBody.png-adfd431e48986ffd45ce321909d3e4d5.stex" ]

[params]

compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=false
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=false
svg/scale=1.0

+ 1
- 0
Data/Objects/BladeSaw.tscn View File

@@ -12,6 +12,7 @@ degrees_per_second = 270.0
[node name="audio" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
max_distance = 1024.0
bus = "Effects"

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
position = Vector2( 0.291977, -0.407814 )

+ 6
- 2
Data/Objects/HalfDoor.tscn View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=8 format=2]

[ext_resource path="res://Data/Scripts/HalfDoor.gd" type="Script" id=1]
[ext_resource path="res://Data/Sound/Effects/mechanic-doors.wav" type="AudioStream" id=2]
[ext_resource path="res://Data/Shaders/Glowdot.shader" type="Shader" id=3]
[ext_resource path="res://Data/Objects/Glowdot.tscn" type="PackedScene" id=5]
[ext_resource path="res://Data/Graphics/Tileset.png" type="Texture" id=6]
@@ -49,7 +50,6 @@ material = SubResource( 1 )
position = Vector2( 14.989, -0.323532 )
scale = Vector2( 0.25, 0.25 )
pulse_in_time = 0.2
pulse_offset = 0.1

[node name="CollisionShape2D" type="CollisionShape2D" parent="Doorway"]
shape = SubResource( 2 )
@@ -75,4 +75,8 @@ polygon = PoolVector2Array( -47.9044, -15.9911, -30.1666, -15.9101, -18.8273, -9

[node name="Tween" type="Tween" parent="."]

[node name="Audio" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 2 )
bus = "Effects"

[editable path="Doorway/Glow"]

+ 7
- 2
Data/Objects/Liquid.tscn View File

@@ -1,8 +1,9 @@
[gd_scene load_steps=9 format=2]
[gd_scene load_steps=10 format=2]

[ext_resource path="res://Data/Scripts/Liquid.gd" type="Script" id=1]
[ext_resource path="res://Data/Graphics/placeholder.png" type="Texture" id=2]
[ext_resource path="res://Data/Shaders/Liquid.shader" type="Shader" id=3]
[ext_resource path="res://Data/Sound/Effects/splash.wav" type="AudioStream" id=4]

[sub_resource type="ShaderMaterial" id=1]
resource_local_to_scene = true
@@ -37,7 +38,7 @@ orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 2.0
scale_curve = SubResource( 4 )
color = Color( 0.576471, 0.760784, 0.996078, 1 )
color = Color( 0.94902, 0.541176, 0.827451, 1 )

[node name="Liquid" type="Sprite"]
material = SubResource( 1 )
@@ -59,4 +60,8 @@ amount = 80
one_shot = true
explosiveness = 0.75
process_material = SubResource( 5 )

[node name="Audio" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
bus = "Effects"
[connection signal="body_entered" from="Trigger" to="." method="_on_Trigger_body_entered"]

+ 11
- 1
Data/Objects/Player.tscn View File

@@ -1,10 +1,12 @@
[gd_scene load_steps=11 format=2]
[gd_scene load_steps=13 format=2]

[ext_resource path="res://Data/Scripts/Controller.gd" type="Script" id=1]
[ext_resource path="res://Data/Graphics/placeholder.png" type="Texture" id=2]
[ext_resource path="res://Data/Objects/ScreenShake.tscn" type="PackedScene" id=3]
[ext_resource path="res://Data/Scripts/Mood.gd" type="Script" id=4]
[ext_resource path="res://Data/Shaders/WaveFish.shader" type="Shader" id=5]
[ext_resource path="res://Data/Sound/Effects/Metal_SmallHit.wav" type="AudioStream" id=6]
[ext_resource path="res://Data/Sound/Effects/Metal_BigHit.wav" type="AudioStream" id=7]

[sub_resource type="CircleShape2D" id=1]
radius = 16.0
@@ -75,5 +77,13 @@ process_material = SubResource( 4 )
material = SubResource( 5 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )

[node name="Audio_SmallHit" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
bus = "Effects"

[node name="Audio_BigHit" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
bus = "Effects"
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_Player_body_exited"]

+ 2
- 1
Data/Objects/Pusher.tscn View File

@@ -4,6 +4,7 @@
[ext_resource path="res://Data/Objects/PulseArrow.tscn" type="PackedScene" id=2]

[sub_resource type="ParticlesMaterial" id=1]
resource_local_to_scene = true
emission_shape = 2
emission_box_extents = Vector3( 40, 1, 1 )
flag_disable_z = true
@@ -17,7 +18,7 @@ angle = 45.0
angle_random = 0.25
scale = 1.5
scale_random = 0.5
color = Color( 0.980392, 0.980392, 0.74902, 1 )
color = Color( 0.239216, 0.478431, 0.988235, 1 )

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 40, 40 )

+ 1041
- 0
Data/Scenes/Levels/Level_001.tscn
File diff suppressed because it is too large
View File


+ 11
- 35
Data/Scenes/Levels/Level_TestSite.tscn View File

@@ -1,13 +1,8 @@
[gd_scene load_steps=15 format=2]
[gd_scene load_steps=10 format=2]

[ext_resource path="res://Data/Objects/Liquid.tscn" type="PackedScene" id=1]
[ext_resource path="res://Data/Misc/Tileset.tres" type="TileSet" id=2]
[ext_resource path="res://Data/Scripts/BladeSaw.gd" type="Script" id=3]
[ext_resource path="res://Data/Scripts/Doorway.gd" type="Script" id=4]
[ext_resource path="res://Data/Scripts/Liquid.gd" type="Script" id=5]
[ext_resource path="res://Data/Graphics/placeholder.png" type="Texture" id=6]
[ext_resource path="res://Data/Shaders/Liquid.shader" type="Shader" id=7]
[ext_resource path="res://Data/Scripts/Pusher.gd" type="Script" id=8]
[ext_resource path="res://Data/Objects/Pusher.tscn" type="PackedScene" id=9]
[ext_resource path="res://Data/Objects/BladeSaw.tscn" type="PackedScene" id=10]
[ext_resource path="res://Data/Objects/Doorway.tscn" type="PackedScene" id=11]
@@ -40,73 +35,54 @@ shader_param/wave_scale = 1.0
[node name="Level_TestSite" type="Node2D"]
script = ExtResource( 12 )

[node name="Liquid2" type="Sprite" parent="." instance=ExtResource( 1 )]
[node name="Liquid2" parent="." instance=ExtResource( 1 )]
material = SubResource( 1 )
position = Vector2( -127.435, 105.962 )
scale = Vector2( 2.35979, 1.50659 )
texture = ExtResource( 6 )
script = ExtResource( 5 )
liquid_body_color = Color( 0.513726, 0.137255, 0.137255, 1 )
liquid_surface_color = Color( 0.984314, 0.478431, 0.490196, 1 )

[node name="Liquid" type="Sprite" parent="." instance=ExtResource( 1 )]
[node name="Liquid" parent="." instance=ExtResource( 1 )]
material = SubResource( 2 )
position = Vector2( 539.108, -23.1772 )
scale = Vector2( 1.66713, 1.11691 )
texture = ExtResource( 6 )
script = ExtResource( 5 )
liquid_body_color = Color( 0.180908, 0.250748, 0.8125, 1 )
liquid_surface_color = Color( 0.576471, 0.760784, 0.996078, 1 )

[node name="Doorway" type="Node2D" parent="." instance=ExtResource( 11 )]
[node name="Doorway" parent="." instance=ExtResource( 11 )]
position = Vector2( 94.9786, 581.025 )
script = ExtResource( 4 )
color = Color( 0.0470588, 0.0156863, 0.980392, 1 )

[node name="Doorway2" type="Node2D" parent="." instance=ExtResource( 11 )]
[node name="Doorway2" parent="." instance=ExtResource( 11 )]
position = Vector2( -306.381, 286.254 )
rotation = 1.57079
script = ExtResource( 4 )
color = Color( 0.0235294, 0.980392, 0.0156863, 1 )

[node name="BladeSaw" type="KinematicBody2D" parent="." instance=ExtResource( 10 )]
[node name="BladeSaw" parent="." instance=ExtResource( 10 )]
position = Vector2( -389.595, -64.0996 )
collision_layer = 2
script = ExtResource( 3 )
degrees_per_second = 270.0

[node name="BladeSaw2" type="KinematicBody2D" parent="." instance=ExtResource( 10 )]
[node name="BladeSaw2" parent="." instance=ExtResource( 10 )]
position = Vector2( -298.686, -133.59 )
collision_layer = 2
script = ExtResource( 3 )
degrees_per_second = -270.0

[node name="Pusher" type="Node2D" parent="." instance=ExtResource( 9 )]
[node name="Pusher" parent="." instance=ExtResource( 9 )]
position = Vector2( 108.94, -32.8218 )
script = ExtResource( 8 )
pulse_color = Color( 0.980392, 0.980392, 0.74902, 1 )
push_force = 128.0
push_angle = 34.923

[node name="Pusher2" type="Node2D" parent="." instance=ExtResource( 9 )]
[node name="Pusher2" parent="." instance=ExtResource( 9 )]
position = Vector2( 170.94, -85.8217 )
script = ExtResource( 8 )
pulse_color = Color( 0.980392, 0.980392, 0.74902, 1 )
push_force = 128.0
push_angle = 58.923

[node name="Pusher3" type="Node2D" parent="." instance=ExtResource( 9 )]
[node name="Pusher3" parent="." instance=ExtResource( 9 )]
position = Vector2( 237.94, -112.822 )
script = ExtResource( 8 )
pulse_color = Color( 0.980392, 0.980392, 0.74902, 1 )
push_force = 128.0
push_angle = 76.378

[node name="Pusher4" type="Node2D" parent="." instance=ExtResource( 9 )]
[node name="Pusher4" parent="." instance=ExtResource( 9 )]
position = Vector2( 318.94, -122.822 )
script = ExtResource( 8 )
pulse_color = Color( 0.980392, 0.980392, 0.74902, 1 )
push_force = 128.0
push_angle = 90.0

[node name="TileMap" type="TileMap" parent="."]

+ 134
- 1
Data/Scenes/World.tscn View File

@@ -1,6 +1,9 @@
[gd_scene load_steps=10 format=2]
[gd_scene load_steps=13 format=2]

[ext_resource path="res://Data/Graphics/UI/BTN_Pressed.png" type="Texture" id=1]
[ext_resource path="res://Data/Objects/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Data/Graphics/UI/MenuBody.png" type="Texture" id=3]
[ext_resource path="res://Data/Graphics/UI/BTN_Idle.png" type="Texture" id=4]
[ext_resource path="res://Data/Graphics/UI/Progress_Back.png" type="Texture" id=8]
[ext_resource path="res://Data/Graphics/UI/Progress_Bar.png" type="Texture" id=9]
[ext_resource path="res://Data/Scripts/UI/GUI.gd" type="Script" id=10]
@@ -13,12 +16,16 @@
[node name="World" type="Node2D"]
script = ExtResource( 15 )

[node name="Music" type="AudioStreamPlayer" parent="."]
bus = "Music"

[node name="lvl" type="Node2D" parent="."]

[node name="Player" parent="." instance=ExtResource( 2 )]
visible = false

[node name="GUI" type="CanvasLayer" parent="."]
pause_mode = 2
script = ExtResource( 10 )

[node name="PlayerUI" type="HBoxContainer" parent="GUI"]
@@ -195,3 +202,129 @@ custom_colors/font_color_shadow = Color( 1, 1, 1, 1 )
text = "0000:00:00"
align = 2
valign = 1

[node name="Menus" type="CenterContainer" parent="GUI"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="PauseMenu" type="NinePatchRect" parent="GUI/Menus"]
visible = false
margin_left = 563.0
margin_top = 183.0
margin_right = 803.0
margin_bottom = 583.0
rect_min_size = Vector2( 240, 400 )
texture = ExtResource( 3 )
region_rect = Rect2( 0, 0, 64, 64 )
patch_margin_left = 5
patch_margin_top = 32
patch_margin_right = 5
patch_margin_bottom = 4

[node name="Box" type="VBoxContainer" parent="GUI/Menus/PauseMenu"]
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="MarginContainer" type="MarginContainer" parent="GUI/Menus/PauseMenu/Box"]
margin_right = 240.0
rect_min_size = Vector2( 81, 0 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Label" type="Label" parent="GUI/Menus/PauseMenu/Box"]
margin_top = 4.0
margin_right = 240.0
margin_bottom = 28.0
rect_min_size = Vector2( 240, 0 )
custom_fonts/font = ExtResource( 13 )
custom_colors/font_color = Color( 0.192157, 0.192157, 0.192157, 1 )
custom_colors/font_outline_modulate = Color( 1, 1, 1, 1 )
custom_colors/font_color_shadow = Color( 0.760784, 0.745098, 1, 1 )
text = "Pause Menu"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="MarginContainer2" type="MarginContainer" parent="GUI/Menus/PauseMenu/Box"]
margin_top = 32.0
margin_right = 240.0
margin_bottom = 56.0
rect_min_size = Vector2( 0, 24 )

[node name="Resume Button" type="HBoxContainer" parent="GUI/Menus/PauseMenu/Box"]
margin_top = 60.0
margin_right = 240.0
margin_bottom = 108.0

[node name="MarginContainer" type="MarginContainer" parent="GUI/Menus/PauseMenu/Box/Resume Button"]
margin_right = 16.0
margin_bottom = 48.0
rect_min_size = Vector2( 16, 0 )

[node name="PM_Resume" type="TextureButton" parent="GUI/Menus/PauseMenu/Box/Resume Button"]
margin_left = 20.0
margin_right = 220.0
margin_bottom = 48.0
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 1 )

[node name="Label" type="Label" parent="GUI/Menus/PauseMenu/Box/Resume Button/PM_Resume"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -26.0
margin_top = -7.0
margin_right = 26.0
margin_bottom = 7.0
text = "Resume"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Quit Button" type="HBoxContainer" parent="GUI/Menus/PauseMenu/Box"]
margin_top = 112.0
margin_right = 240.0
margin_bottom = 160.0

[node name="MarginContainer" type="MarginContainer" parent="GUI/Menus/PauseMenu/Box/Quit Button"]
margin_right = 16.0
margin_bottom = 48.0
rect_min_size = Vector2( 16, 0 )

[node name="PM_Quit" type="TextureButton" parent="GUI/Menus/PauseMenu/Box/Quit Button"]
margin_left = 20.0
margin_right = 220.0
margin_bottom = 48.0
texture_normal = ExtResource( 4 )
texture_pressed = ExtResource( 1 )

[node name="Label" type="Label" parent="GUI/Menus/PauseMenu/Box/Quit Button/PM_Quit"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -35.0
margin_top = -7.0
margin_right = 35.0
margin_bottom = 7.0
text = "Quit Game"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="GUI/Menus/PauseMenu/Box/Resume Button/PM_Resume" to="GUI" method="_on_PM_Resume_pressed"]
[connection signal="pressed" from="GUI/Menus/PauseMenu/Box/Quit Button/PM_Quit" to="GUI" method="_on_PM_Resume_pressed"]
[connection signal="pressed" from="GUI/Menus/PauseMenu/Box/Quit Button/PM_Quit" to="." method="_on_PM_Quit_pressed"]

+ 2
- 0
Data/Scripts/Controller.gd View File

@@ -185,9 +185,11 @@ func _on_Player_body_entered(body):
#print("Last Speed: ", last_speed)
if last_speed >= COLLISION_MINOR_SPEED_THRESHOLD and last_speed < COLLISION_MAJOR_SPEED_THRESHOLD:
$Mood.adjust_mood(0.1, 0.0, -0.1)
$Audio_SmallHit.play()
$Camera/ScreenShake.start()
elif last_speed >= COLLISION_MAJOR_SPEED_THRESHOLD:
$Mood.adjust_mood(0.25, 0.0, -0.25)
$Audio_BigHit.play()
$Camera/ScreenShake.start(0.4, 15, 24)
air_time = 0


+ 3
- 0
Data/Scripts/HalfDoor.gd View File

@@ -34,6 +34,7 @@ func open():
t = transition_rate * (cdiff / POSITION_DIFF)
$Tween.interpolate_property($Doorway, "position", $Doorway.position, OPENED_POSITION, t, Tween.TRANS_LINEAR, Tween.EASE_IN)
$Tween.start()
$Audio.play()
_control_state = 1

func close():
@@ -43,8 +44,10 @@ func close():
t = transition_rate * (cdiff / POSITION_DIFF)
$Tween.interpolate_property($Doorway, "position", $Doorway.position, CLOSED_POSITION, t, Tween.TRANS_LINEAR, Tween.EASE_IN)
$Tween.start()
$Audio.play()
_control_state = 2

func stop():
$Tween.stop($Doorway, "position")
$Audio.stop()
_control_state = 0

+ 7
- 0
Data/Scripts/Levels/Level_001.gd View File

@@ -0,0 +1,7 @@
extends Node2D

func get_starting_position():
return get_node("Player_Start").position

func get_level_music():
return "Fly.ogg"

+ 3
- 0
Data/Scripts/Levels/Level_TestSite.gd View File

@@ -2,3 +2,6 @@ extends Node2D

func get_starting_position():
return get_node("Player_Start").position

func get_level_music():
return "Fly.ogg"

+ 3
- 1
Data/Scripts/Liquid.gd View File

@@ -34,7 +34,9 @@ func _on_Trigger_body_entered(body):
var delta = bpos.x - spos.x
$Splash.position.x = (delta * (1/scale.x))
$Splash.emitting = true
$Splash.emitting = true
$Audio.play()
if (body.has_method("set_colors")):
body.set_colors(

+ 10
- 0
Data/Scripts/UI/GUI.gd View File

@@ -12,6 +12,7 @@ onready var _nrg_bar_tween = get_node("PlayerUI/NRG/Bar/Progress/Tween")

# Called when the node enters the scene tree for the first time.
func _ready():
set_process_input(true)
set_process(true)
_agg_bar.max_value = 100.0
_agg_bar.value = 0.0
@@ -23,6 +24,10 @@ func _ready():
_nrg_bar.max_value = get_node("../Player").max_energy
_nrg_bar.value = get_node("../Player").get_current_energy()

func _input(event):
if event.is_action_pressed("ui_cancel"):
get_parent().pause(true)
$Menus/PauseMenu.show()

func _process(delta):
UpdateMoodBars()
@@ -52,3 +57,8 @@ func UpdateMoodBars():
_nrg_bar_tween.interpolate_property(_nrg_bar, "value", _nrg_bar.value, p.get_current_energy(), 0.1, Tween.TRANS_LINEAR, Tween.EASE_IN_OUT)
_nrg_bar_tween.start()


func _on_PM_Resume_pressed():
get_parent().pause(false)
$Menus/PauseMenu.hide()

+ 21
- 1
Data/Scripts/World.gd View File

@@ -14,6 +14,13 @@ func get_minutes():
func get_seconds():
return floor(fmod(_timer, 60.0))


func load_and_play_music(src):
var fn = "res://Data/Sound/Music/" + src
if File.new().file_exists(fn):
$Music.stream = load(fn)
$Music.play()

func load_level(src):
_level_running = false
get_node("Player").hide()
@@ -26,11 +33,13 @@ func load_level(src):
if lvlres:
_level_node = lvlres.instance()
lvl.add_child(_level_node)
load_and_play_music(_level_node.get_level_music())
reset()


func reset():
if _level_node:
get_tree().paused = true
var p = get_node("Player")
if _level_node.has_method("get_starting_position"):
p.position = _level_node.get_starting_position()
@@ -38,11 +47,18 @@ func reset():
p.position = Vector2.ZERO
p.reset()
p.show()
_timer = 0.0
get_tree().paused = false

func pause(enable = true):
if get_tree().paused != enable:
_level_running = !enable
get_tree().paused = enable


func _ready():
set_physics_process(true)
load_level("Level_TestSite.tscn")
load_level("Level_001.tscn")
#var ps = get_node("Level_00/Player_Start")
#get_node("Player").position = get_node("Level_TestSite").get_starting_position()
#get_node("Player").show()
@@ -50,3 +66,7 @@ func _ready():
func _physics_process(delta):
if _level_running:
_timer += delta


func _on_PM_Quit_pressed():
get_tree().quit()

+ 14
- 0
Data/Sound/Attributions.txt View File

@@ -9,4 +9,18 @@ https://freesound.org/people/HerbertBoland/sounds/114594/
Effects/saw.wav
https://freesound.org/people/Marregheriti/sounds/266104/

Effects/splash.wav
https://freesound.org/people/swordofkings128/sounds/398032/

Effects/Metal_BigHit.wav
Effects/Metal_SmallHit.wav
[Both modified from] https://freesound.org/people/newagesoup/sounds/337856/

Effects/mechanic-doors.wav
[Modified from] https://freesound.org/people/marcgp13/sounds/185756/

Music/Fly.ogg
Music/Fly_1.ogg
Music/Industria_1.ogg
Music/Industria.ogg
[Modified to OGG from original MP3] https://opengameart.org/content/techno-space

BIN
Data/Sound/Effects/Metal_BigHit.wav View File


+ 21
- 0
Data/Sound/Effects/Metal_BigHit.wav.import View File

@@ -0,0 +1,21 @@
[remap]

importer="wav"
type="AudioStreamSample"
path="res://.import/Metal_BigHit.wav-301f2ab29694745cf0477c983d28b966.sample"

[deps]

source_file="res://Data/Sound/Effects/Metal_BigHit.wav"
dest_files=[ "res://.import/Metal_BigHit.wav-301f2ab29694745cf0477c983d28b966.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

BIN
Data/Sound/Effects/Metal_SmallHit.wav View File


+ 21
- 0
Data/Sound/Effects/Metal_SmallHit.wav.import View File

@@ -0,0 +1,21 @@
[remap]

importer="wav"
type="AudioStreamSample"
path="res://.import/Metal_SmallHit.wav-a96cd04532b7cb530f4cc0be36a05c2c.sample"

[deps]

source_file="res://Data/Sound/Effects/Metal_SmallHit.wav"
dest_files=[ "res://.import/Metal_SmallHit.wav-a96cd04532b7cb530f4cc0be36a05c2c.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

BIN
Data/Sound/Effects/mechanic-doors.wav View File


+ 21
- 0
Data/Sound/Effects/mechanic-doors.wav.import View File

@@ -0,0 +1,21 @@
[remap]

importer="wav"
type="AudioStreamSample"
path="res://.import/mechanic-doors.wav-e3d41aa7b17567f9e61107bd79531fc4.sample"

[deps]

source_file="res://Data/Sound/Effects/mechanic-doors.wav"
dest_files=[ "res://.import/mechanic-doors.wav-e3d41aa7b17567f9e61107bd79531fc4.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

BIN
Data/Sound/Effects/splash.wav View File


+ 21
- 0
Data/Sound/Effects/splash.wav.import View File

@@ -0,0 +1,21 @@
[remap]

importer="wav"
type="AudioStreamSample"
path="res://.import/splash.wav-a3b087a0a53acc6a8ab6da4179b2bcc9.sample"

[deps]

source_file="res://Data/Sound/Effects/splash.wav"
dest_files=[ "res://.import/splash.wav-a3b087a0a53acc6a8ab6da4179b2bcc9.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

BIN
Data/Sound/Music/Fly.mp3 View File


BIN
Data/Sound/Music/Fly.ogg View File


+ 15
- 0
Data/Sound/Music/Fly.ogg.import View File

@@ -0,0 +1,15 @@
[remap]

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Fly.ogg-254c5bd28962b977630c6e193b701d3c.oggstr"

[deps]

source_file="res://Data/Sound/Music/Fly.ogg"
dest_files=[ "res://.import/Fly.ogg-254c5bd28962b977630c6e193b701d3c.oggstr" ]

[params]

loop=true
loop_offset=0

BIN
Data/Sound/Music/Fly_1.mp3 View File


BIN
Data/Sound/Music/Fly_1.ogg View File


+ 15
- 0
Data/Sound/Music/Fly_1.ogg.import View File

@@ -0,0 +1,15 @@
[remap]

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Fly_1.ogg-ee0d729b18b61e50e9c4d6d8de9213af.oggstr"

[deps]

source_file="res://Data/Sound/Music/Fly_1.ogg"
dest_files=[ "res://.import/Fly_1.ogg-ee0d729b18b61e50e9c4d6d8de9213af.oggstr" ]

[params]

loop=true
loop_offset=0

BIN
Data/Sound/Music/Industria.mp3 View File


BIN
Data/Sound/Music/Industria.ogg View File


+ 15
- 0
Data/Sound/Music/Industria.ogg.import View File

@@ -0,0 +1,15 @@
[remap]

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Industria.ogg-e6835b16d37378708175eedd8988ac30.oggstr"

[deps]

source_file="res://Data/Sound/Music/Industria.ogg"
dest_files=[ "res://.import/Industria.ogg-e6835b16d37378708175eedd8988ac30.oggstr" ]

[params]

loop=true
loop_offset=0

BIN
Data/Sound/Music/Industria_1.mp3 View File


BIN
Data/Sound/Music/Industria_1.ogg View File


+ 15
- 0
Data/Sound/Music/Industria_1.ogg.import View File

@@ -0,0 +1,15 @@
[remap]

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Industria_1.ogg-a2e1c1fa1e315b8c2849a5a5ecc6ef64.oggstr"

[deps]

source_file="res://Data/Sound/Music/Industria_1.ogg"
dest_files=[ "res://.import/Industria_1.ogg-a2e1c1fa1e315b8c2849a5a5ecc6ef64.oggstr" ]

[params]

loop=true
loop_offset=0

+ 6
- 0
default_bus_layout.tres View File

@@ -7,3 +7,9 @@ bus/1/mute = false
bus/1/bypass_fx = false
bus/1/volume_db = 0.0
bus/1/send = "Master"
bus/2/name = "Music"
bus/2/solo = false
bus/2/mute = false
bus/2/bypass_fx = false
bus/2/volume_db = 0.0
bus/2/send = "Master"

Loading…
Cancel
Save