3 Commits

Author SHA1 Message Date
  Pixdigit 4ec7c86cbe fixes 3 months ago
  Pixdigit de09fd4a1c Merge branch 'Henrik' into max 3 months ago
  Desaru c04a0266e0 SoundFX 3 months ago
17 changed files with 196 additions and 28 deletions
Split View
  1. BIN
     
  2. +13
    -0
      assets/plant_engine.gd
  3. BIN
     
  4. +15
    -0
      assets/sound/Bucket_Fill_mono.ogg.import
  5. BIN
     
  6. +15
    -0
      assets/sound/Door_Open_mono.ogg.import
  7. BIN
     
  8. +15
    -0
      assets/sound/Music_Menu_Intro.ogg.import
  9. BIN
     
  10. +15
    -0
      assets/sound/Music_Menu_Loop.ogg.import
  11. BIN
     
  12. +15
    -0
      assets/sound/Pickup_Sack_mono.ogg.import
  13. +1
    -1
      assets/sound/Plant_Grow_mono.ogg.import
  14. +1
    -0
      assets/sound/Readme.md
  15. +24
    -0
      default_bus_layout.tres
  16. +62
    -19
      scenes/Ship.tscn
  17. +20
    -8
      scenes/sub_scenes/satzkasten.tscn

BIN
View File


+ 13
- 0
assets/plant_engine.gd View File

@@ -0,0 +1,13 @@
extends Spatial

onready var audio = get_node("AudioStreamPlayer3D")



func _process(_delta):
if visible and not audio.playing:
print_debug("play")
audio.play()
elif not visible and audio.playing:
audio.stop()

BIN
View File


+ 15
- 0
assets/sound/Bucket_Fill_mono.ogg.import View File

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

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Bucket_Fill_mono.ogg-4d049b8f9f755b1cf429202c14eb3c56.oggstr"

[deps]

source_file="res://assets/sound/Bucket_Fill_mono.ogg"
dest_files=[ "res://.import/Bucket_Fill_mono.ogg-4d049b8f9f755b1cf429202c14eb3c56.oggstr" ]

[params]

loop=false
loop_offset=0

BIN
View File


+ 15
- 0
assets/sound/Door_Open_mono.ogg.import View File

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

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Door_Open_mono.ogg-5858e11d02d325b0efa0b4f0527709a4.oggstr"

[deps]

source_file="res://assets/sound/Door_Open_mono.ogg"
dest_files=[ "res://.import/Door_Open_mono.ogg-5858e11d02d325b0efa0b4f0527709a4.oggstr" ]

[params]

loop=false
loop_offset=0

BIN
View File


+ 15
- 0
assets/sound/Music_Menu_Intro.ogg.import View File

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

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Music_Menu_Intro.ogg-cb5141e8d7455077fbd2080544c7180a.oggstr"

[deps]

source_file="res://assets/sound/Music_Menu_Intro.ogg"
dest_files=[ "res://.import/Music_Menu_Intro.ogg-cb5141e8d7455077fbd2080544c7180a.oggstr" ]

[params]

loop=true
loop_offset=0

BIN
View File


+ 15
- 0
assets/sound/Music_Menu_Loop.ogg.import View File

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

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Music_Menu_Loop.ogg-5ac549cfcb9b19251556089587bc235f.oggstr"

[deps]

source_file="res://assets/sound/Music_Menu_Loop.ogg"
dest_files=[ "res://.import/Music_Menu_Loop.ogg-5ac549cfcb9b19251556089587bc235f.oggstr" ]

[params]

loop=true
loop_offset=0

BIN
View File


+ 15
- 0
assets/sound/Pickup_Sack_mono.ogg.import View File

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

importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/Pickup_Sack_mono.ogg-dcf5b62b5fa297993961698c6385a70a.oggstr"

[deps]

source_file="res://assets/sound/Pickup_Sack_mono.ogg"
dest_files=[ "res://.import/Pickup_Sack_mono.ogg-dcf5b62b5fa297993961698c6385a70a.oggstr" ]

[params]

loop=false
loop_offset=0

+ 1
- 1
assets/sound/Plant_Grow_mono.ogg.import View File

@@ -11,5 +11,5 @@ dest_files=[ "res://.import/Plant_Grow_mono.ogg-43bd3219ada1029ad7d7dc914eec57c3

[params]

loop=true
loop=false
loop_offset=0

+ 1
- 0
assets/sound/Readme.md View File

@@ -0,0 +1 @@

+ 24
- 0
default_bus_layout.tres View File

@@ -25,3 +25,27 @@ bus/4/mute = false
bus/4/bypass_fx = false
bus/4/volume_db = -12.9844
bus/4/send = "Master"
bus/5/name = "Engine"
bus/5/solo = false
bus/5/mute = false
bus/5/bypass_fx = false
bus/5/volume_db = 3.2425
bus/5/send = "Master"
bus/6/name = "getWater"
bus/6/solo = false
bus/6/mute = false
bus/6/bypass_fx = false
bus/6/volume_db = 0.0
bus/6/send = "Master"
bus/7/name = "getSeed"
bus/7/solo = false
bus/7/mute = false
bus/7/bypass_fx = false
bus/7/volume_db = 0.0
bus/7/send = "Master"
bus/8/name = "getFertilizer"
bus/8/solo = false
bus/8/mute = false
bus/8/bypass_fx = false
bus/8/volume_db = 0.0
bus/8/send = "Master"

+ 62
- 19
scenes/Ship.tscn View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=44 format=2]
[gd_scene load_steps=48 format=2]

[ext_resource path="res://scenes/sub_scenes/ship.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/sub_scenes/player.tscn" type="PackedScene" id=2]
@@ -11,6 +11,9 @@
[ext_resource path="res://assets/sound/creaks/Creak_03.ogg" type="AudioStream" id=9]
[ext_resource path="res://assets/sound/creaks/Creak_04.ogg" type="AudioStream" id=10]
[ext_resource path="res://assets/sound/Music_Main_Loop.ogg" type="AudioStream" id=11]
[ext_resource path="res://assets/sound/Door_Open_mono.ogg" type="AudioStream" id=12]
[ext_resource path="res://assets/sound/Pickup_Sack_mono.ogg" type="AudioStream" id=13]
[ext_resource path="res://assets/sound/Bucket_Fill_mono.ogg" type="AudioStream" id=14]

[sub_resource type="Environment" id=1]
background_mode = 1
@@ -173,19 +176,28 @@ height = 0.1
[sub_resource type="BoxShape" id=25]
extents = Vector3( 0.8, 2.16543, 0.8 )

[sub_resource type="GDScript" id=26]
script/source = "tool
extends Spatial

export var speed: float

func _physics_process(delta):
rotation.y += speed * delta
"
[sub_resource type="Animation" id=34]
resource_name = "New Anim"
length = 10.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 10 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 0, 360, 0 ) ]
}

[sub_resource type="GDScript" id=27]
script/source = "extends Area

onready var audio = get_node(\"AudioStreamPlayer3D\")

func _ready():
pass

@@ -193,6 +205,7 @@ func _ready():
func _on_body_entered(body):
if body.name == \"Player\":
State.player_inventory = State.ITEM.WATER
audio.play()
"

[sub_resource type="BoxShape" id=28]
@@ -201,6 +214,8 @@ extents = Vector3( 1.17384, 2.64489, 1.23621 )
[sub_resource type="GDScript" id=29]
script/source = "extends Area

onready var audio = get_node(\"AudioStreamPlayer3D\")

func _ready():
pass

@@ -208,6 +223,7 @@ func _ready():
func _on_body_entered(body):
if body.name == \"Player\":
State.player_inventory = State.ITEM.FERTILIZER
audio.play()
"

[sub_resource type="BoxShape" id=30]
@@ -216,17 +232,34 @@ extents = Vector3( 1.47223, 2.50833, 2.55238 )
[sub_resource type="GDScript" id=31]
script/source = "extends Area

onready var audio = get_node(\"AudioStreamPlayer3D\")

func _ready():
pass



func _on_body_entered(body):
if body.name == \"Player\":
State.player_inventory = State.ITEM.SEED
audio.play()
"

[sub_resource type="BoxShape" id=32]
extents = Vector3( 1.47223, 2.27452, 1.36382 )

[sub_resource type="GDScript" id=33]
script/source = "extends Spatial

onready var timer = get_node(\"Timer\")
onready var audio = get_node(\"RandomAudioStreamPlayer3D\")


func _on_Timer_timeout():
audio.play()
timer.start(State.rng.randf_range(5.0,10.0))
"

[node name="Ship" type="Spatial"]

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
@@ -394,7 +427,7 @@ __meta__ = {
transform = Transform( 0.657749, 0.444549, 0.608051, 0.654843, -0.736401, -0.16997, 0.372217, 0.509978, -0.775479, 16.1517, 29.7389, 24.163 )

[node name="Camera" type="Camera" parent="AnimationPlayer/CameraPath/PathFollow"]
transform = Transform( 0.380903, 0.202422, 0.902186, 0.127339, -0.977926, 0.165654, 0.915803, 0.0517853, -0.398272, 0, 0, 0 )
transform = Transform( 0.380903, 0.202422, 0.902186, 0.127339, -0.977926, 0.165654, 0.915803, 0.0517854, -0.398273, 0, 0, 0 )
current = true
far = 300.0
script = SubResource( 21 )
@@ -421,12 +454,14 @@ transform = Transform( 1, 0, 0, 0, -0.416456, -0.909156, 0, 0.909156, -0.416456,
light_energy = 0.2

[node name="SeagullOrbit" type="Spatial" parent="."]
transform = Transform( -0.963966, 0, 0.266016, 0, 1, 0, -0.266016, 0, -0.963966, 0, 30, 0 )
script = SubResource( 26 )
speed = 0.0
transform = Transform( -0.747961, 0, 0.663739, 0, 1, 0, -0.663739, 0, -0.747961, 0, 30, 0 )

[node name="Gull Dummy" parent="SeagullOrbit" instance=ExtResource( 3 )]

[node name="AnimationPlayer2" type="AnimationPlayer" parent="SeagullOrbit"]
autoplay = "New Anim"
"anims/New Anim" = SubResource( 34 )

[node name="WaterDetector" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -9.99335, 9.65661, -0.110578 )
script = SubResource( 27 )
@@ -434,6 +469,10 @@ script = SubResource( 27 )
[node name="CollisionShape" type="CollisionShape" parent="WaterDetector"]
shape = SubResource( 28 )

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="WaterDetector"]
stream = ExtResource( 14 )
bus = "getWater"

[node name="FertilizerDetector" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -2.71211, -4.76837e-07, 3.47488 )
script = SubResource( 29 )
@@ -442,6 +481,10 @@ script = SubResource( 29 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -10.3587, 8.62152, 1.31896 )
shape = SubResource( 30 )

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="FertilizerDetector"]
stream = ExtResource( 13 )
bus = "getFertilizer"

[node name="SeedDetector" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 19.853, 11.718, 0.149496 )
script = SubResource( 31 )
@@ -450,10 +493,9 @@ script = SubResource( 31 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0787144, 0.580219, -0.135435 )
shape = SubResource( 32 )

[node name="SeagullOrbit" type="Spatial" parent="."]
transform = Transform( -0.517895, 0, -0.855445, 0, 1, 0, 0.855445, 0, -0.517895, 0, 30, 0 )
script = SubResource( 26 )
speed = 0.5
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="SeedDetector"]
stream = ExtResource( 12 )
bus = "getSeed"

[node name="Bubble" parent="." instance=ExtResource( 5 )]
transform = Transform( 30, 0, 0, 0, 25, 0, 0, 0, 25, -2.66053, 15.0877, 0 )
@@ -464,7 +506,7 @@ autoplay = true
bus = "Music"

[node name="CreakSound" type="Spatial" parent="."]
script = SubResource( 28 )
script = SubResource( 33 )

[node name="Timer" type="Timer" parent="CreakSound"]
wait_time = 5.0
@@ -565,3 +607,4 @@ type = 4
[connection signal="body_entered" from="WaterDetector" to="WaterDetector" method="_on_body_entered"]
[connection signal="body_entered" from="FertilizerDetector" to="FertilizerDetector" method="_on_body_entered"]
[connection signal="body_entered" from="SeedDetector" to="SeedDetector" method="_on_body_entered"]
[connection signal="timeout" from="CreakSound/Timer" to="CreakSound" method="_on_Timer_timeout"]

+ 20
- 8
scenes/sub_scenes/satzkasten.tscn
File diff suppressed because it is too large
View File


Loading…
Cancel
Save