Files
CosmicClash/Game/scenes/match.tscn
T
2024-03-21 20:12:53 +00:00

113 lines
4.4 KiB
Plaintext

[gd_scene load_steps=14 format=3 uid="uid://djlfte5nx8sel"]
[ext_resource type="PackedScene" uid="uid://dnra1buk328d" path="res://objects/vehicle.tscn" id="2_2d4ji"]
[ext_resource type="ArrayMesh" uid="uid://ucw1lyo43yi4" path="res://assets/models/gold_ball.res" id="2_4bpxj"]
[ext_resource type="Script" path="res://scripts/MatchCamera3D.gd" id="2_n3g6s"]
[ext_resource type="PackedScene" uid="uid://cofdcxo5170rs" path="res://objects/goal.tscn" id="3_xk008"]
[ext_resource type="Script" path="res://scripts/player1.gd" id="4_keuru"]
[ext_resource type="Script" path="res://scripts/player2.gd" id="4_vutck"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xmumy"]
albedo_color = Color(0.0196078, 0.34902, 0.156863, 1)
[sub_resource type="BoxMesh" id="BoxMesh_xotuo"]
material = SubResource("StandardMaterial3D_xmumy")
size = Vector3(10, 0.5, 10)
[sub_resource type="BoxShape3D" id="BoxShape3D_133xi"]
size = Vector3(10, 0.5, 10)
[sub_resource type="SphereShape3D" id="SphereShape3D_c5p07"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_t0i0j"]
sky_top_color = Color(0.266667, 0.419608, 1, 1)
[sub_resource type="Sky" id="Sky_0r58b"]
sky_material = SubResource("ProceduralSkyMaterial_t0i0j")
[sub_resource type="Environment" id="Environment_ycxte"]
background_mode = 2
sky = SubResource("Sky_0r58b")
[node name="MatchNode3D" type="Node3D"]
[node name="MatchCamera3D" type="Camera3D" parent="." node_paths=PackedStringArray("vehicle", "ball")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 1.33585, 3.3972)
current = true
fov = 114.877
script = ExtResource("2_n3g6s")
vehicle = NodePath("../Players/GridContainer/SubViewportContainer/SubViewport/Player1")
ball = NodePath("../Ball")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.908048, -0.417905, 0.0283578, 0.372456, 0.836559, 0.401802, -0.191638, -0.354294, 0.915287, 0, 3.7388, 0.115907)
shadow_enabled = true
[node name="Floor" type="StaticBody3D" parent="."]
metadata/_edit_group_ = true
[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor"]
mesh = SubResource("BoxMesh_xotuo")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor"]
shape = SubResource("BoxShape3D_133xi")
[node name="Ball" type="RigidBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 2, 2.08165e-12)
mass = 100.0
inertia = Vector3(100, 100, 100)
metadata/_edit_group_ = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ball"]
shape = SubResource("SphereShape3D_c5p07")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ball"]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 2.08165e-12, 2.08165e-12, 2.08165e-12)
mesh = ExtResource("2_4bpxj")
[node name="Players" type="Node3D" parent="."]
[node name="GridContainer" type="GridContainer" parent="Players"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
columns = 2
[node name="SubViewportContainer" type="SubViewportContainer" parent="Players/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="SubViewport" type="SubViewport" parent="Players/GridContainer/SubViewportContainer"]
handle_input_locally = false
size = Vector2i(1080, 960)
render_target_update_mode = 4
[node name="Player1" parent="Players/GridContainer/SubViewportContainer/SubViewport" instance=ExtResource("2_2d4ji")]
script = ExtResource("4_keuru")
[node name="SubViewportContainer2" type="SubViewportContainer" parent="Players/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="SubViewport2" type="SubViewport" parent="Players/GridContainer/SubViewportContainer2"]
handle_input_locally = false
size = Vector2i(1080, 960)
render_target_update_mode = 4
[node name="Player2" parent="Players/GridContainer/SubViewportContainer2/SubViewport2" instance=ExtResource("2_2d4ji")]
script = ExtResource("4_vutck")
[node name="Goals" type="Node3D" parent="."]
[node name="Goal2" parent="Goals" node_paths=PackedStringArray("ball", "player1") instance=ExtResource("3_xk008")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08165e-12, 1, -5)
ball = NodePath("../../Ball")
player1 = NodePath("../../Players/GridContainer/SubViewportContainer/SubViewport/Player1")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_ycxte")