forked from interstellar_development/freeftf
Initial Commit
This commit is contained in:
parent
6d0191e863
commit
beb2b93613
10 changed files with 516 additions and 0 deletions
72
objects/computer.tscn
Normal file
72
objects/computer.tscn
Normal file
|
@ -0,0 +1,72 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://4mhcwvn365ki"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/computer.gd" id="1_bnoot"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_bvobj"]
|
||||
size = Vector3(2, 1.75, 1.5)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_nfndi"]
|
||||
|
||||
[node name="computers" type="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
script = ExtResource("1_bnoot")
|
||||
|
||||
[node name="collision" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.375, 0)
|
||||
shape = SubResource("BoxShape3D_bvobj")
|
||||
|
||||
[node name="desk" type="CSGBox3D" parent="."]
|
||||
size = Vector3(2, 1, 1.5)
|
||||
|
||||
[node name="pc_1" type="CSGBox3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.875, 0.5)
|
||||
size = Vector3(1, 0.75, 0.25)
|
||||
|
||||
[node name="pc_1_area" type="Area3D" parent="pc_1"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="pc_1/pc_1_area"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.75, 0.875)
|
||||
shape = SubResource("BoxShape3D_nfndi")
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="pc_1"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.13)
|
||||
text = "0"
|
||||
|
||||
[node name="pc_2" type="CSGBox3D" parent="."]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0.75, 0.875, 0)
|
||||
size = Vector3(1, 0.75, 0.25)
|
||||
|
||||
[node name="pc_2_area" type="Area3D" parent="pc_2"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="pc_2/pc_2_area"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.75, 0.875)
|
||||
shape = SubResource("BoxShape3D_nfndi")
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="pc_2"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.13)
|
||||
text = "0"
|
||||
|
||||
[node name="pc_3" type="CSGBox3D" parent="."]
|
||||
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -0.75, 0.875, 0)
|
||||
size = Vector3(1, 0.75, 0.25)
|
||||
|
||||
[node name="pc_3_area" type="Area3D" parent="pc_3"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="pc_3/pc_3_area"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.75, 0.875)
|
||||
shape = SubResource("BoxShape3D_nfndi")
|
||||
|
||||
[node name="Label3D" type="Label3D" parent="pc_3"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.55271e-15, 0, 0.13)
|
||||
text = "0"
|
||||
|
||||
[node name="computer_tick" type="Timer" parent="."]
|
||||
autostart = true
|
||||
|
||||
[connection signal="body_entered" from="pc_1/pc_1_area" to="." method="_on_pc_1_area_body_entered"]
|
||||
[connection signal="body_exited" from="pc_1/pc_1_area" to="." method="_on_pc_1_area_body_exited"]
|
||||
[connection signal="body_entered" from="pc_2/pc_2_area" to="." method="_on_pc_2_area_body_entered"]
|
||||
[connection signal="body_exited" from="pc_2/pc_2_area" to="." method="_on_pc_2_area_body_exited"]
|
||||
[connection signal="body_entered" from="pc_3/pc_3_area" to="." method="_on_pc_3_area_body_entered"]
|
||||
[connection signal="body_exited" from="pc_3/pc_3_area" to="." method="_on_pc_3_area_body_exited"]
|
||||
[connection signal="timeout" from="computer_tick" to="." method="_on_computer_tick_timeout"]
|
22
objects/player.tscn
Normal file
22
objects/player.tscn
Normal file
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://b440i2oidk5sp"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/movement.gd" id="1_uru11"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2l8cp"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_fhldf"]
|
||||
|
||||
[node name="player" type="CharacterBody3D"]
|
||||
script = ExtResource("1_uru11")
|
||||
|
||||
[node name="collision" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("CapsuleShape3D_2l8cp")
|
||||
|
||||
[node name="bean" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("CapsuleMesh_fhldf")
|
||||
|
||||
[node name="cam_y" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 0, 0)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="cam_y"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 8)
|
Loading…
Add table
Add a link
Reference in a new issue