Skip to content

Commit

Permalink
Port TPS demo to 4.0 (godotengine#158)
Browse files Browse the repository at this point in the history
The settings menu isn't functional yet and some sounds don't play,
but the base functionality is working.
  • Loading branch information
clayjohn authored Feb 4, 2023
1 parent df9e497 commit f41444c
Show file tree
Hide file tree
Showing 377 changed files with 26,815 additions and 70,893 deletions.
18 changes: 9 additions & 9 deletions default_bus_layout.tres
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
[gd_resource type="AudioBusLayout" load_steps=3 format=2]
[gd_resource type="AudioBusLayout" load_steps=3 format=3 uid="uid://vtdn63d3ksc2"]

[sub_resource type="AudioEffectReverb" id=1]
[sub_resource type="AudioEffectReverb" id="1"]
resource_name = "Reverb"
room_size = 0.98
hipass = 0.42
wet = 0.29

[sub_resource type="AudioEffectReverb" id=2]
[sub_resource type="AudioEffectReverb" id="2"]
resource_name = "Reverb"
room_size = 0.74
hipass = 0.14
wet = 0.56

[resource]
bus/0/volume_db = -10.0
bus/1/name = "Outside"
bus/1/name = &"Outside"
bus/1/solo = false
bus/1/mute = false
bus/1/bypass_fx = false
bus/1/volume_db = 0.0
bus/1/send = "Master"
bus/1/effect/0/effect = SubResource( 1 )
bus/1/send = &"Master"
bus/1/effect/0/effect = SubResource("1")
bus/1/effect/0/enabled = true
bus/2/name = "Reactor"
bus/2/name = &"Reactor"
bus/2/solo = false
bus/2/mute = false
bus/2/bypass_fx = false
bus/2/volume_db = 0.0
bus/2/send = "Master"
bus/2/effect/0/effect = SubResource( 2 )
bus/2/send = &"Master"
bus/2/effect/0/effect = SubResource("2")
bus/2/effect/0/enabled = true
2 changes: 1 addition & 1 deletion default_env.tres
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_resource type="Environment" load_steps=2 format=2]

[sub_resource type="ProceduralSky" id=1]
[sub_resource type="Sky" id=1]

[resource]
background_mode = 2
Expand Down
4 changes: 2 additions & 2 deletions door/door.gd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
extends Area
extends Area3D

var open = false

onready var animation_player = $DoorModel/AnimationPlayer
@onready var animation_player = $DoorModel/AnimationPlayer

func _on_door_body_entered(body):
if not open and body is Player:
Expand Down
46 changes: 22 additions & 24 deletions door/door.tscn
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=5 format=3 uid="uid://bcnpdinrepean"]

[ext_resource path="res://door/door.gd" type="Script" id=1]
[ext_resource path="res://door/model/door.dae" type="PackedScene" id=2]
[ext_resource path="res://door/open_close.wav" type="AudioStream" id=3]
[ext_resource type="Script" path="res://door/door.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://bivo3ncbyf02f" path="res://door/model/door.dae" id="2"]
[ext_resource type="AudioStream" uid="uid://c2nls7s14emyc" path="res://door/open_close.wav" id="3"]

[sub_resource type="BoxShape" id=1]
extents = Vector3( 4.42643, 3.10445, 5.53322 )
[sub_resource type="BoxShape3D" id="1"]
size = Vector3(8.85286, 6.2089, 11.0664)

[node name="Door" type="Area"]
script = ExtResource( 1 )
[node name="Door" type="Area3D"]
script = ExtResource("1")

[node name="DoorModel" parent="." instance=ExtResource( 2 )]
[node name="DoorModel2" parent="." instance=ExtResource("2")]

[node name="shape0" parent="DoorModel/armature-doorsimple/Skeleton/doorleft" index="0"]
disabled = true
[node name="Skeleton3D" parent="DoorModel2/armature-doorsimple" index="0"]
bones/1/position = Vector3(2.12019, -3.55271e-15, -1.02721)
bones/2/position = Vector3(-2.12019, -3.55271e-15, -1.02721)

[node name="shape0" parent="DoorModel/armature-doorsimple/Skeleton/doorlower" index="0"]
disabled = true
[node name="doorsimple" parent="DoorModel2/armature-doorsimple/Skeleton3D" index="4"]
skeleton = NodePath("..")

[node name="shape0" parent="DoorModel/armature-doorsimple/Skeleton/doorright" index="0"]
disabled = true

[node name="shape0" parent="DoorModel/armature-doorsimple/Skeleton/doorupper" index="0"]
disabled = true
[node name="AnimationPlayer" parent="DoorModel2" index="1"]
autoplay = "doorsimple_closed"

[node name="sound" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 3 )
unit_db = 4.0
stream = ExtResource("3")
volume_db = 4.0
unit_size = 7.0

[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.55109, 0 )
shape = SubResource( 1 )
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.55109, 0)
shape = SubResource("1")

[connection signal="body_entered" from="." to="." method="_on_door_body_entered"]

[editable path="DoorModel"]
[editable path="DoorModel2"]
48 changes: 48 additions & 0 deletions door/model/door.blend.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[remap]

importer="scene"
importer_version=1
type="PackedScene"
uid="uid://c3ap1jkngq4k2"
path="res://.godot/imported/door.blend-77d622738f01a56d1fcf5e9846aad825.scn"

[deps]

source_file="res://door/model/door.blend"
dest_files=["res://.godot/imported/door.blend-77d622738f01a56d1fcf5e9846aad825.scn"]

[params]

nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
meshes/handle_gltf_embedded_images=1
blender/nodes/visible=0
blender/nodes/punctual_lights=true
blender/nodes/cameras=true
blender/nodes/custom_properties=true
blender/nodes/modifiers=1
blender/meshes/colors=false
blender/meshes/uvs=true
blender/meshes/normals=true
blender/meshes/tangents=true
blender/meshes/skins=2
blender/meshes/export_bones_deforming_mesh_only=false
blender/materials/unpack_enabled=true
blender/materials/export_materials=1
blender/animation/limit_playback=true
blender/animation/always_sample=true
blender/animation/group_tracks=true
Loading

0 comments on commit f41444c

Please sign in to comment.