Skip to content

Commit

Permalink
chore: commit stuff from 2024-04-08
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Jun 24, 2024
1 parent cb4eff9 commit ccd8cae
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/godot-xr-tools/player/player_body.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
process_priority = -100
process_physics_priority = -100
top_level = true
collision_layer = 524288
collision_layer = 524416
collision_mask = 1023
script = ExtResource("1")
2 changes: 2 additions & 0 deletions duck_wall.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ disable_receive_shadows = true

[node name="StaticBody3D" type="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.0942, 0)
collision_layer = 0
collision_mask = 0
script = ExtResource("1_o64j7")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
Expand Down
4 changes: 2 additions & 2 deletions game/zones/outside/World.gd
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ func wall_spawn(i: int):


func _on_area_3d_body_entered(body: Node3D) -> void:
if body.name == "PlayerBody":
%XROrigin3D.global_position = (%Spawn as Marker3D).global_position
print(body.name)
%XROrigin3D.global_position = (%Spawn as Marker3D).global_position


func _on_audio_stream_player_3d_finished():
Expand Down
14 changes: 14 additions & 0 deletions game/zones/outside/outside_zone.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[gd_scene load_steps=103 format=3 uid="uid://cjat5u6nsihgw"]
[gd_scene load_steps=103 format=3 uid="uid://cjat5u6nsihgw"]

[ext_resource type="PackedScene" uid="uid://cvn48xcmsmkrb" path="res://game/zones/zone_base.tscn" id="1_sk0kv"]
[ext_resource type="Script" path="res://game/zones/outside/World.gd" id="3_nsuo7"]
Expand Down Expand Up @@ -231,6 +232,9 @@ radius = 5.08261
[sub_resource type="BoxShape3D" id="BoxShape3D_bjnkd"]
size = Vector3(50, 1, 50)

[sub_resource type="CylinderShape3D" id="CylinderShape3D_bsptk"]
radius = 9.82533

[sub_resource type="PlaneMesh" id="PlaneMesh_dlrga"]

[sub_resource type="ViewportTexture" id="ViewportTexture_arxkl"]
Expand Down Expand Up @@ -407,6 +411,7 @@ shape = SubResource("CylinderShape3D_loupj")

[node name="Sprite3D" type="Sprite3D" parent="World/StaticBody3D" index="2"]
transform = Transform3D(0.671398, 0, 0, 0, 7.99633e-09, 1, 0, -0.670558, 1.19249e-08, 0, 1.021, 0)
layers = 129
texture = ExtResource("75_2ujg7")

[node name="Water" parent="World" index="16" instance=ExtResource("6_cfk41")]
Expand All @@ -420,24 +425,29 @@ transform = Transform3D(1.00218, 0, 0, 0, 1.00218, 0, 0, 0, 1.00218, 0.019, 3, -
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, -5, 2.08165e-12)
shape = SubResource("BoxShape3D_bjnkd")

[node name="Spawn1" type="Timer" parent="World" index="17"]
[node name="Spawn1" type="Timer" parent="World" index="17"]
unique_name_in_owner = true
wait_time = 4.0

[node name="Screen" type="MeshInstance3D" parent="World" index="18"]
[node name="Screen" type="MeshInstance3D" parent="World" index="18"]
unique_name_in_owner = true
transform = Transform3D(3.556, 0, 0, 0, -4.37114e-08, -2, 0, 1, -8.74228e-08, 0, 1.94634, -9.86936)
mesh = SubResource("PlaneMesh_dlrga")
surface_material_override/0 = SubResource("StandardMaterial3D_0ox5k")

[node name="SubViewport" type="SubViewport" parent="World" index="19"]
[node name="SubViewport" type="SubViewport" parent="World" index="19"]
size = Vector2i(1920, 1080)

[node name="VideoStreamPlayer" type="VideoStreamPlayer" parent="World/SubViewport" index="0"]
[node name="VideoStreamPlayer" type="VideoStreamPlayer" parent="World/SubViewport" index="0"]
unique_name_in_owner = true
stream = ExtResource("77_e70a2")
autoplay = true

[node name="WinLabel1" type="Label3D" parent="World" index="20"]
[node name="WinLabel1" type="Label3D" parent="World" index="20"]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.2, -7)
Expand All @@ -446,6 +456,7 @@ text = "Good Workout!
You Win!"
font_size = 100

[node name="WinLabel2" type="Label3D" parent="World" index="21"]
[node name="WinLabel2" type="Label3D" parent="World" index="21"]
unique_name_in_owner = true
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -7, 2.2, 0)
Expand All @@ -454,6 +465,7 @@ text = "Good Workout!
You Win!"
font_size = 100

[node name="WinLabel3" type="Label3D" parent="World" index="22"]
[node name="WinLabel3" type="Label3D" parent="World" index="22"]
unique_name_in_owner = true
transform = Transform3D(1.19249e-08, 0, -1, 0, 1, 0, 1, 0, 1.19249e-08, 7, 2.2, 0)
Expand All @@ -462,6 +474,7 @@ text = "Good Workout!
You Win!"
font_size = 100

[node name="WinLabel4" type="Label3D" parent="World" index="23"]
[node name="WinLabel4" type="Label3D" parent="World" index="23"]
unique_name_in_owner = true
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 2.2, 7)
Expand Down Expand Up @@ -490,6 +503,7 @@ volume_db = -15.43
[connection signal="body_exited" from="World/Water/Area3D" to="World" method="_on_area_3d_body_exited"]
[connection signal="timeout" from="World/Spawn1" to="World" method="_on_spawn_1_timeout"]
[connection signal="finished" from="World/SubViewport/VideoStreamPlayer" to="World" method="_on_video_stream_player_finished"]
[connection signal="finished" from="World/SubViewport/VideoStreamPlayer" to="World" method="_on_video_stream_player_finished"]
[connection signal="finished" from="Audio" to="World" method="_on_audio_stream_player_3d_finished"]

[editable path="XROrigin3D/LeftHand/CollisionHandLeft/LeftHand"]
Expand Down

0 comments on commit ccd8cae

Please sign in to comment.