X-Git-Url: http://git.purplebirdman.com/lightcycles.git/blobdiff_plain/3e15374f814e7b21fc895b09ed77ef983f392a93..HEAD:/map/world.tscn diff --git a/map/world.tscn b/map/world.tscn index ebee4d9..ba9832a 100644 --- a/map/world.tscn +++ b/map/world.tscn @@ -1,22 +1,33 @@ -[gd_scene load_steps=7 format=3 uid="uid://6tmryoxhs3yq"] +[gd_scene load_steps=11 format=3 uid="uid://6tmryoxhs3yq"] [ext_resource type="PackedScene" uid="uid://dysxftv7xniv0" path="res://player/player.tscn" id="1_3tqxd"] -[ext_resource type="Script" path="res://map/world.gd" id="1_mjcfj"] +[ext_resource type="Script" uid="uid://c0cytx646hpfe" path="res://map/world.gd" id="1_mjcfj"] [ext_resource type="Texture2D" uid="uid://cp8pv6wya3ep2" path="res://textures/untextured.png" id="2_sxhh7"] +[ext_resource type="Script" uid="uid://cl1w5xvfx2lcm" path="res://map/split_screen_container.gd" id="4_nc5g8"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ul8mq"] albedo_color = Color(0.199732, 0.199732, 0.199732, 1) albedo_texture = ExtResource("2_sxhh7") -uv1_scale = Vector3(20, 20, 20) +uv1_scale = Vector3(0.5, 0.5, 0.5) +uv1_triplanar = true +uv1_world_triplanar = true texture_filter = 0 [sub_resource type="PlaneMesh" id="PlaneMesh_43sel"] material = SubResource("StandardMaterial3D_ul8mq") size = Vector2(50, 50) -[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_mhr6o"] +[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_t6tpe"] data = PackedVector3Array(25, 0, 25, -25, 0, 25, 25, 0, -25, -25, 0, 25, -25, 0, -25, 25, 0, -25) +[sub_resource type="PlaneMesh" id="PlaneMesh_0exak"] +size = Vector2(10, 50) + +[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_qttgn"] +data = PackedVector3Array(5, 0, 25, -5, 0, 25, 5, 0, -25, -5, 0, 25, -5, 0, -25, 5, 0, -25) + +[sub_resource type="Environment" id="Environment_h5n2a"] + [node name="World" type="Node3D"] script = ExtResource("1_mjcfj") @@ -26,18 +37,127 @@ script = ExtResource("1_mjcfj") transform = Transform3D(-0.866025, -0.433013, 0.25, 0, 0.5, 0.866025, -0.5, 0.75, -0.433013, 0, 10, 0) shadow_enabled = true -[node name="MeshInstance3D" type="MeshInstance3D" parent="map"] +[node name="ground" type="MeshInstance3D" parent="map"] mesh = SubResource("PlaneMesh_43sel") skeleton = NodePath("../..") -[node name="StaticBody3D" type="StaticBody3D" parent="map/MeshInstance3D"] +[node name="StaticBody3D" type="StaticBody3D" parent="map/ground"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="map/ground/StaticBody3D"] +shape = SubResource("ConcavePolygonShape3D_t6tpe") + +[node name="wall" type="MeshInstance3D" parent="map"] +transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 25, 5, 0) +mesh = SubResource("PlaneMesh_0exak") +skeleton = NodePath("../..") + +[node name="StaticBody3D" type="StaticBody3D" parent="map/wall"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall/StaticBody3D"] +shape = SubResource("ConcavePolygonShape3D_qttgn") + +[node name="wall2" type="MeshInstance3D" parent="map"] +transform = Transform3D(4.37114e-08, 1, 8.74228e-08, 1, -4.37114e-08, 0, 3.82137e-15, 8.74228e-08, -1, -25, 5, 0) +mesh = SubResource("PlaneMesh_0exak") +skeleton = NodePath("../..") + +[node name="StaticBody3D" type="StaticBody3D" parent="map/wall2"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall2/StaticBody3D"] +shape = SubResource("ConcavePolygonShape3D_qttgn") + +[node name="wall3" type="MeshInstance3D" parent="map"] +transform = Transform3D(-5.73206e-15, -1.31134e-07, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, 1.31134e-07, 0, 5, -25) +mesh = SubResource("PlaneMesh_0exak") +skeleton = NodePath("../..") + +[node name="StaticBody3D" type="StaticBody3D" parent="map/wall3"] -[node name="CollisionShape3D" type="CollisionShape3D" parent="map/MeshInstance3D/StaticBody3D"] -shape = SubResource("ConcavePolygonShape3D_mhr6o") +[node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall3/StaticBody3D"] +shape = SubResource("ConcavePolygonShape3D_qttgn") -[node name="player" parent="." instance=ExtResource("1_3tqxd")] +[node name="wall4" type="MeshInstance3D" parent="map"] +transform = Transform3D(1.91069e-15, 4.37114e-08, -1, 1, -4.37114e-08, 0, -4.37114e-08, -1, -4.37114e-08, 0, 5, 25) +mesh = SubResource("PlaneMesh_0exak") +skeleton = NodePath("../..") + +[node name="StaticBody3D" type="StaticBody3D" parent="map/wall4"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="map/wall4/StaticBody3D"] +shape = SubResource("ConcavePolygonShape3D_qttgn") + +[node name="Player1" parent="." instance=ExtResource("1_3tqxd")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -16) +color = Color(1, 0.843137, 0, 1) +distance = 5.0 + +[node name="Player2" parent="." instance=ExtResource("1_3tqxd")] +transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 16) +color = Color(1, 0, 0, 1) distance = 5.0 -[connection signal="playerReady" from="player" to="." method="_on_player_player_ready"] -[connection signal="playerTurn" from="player" to="." method="_on_player_player_turn"] +[node name="topdown_camera" type="Camera3D" parent="."] +transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 32.95, 0) +environment = SubResource("Environment_h5n2a") +projection = 1 +size = 50.0 + +[node name="SplitScreenContainer" type="GridContainer" parent="."] +custom_minimum_size = Vector2(3456, 1944) +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("4_nc5g8") + +[node name="HSplitContainer" type="HSplitContainer" parent="SplitScreenContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 + +[node name="SubViewportContainer" type="SubViewportContainer" parent="SplitScreenContainer/HSplitContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +stretch = true + +[node name="SubViewport_map" type="SubViewport" parent="SplitScreenContainer/HSplitContainer/SubViewportContainer"] +unique_name_in_owner = true +handle_input_locally = false +size = Vector2i(1722, 1944) +render_target_update_mode = 4 + +[node name="VSplitContainer" type="VSplitContainer" parent="SplitScreenContainer/HSplitContainer"] +layout_mode = 2 +size_flags_horizontal = 3 + +[node name="SubViewportContainer" type="SubViewportContainer" parent="SplitScreenContainer/HSplitContainer/VSplitContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 +stretch = true + +[node name="SubViewport_Player1" type="SubViewport" parent="SplitScreenContainer/HSplitContainer/VSplitContainer/SubViewportContainer"] +unique_name_in_owner = true +handle_input_locally = false +size = Vector2i(1722, 966) +render_target_update_mode = 4 + +[node name="SubViewportContainer2" type="SubViewportContainer" parent="SplitScreenContainer/HSplitContainer/VSplitContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 3 +stretch = true + +[node name="SubViewport_Player2" type="SubViewport" parent="SplitScreenContainer/HSplitContainer/VSplitContainer/SubViewportContainer2"] +unique_name_in_owner = true +handle_input_locally = false +size = Vector2i(1722, 966) +render_target_update_mode = 4 + +[connection signal="playerDestroyed" from="Player1" to="." method="_on_player_destroyed"] +[connection signal="playerRestart" from="Player1" to="." method="_on_player_player_restart"] +[connection signal="playerTurn" from="Player1" to="." method="_player_add_wall"] +[connection signal="playerDestroyed" from="Player2" to="." method="_on_player_destroyed"] +[connection signal="playerRestart" from="Player2" to="." method="_on_player_player_restart"] +[connection signal="playerTurn" from="Player2" to="." method="_player_add_wall"]