_parameters
This commit is contained in:
		
							parent
							
								
									0e30685d8f
								
							
						
					
					
						commit
						48f034a85c
					
				
					 17 changed files with 117 additions and 10 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								blends/large_meat_tunnel.blend
									 (Stored with Git LFS)
										
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								blends/large_meat_tunnel.blend
									 (Stored with Git LFS)
										
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					source_md5="ac591b3159f12d613f3eea5606d60973"
 | 
				
			||||||
 | 
					dest_md5="91b0f31fb83105f2d1c664c222e15953"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								godot/assets/audio/whispers.wav
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								godot/assets/audio/whispers.wav
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										23
									
								
								godot/assets/audio/whispers.wav.import
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								godot/assets/audio/whispers.wav.import
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,23 @@
 | 
				
			||||||
 | 
					[remap]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					importer="wav"
 | 
				
			||||||
 | 
					type="AudioStreamSample"
 | 
				
			||||||
 | 
					path="res://.import/whispers.wav-e3cf0cc7b9a445030518a39562f395c5.sample"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[deps]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					source_file="res://assets/audio/whispers.wav"
 | 
				
			||||||
 | 
					dest_files=[ "res://.import/whispers.wav-e3cf0cc7b9a445030518a39562f395c5.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=3
 | 
				
			||||||
 | 
					edit/loop_begin=0
 | 
				
			||||||
 | 
					edit/loop_end=-1
 | 
				
			||||||
 | 
					compress/mode=0
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
[gd_scene load_steps=16 format=2]
 | 
					[gd_scene load_steps=17 format=2]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ext_resource path="res://assets/meat_bore/meat_tunnel_top.tscn" type="PackedScene" id=1]
 | 
					[ext_resource path="res://assets/meat_bore/meat_tunnel_top.tscn" type="PackedScene" id=1]
 | 
				
			||||||
[ext_resource path="res://assets/meat_bore/meat_module/level_wally.tscn" type="PackedScene" id=2]
 | 
					[ext_resource path="res://assets/meat_bore/meat_module/level_wally.tscn" type="PackedScene" id=2]
 | 
				
			||||||
| 
						 | 
					@ -14,6 +14,7 @@
 | 
				
			||||||
[ext_resource path="res://assets/models/meat_tentacle_small.tscn" type="PackedScene" id=12]
 | 
					[ext_resource path="res://assets/models/meat_tentacle_small.tscn" type="PackedScene" id=12]
 | 
				
			||||||
[ext_resource path="res://assets/models/meat_tentacle.tscn" type="PackedScene" id=13]
 | 
					[ext_resource path="res://assets/models/meat_tentacle.tscn" type="PackedScene" id=13]
 | 
				
			||||||
[ext_resource path="res://assets/meat_bore/obelisk_ring.tscn" type="PackedScene" id=14]
 | 
					[ext_resource path="res://assets/meat_bore/obelisk_ring.tscn" type="PackedScene" id=14]
 | 
				
			||||||
 | 
					[ext_resource path="res://assets/meat_bore/npcs/inherited/guy.tscn" type="PackedScene" id=15]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[sub_resource type="Environment" id=3]
 | 
					[sub_resource type="Environment" id=3]
 | 
				
			||||||
background_mode = 2
 | 
					background_mode = 2
 | 
				
			||||||
| 
						 | 
					@ -134,3 +135,6 @@ transform = Transform( -95.0824, 0, 30.9731, 0, 100, 0, -30.9731, 0, -95.0824, 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[node name="obelisk_ring" parent="." instance=ExtResource( 14 )]
 | 
					[node name="obelisk_ring" parent="." instance=ExtResource( 14 )]
 | 
				
			||||||
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.746, 0 )
 | 
					transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.746, 0 )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[node name="guy" parent="." instance=ExtResource( 15 )]
 | 
				
			||||||
 | 
					transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 2, -0.524274, 0.652003, 82.3411 )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										15
									
								
								godot/assets/meat_bore/meat_module/AmbientAudioRegion.gd
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								godot/assets/meat_bore/meat_module/AmbientAudioRegion.gd
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,15 @@
 | 
				
			||||||
 | 
					extends Area
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func _on_AmbientAudioRegion_body_entered(body):
 | 
				
			||||||
 | 
						if body.get_parent() != Util.player:
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						$AmbientAudio.play()
 | 
				
			||||||
 | 
						$AnimationPlayer.play("fade")
 | 
				
			||||||
 | 
							
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func _on_AmbientAudioRegion_body_exited(body):
 | 
				
			||||||
 | 
						if body.get_parent() != Util.player:
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						$AnimationPlayer.play_backwards("fade")
 | 
				
			||||||
 | 
						yield($AnimationPlayer, "animation_finished")
 | 
				
			||||||
 | 
						$AmbientAudio.stop()
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,9 @@
 | 
				
			||||||
extends Spatial
 | 
					extends Spatial
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export var texture: StreamTexture
 | 
					export var texture: StreamTexture
 | 
				
			||||||
 | 
					export var audio: AudioStream
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func _ready():
 | 
					func _ready():
 | 
				
			||||||
	var mat = $MeatModule.get_active_material(0)
 | 
						var mat = $MeatModule.get_active_material(0)
 | 
				
			||||||
	mat.albedo_texture = texture
 | 
						mat.albedo_texture = texture
 | 
				
			||||||
 | 
						$AmbientAudioRegion/AmbientAudio.stream = audio
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
					@ -1,8 +1,9 @@
 | 
				
			||||||
[gd_scene load_steps=7 format=2]
 | 
					[gd_scene load_steps=8 format=2]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ext_resource path="res://assets/meat_bore/npcs/male.tscn" type="PackedScene" id=1]
 | 
					[ext_resource path="res://assets/meat_bore/npcs/male.tscn" type="PackedScene" id=1]
 | 
				
			||||||
[ext_resource path="res://assets/meat_bore/npcs/guy.png" type="Texture" id=2]
 | 
					[ext_resource path="res://assets/meat_bore/npcs/guy.png" type="Texture" id=2]
 | 
				
			||||||
[ext_resource path="res://assets/meat_bore/npcs/inherited/guy.gd" type="Script" id=3]
 | 
					[ext_resource path="res://assets/meat_bore/npcs/inherited/guy.gd" type="Script" id=3]
 | 
				
			||||||
 | 
					[ext_resource path="res://assets/models/heart/Heart_2.tscn" type="PackedScene" id=4]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[sub_resource type="AnimationNodeAnimation" id=1]
 | 
					[sub_resource type="AnimationNodeAnimation" id=1]
 | 
				
			||||||
animation = "guy_idle"
 | 
					animation = "guy_idle"
 | 
				
			||||||
| 
						 | 
					@ -25,3 +26,6 @@ tree_root = SubResource( 2 )
 | 
				
			||||||
anim_player = NodePath("../AnimationPlayer")
 | 
					anim_player = NodePath("../AnimationPlayer")
 | 
				
			||||||
active = true
 | 
					active = true
 | 
				
			||||||
parameters/playback = SubResource( 3 )
 | 
					parameters/playback = SubResource( 3 )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[node name="Heart_2" parent="." index="4" instance=ExtResource( 4 )]
 | 
				
			||||||
 | 
					transform = Transform( 1, 0, 0, 0, 0.988268, 0.152727, 0, -0.152727, 0.988268, 0, 0.588648, -0.0990121 )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -65,6 +65,8 @@ func close_dialog():
 | 
				
			||||||
		call_deferred("remove_child", dialog.get_ref())
 | 
							call_deferred("remove_child", dialog.get_ref())
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func player_entered():
 | 
					func player_entered():
 | 
				
			||||||
 | 
						if has_node("npc_common/SignalGenerator"):
 | 
				
			||||||
 | 
							$npc_common.remove_child($npc_common/SignalGenerator)
 | 
				
			||||||
	create_dialog(initial_dialogic_timeline)
 | 
						create_dialog(initial_dialogic_timeline)
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
func player_exited():
 | 
					func player_exited():
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,7 @@
 | 
				
			||||||
[gd_scene load_steps=3 format=2]
 | 
					[gd_scene load_steps=5 format=2]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[ext_resource path="res://assets/models/walkie_talkie/signal_generator.tscn" type="PackedScene" id=1]
 | 
				
			||||||
 | 
					[ext_resource path="res://assets/audio/whispers.wav" type="AudioStream" id=2]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[sub_resource type="SphereShape" id=1]
 | 
					[sub_resource type="SphereShape" id=1]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,3 +20,6 @@ shape = SubResource( 1 )
 | 
				
			||||||
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
 | 
					[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
 | 
				
			||||||
transform = Transform( 1, 0, 0, 0, 9.98379, 0, 0, 0, 1, 0, 0, 0 )
 | 
					transform = Transform( 1, 0, 0, 0, 9.98379, 0, 0, 0, 1, 0, 0, 0 )
 | 
				
			||||||
shape = SubResource( 2 )
 | 
					shape = SubResource( 2 )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[node name="SignalGenerator" parent="." instance=ExtResource( 1 )]
 | 
				
			||||||
 | 
					stream = ExtResource( 2 )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,3 +7,7 @@ func _ready():
 | 
				
			||||||
	Util.meat_sink_parameters = self
 | 
						Util.meat_sink_parameters = self
 | 
				
			||||||
	Util.emit_signal("meat_sink_parameters")
 | 
						Util.emit_signal("meat_sink_parameters")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func _on_MeatSinkParameters_tree_exited():
 | 
				
			||||||
 | 
						Util.meat_sink_parameters = null
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,3 +4,5 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[node name="MeatSinkParameters" type="Spatial"]
 | 
					[node name="MeatSinkParameters" type="Spatial"]
 | 
				
			||||||
script = ExtResource( 1 )
 | 
					script = ExtResource( 1 )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[connection signal="tree_exited" from="." to="." method="_on_MeatSinkParameters_tree_exited"]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,6 +8,9 @@ export var can_float: bool = false
 | 
				
			||||||
func _ready():
 | 
					func _ready():
 | 
				
			||||||
	Util.player = self
 | 
						Util.player = self
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func _on_Player_tree_exiting():
 | 
				
			||||||
 | 
						Util.player = null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func is_on_foot():
 | 
					func is_on_foot():
 | 
				
			||||||
	return active_physics_node == $OnFootPhysics
 | 
						return active_physics_node == $OnFootPhysics
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,3 +45,5 @@ func _process(_delta):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -55,7 +55,7 @@ tracks/0/keys = {
 | 
				
			||||||
"values": [ 70.0, 70.0, 130.0 ]
 | 
					"values": [ 70.0, 70.0, 130.0 ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[sub_resource type="CylinderShape" id=4]
 | 
					[sub_resource type="CapsuleShape" id=15]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[sub_resource type="Animation" id=14]
 | 
					[sub_resource type="Animation" id=14]
 | 
				
			||||||
resource_name = "float_anim"
 | 
					resource_name = "float_anim"
 | 
				
			||||||
| 
						 | 
					@ -223,8 +223,8 @@ script = ExtResource( 2 )
 | 
				
			||||||
float_factor = 3.0
 | 
					float_factor = 3.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[node name="CollisionShape" type="CollisionShape" parent="OnFootPhysics"]
 | 
					[node name="CollisionShape" type="CollisionShape" parent="OnFootPhysics"]
 | 
				
			||||||
transform = Transform( 0.4, 0, 0, 0, 0.440932, 0, 0, 0, 0.4, 0, 0, 0 )
 | 
					transform = Transform( 0.4, 0, 0, 0, -1.92767e-08, -0.334, 0, 0.441, -1.45996e-08, 0, 0, 0 )
 | 
				
			||||||
shape = SubResource( 4 )
 | 
					shape = SubResource( 15 )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[node name="Floor" type="RayCast" parent="OnFootPhysics"]
 | 
					[node name="Floor" type="RayCast" parent="OnFootPhysics"]
 | 
				
			||||||
script = ExtResource( 10 )
 | 
					script = ExtResource( 10 )
 | 
				
			||||||
| 
						 | 
					@ -309,6 +309,7 @@ color = Color( 1, 1, 1, 0 )
 | 
				
			||||||
[node name="ObjectiveTracker" type="Node" parent="."]
 | 
					[node name="ObjectiveTracker" type="Node" parent="."]
 | 
				
			||||||
script = ExtResource( 21 )
 | 
					script = ExtResource( 21 )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[connection signal="tree_exiting" from="." to="." method="_on_Player_tree_exiting"]
 | 
				
			||||||
[connection signal="area_entered" from="ElevatorPhysics/Area" to="ElevatorPhysics" method="_on_Area_area_entered"]
 | 
					[connection signal="area_entered" from="ElevatorPhysics/Area" to="ElevatorPhysics" method="_on_Area_area_entered"]
 | 
				
			||||||
[connection signal="area_exited" from="ElevatorPhysics/Area" to="ElevatorPhysics" method="_on_Area_area_exited"]
 | 
					[connection signal="area_exited" from="ElevatorPhysics/Area" to="ElevatorPhysics" method="_on_Area_area_exited"]
 | 
				
			||||||
[connection signal="timeout" from="MovementInput/VerticalTimer" to="MovementInput" method="_on_VerticalTimer_timeout"]
 | 
					[connection signal="timeout" from="MovementInput/VerticalTimer" to="MovementInput" method="_on_VerticalTimer_timeout"]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -19,4 +19,4 @@ func _on_QuitButton_pressed():
 | 
				
			||||||
	get_tree().quit()
 | 
						get_tree().quit()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func _on_MenuButton_pressed():
 | 
					func _on_MenuButton_pressed():
 | 
				
			||||||
	get_tree().change_scene("res://screens/TitleScreen_Planet.tscn")
 | 
						var _err = get_tree().change_scene("res://screens/TitleScreen_Planet.tscn")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue