模板场景文件
This commit is contained in:
@@ -0,0 +1,279 @@
|
||||
[gd_scene load_steps=17 format=3]
|
||||
|
||||
[ext_resource type="Texture2D" path="res://assets/environment/textures/prototype_dark.png" id="1_floor"]
|
||||
[ext_resource type="Texture2D" path="res://assets/environment/textures/prototype_orange.png" id="2_orange"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_floor"]
|
||||
texture_filter = 5
|
||||
albedo_texture = ExtResource("1_floor")
|
||||
roughness = 0.85
|
||||
uv1_triplanar = true
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_orange"]
|
||||
texture_filter = 5
|
||||
albedo_texture = ExtResource("2_orange")
|
||||
roughness = 0.78
|
||||
uv1_triplanar = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_floor"]
|
||||
material = SubResource("StandardMaterial3D_floor")
|
||||
size = Vector3(100, 0.4, 100)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_floor"]
|
||||
size = Vector3(100, 0.4, 100)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_boundary"]
|
||||
material = SubResource("StandardMaterial3D_floor")
|
||||
size = Vector3(100, 3, 1)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_boundary"]
|
||||
size = Vector3(100, 3, 1)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_diagonal_wall"]
|
||||
material = SubResource("StandardMaterial3D_orange")
|
||||
size = Vector3(9, 2.5, 1.2)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_diagonal_wall"]
|
||||
size = Vector3(9, 2.5, 1.2)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_low_cover"]
|
||||
material = SubResource("StandardMaterial3D_orange")
|
||||
size = Vector3(6, 1.4, 2.4)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_low_cover"]
|
||||
size = Vector3(6, 1.4, 2.4)
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_pillar"]
|
||||
material = SubResource("StandardMaterial3D_orange")
|
||||
top_radius = 1.5
|
||||
bottom_radius = 1.5
|
||||
height = 4.5
|
||||
radial_segments = 20
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_pillar"]
|
||||
radius = 1.5
|
||||
height = 4.5
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_center_pad_outer"]
|
||||
material = SubResource("StandardMaterial3D_orange")
|
||||
top_radius = 8
|
||||
bottom_radius = 8
|
||||
height = 0.025
|
||||
radial_segments = 48
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_center_pad_inner"]
|
||||
material = SubResource("StandardMaterial3D_floor")
|
||||
top_radius = 6.7
|
||||
bottom_radius = 6.7
|
||||
height = 0.035
|
||||
radial_segments = 48
|
||||
|
||||
[node name="Arena" type="Node3D"]
|
||||
|
||||
[node name="Decoration" type="Node3D" parent="."]
|
||||
|
||||
[node name="CenterPadOuter" type="MeshInstance3D" parent="Decoration"]
|
||||
position = Vector3(0, 0.0125, 0)
|
||||
cast_shadow = 0
|
||||
mesh = SubResource("CylinderMesh_center_pad_outer")
|
||||
|
||||
[node name="CenterPadInner" type="MeshInstance3D" parent="Decoration"]
|
||||
position = Vector3(0, 0.03, 0)
|
||||
cast_shadow = 0
|
||||
mesh = SubResource("CylinderMesh_center_pad_inner")
|
||||
|
||||
[node name="Geometry" type="StaticBody3D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
|
||||
[node name="GroundMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(0, -0.2, 0)
|
||||
mesh = SubResource("BoxMesh_floor")
|
||||
|
||||
[node name="GroundCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(0, -0.2, 0)
|
||||
shape = SubResource("BoxShape3D_floor")
|
||||
|
||||
[node name="BoundaryNorthMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(0, 1.5, -49.5)
|
||||
mesh = SubResource("BoxMesh_boundary")
|
||||
|
||||
[node name="BoundaryNorthCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(0, 1.5, -49.5)
|
||||
shape = SubResource("BoxShape3D_boundary")
|
||||
|
||||
[node name="BoundarySouthMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(0, 1.5, 49.5)
|
||||
mesh = SubResource("BoxMesh_boundary")
|
||||
|
||||
[node name="BoundarySouthCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(0, 1.5, 49.5)
|
||||
shape = SubResource("BoxShape3D_boundary")
|
||||
|
||||
[node name="BoundaryEastMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(49.5, 1.5, 0)
|
||||
rotation = Vector3(0, 1.5707963, 0)
|
||||
mesh = SubResource("BoxMesh_boundary")
|
||||
|
||||
[node name="BoundaryEastCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(49.5, 1.5, 0)
|
||||
rotation = Vector3(0, 1.5707963, 0)
|
||||
shape = SubResource("BoxShape3D_boundary")
|
||||
|
||||
[node name="BoundaryWestMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(-49.5, 1.5, 0)
|
||||
rotation = Vector3(0, 1.5707963, 0)
|
||||
mesh = SubResource("BoxMesh_boundary")
|
||||
|
||||
[node name="BoundaryWestCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(-49.5, 1.5, 0)
|
||||
rotation = Vector3(0, 1.5707963, 0)
|
||||
shape = SubResource("BoxShape3D_boundary")
|
||||
|
||||
[node name="DiagonalNortheastMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(16, 1.25, -16)
|
||||
rotation = Vector3(0, 0.7853982, 0)
|
||||
mesh = SubResource("BoxMesh_diagonal_wall")
|
||||
|
||||
[node name="DiagonalNortheastCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(16, 1.25, -16)
|
||||
rotation = Vector3(0, 0.7853982, 0)
|
||||
shape = SubResource("BoxShape3D_diagonal_wall")
|
||||
|
||||
[node name="DiagonalNorthwestMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(-16, 1.25, -16)
|
||||
rotation = Vector3(0, -0.7853982, 0)
|
||||
mesh = SubResource("BoxMesh_diagonal_wall")
|
||||
|
||||
[node name="DiagonalNorthwestCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(-16, 1.25, -16)
|
||||
rotation = Vector3(0, -0.7853982, 0)
|
||||
shape = SubResource("BoxShape3D_diagonal_wall")
|
||||
|
||||
[node name="DiagonalSoutheastMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(16, 1.25, 16)
|
||||
rotation = Vector3(0, -0.7853982, 0)
|
||||
mesh = SubResource("BoxMesh_diagonal_wall")
|
||||
|
||||
[node name="DiagonalSoutheastCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(16, 1.25, 16)
|
||||
rotation = Vector3(0, -0.7853982, 0)
|
||||
shape = SubResource("BoxShape3D_diagonal_wall")
|
||||
|
||||
[node name="DiagonalSouthwestMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(-16, 1.25, 16)
|
||||
rotation = Vector3(0, 0.7853982, 0)
|
||||
mesh = SubResource("BoxMesh_diagonal_wall")
|
||||
|
||||
[node name="DiagonalSouthwestCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(-16, 1.25, 16)
|
||||
rotation = Vector3(0, 0.7853982, 0)
|
||||
shape = SubResource("BoxShape3D_diagonal_wall")
|
||||
|
||||
[node name="OuterDiagonalNortheastMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(34, 1.25, -22)
|
||||
rotation = Vector3(0, -0.7853982, 0)
|
||||
mesh = SubResource("BoxMesh_diagonal_wall")
|
||||
|
||||
[node name="OuterDiagonalNortheastCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(34, 1.25, -22)
|
||||
rotation = Vector3(0, -0.7853982, 0)
|
||||
shape = SubResource("BoxShape3D_diagonal_wall")
|
||||
|
||||
[node name="OuterDiagonalNorthwestMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(-34, 1.25, -22)
|
||||
rotation = Vector3(0, 0.7853982, 0)
|
||||
mesh = SubResource("BoxMesh_diagonal_wall")
|
||||
|
||||
[node name="OuterDiagonalNorthwestCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(-34, 1.25, -22)
|
||||
rotation = Vector3(0, 0.7853982, 0)
|
||||
shape = SubResource("BoxShape3D_diagonal_wall")
|
||||
|
||||
[node name="OuterDiagonalSoutheastMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(34, 1.25, 22)
|
||||
rotation = Vector3(0, 0.7853982, 0)
|
||||
mesh = SubResource("BoxMesh_diagonal_wall")
|
||||
|
||||
[node name="OuterDiagonalSoutheastCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(34, 1.25, 22)
|
||||
rotation = Vector3(0, 0.7853982, 0)
|
||||
shape = SubResource("BoxShape3D_diagonal_wall")
|
||||
|
||||
[node name="OuterDiagonalSouthwestMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(-34, 1.25, 22)
|
||||
rotation = Vector3(0, -0.7853982, 0)
|
||||
mesh = SubResource("BoxMesh_diagonal_wall")
|
||||
|
||||
[node name="OuterDiagonalSouthwestCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(-34, 1.25, 22)
|
||||
rotation = Vector3(0, -0.7853982, 0)
|
||||
shape = SubResource("BoxShape3D_diagonal_wall")
|
||||
|
||||
[node name="LowCoverNorthMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(0, 0.7, -32)
|
||||
mesh = SubResource("BoxMesh_low_cover")
|
||||
|
||||
[node name="LowCoverNorthCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(0, 0.7, -32)
|
||||
shape = SubResource("BoxShape3D_low_cover")
|
||||
|
||||
[node name="LowCoverSouthMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(0, 0.7, 32)
|
||||
mesh = SubResource("BoxMesh_low_cover")
|
||||
|
||||
[node name="LowCoverSouthCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(0, 0.7, 32)
|
||||
shape = SubResource("BoxShape3D_low_cover")
|
||||
|
||||
[node name="LowCoverEastMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(32, 0.7, 0)
|
||||
rotation = Vector3(0, 1.5707963, 0)
|
||||
mesh = SubResource("BoxMesh_low_cover")
|
||||
|
||||
[node name="LowCoverEastCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(32, 0.7, 0)
|
||||
rotation = Vector3(0, 1.5707963, 0)
|
||||
shape = SubResource("BoxShape3D_low_cover")
|
||||
|
||||
[node name="LowCoverWestMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(-32, 0.7, 0)
|
||||
rotation = Vector3(0, 1.5707963, 0)
|
||||
mesh = SubResource("BoxMesh_low_cover")
|
||||
|
||||
[node name="LowCoverWestCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(-32, 0.7, 0)
|
||||
rotation = Vector3(0, 1.5707963, 0)
|
||||
shape = SubResource("BoxShape3D_low_cover")
|
||||
|
||||
[node name="PillarNortheastMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(40, 2.25, -40)
|
||||
mesh = SubResource("CylinderMesh_pillar")
|
||||
|
||||
[node name="PillarNortheastCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(40, 2.25, -40)
|
||||
shape = SubResource("CylinderShape3D_pillar")
|
||||
|
||||
[node name="PillarNorthwestMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(-40, 2.25, -40)
|
||||
mesh = SubResource("CylinderMesh_pillar")
|
||||
|
||||
[node name="PillarNorthwestCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(-40, 2.25, -40)
|
||||
shape = SubResource("CylinderShape3D_pillar")
|
||||
|
||||
[node name="PillarSoutheastMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(40, 2.25, 40)
|
||||
mesh = SubResource("CylinderMesh_pillar")
|
||||
|
||||
[node name="PillarSoutheastCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(40, 2.25, 40)
|
||||
shape = SubResource("CylinderShape3D_pillar")
|
||||
|
||||
[node name="PillarSouthwestMesh" type="MeshInstance3D" parent="Geometry"]
|
||||
position = Vector3(-40, 2.25, 40)
|
||||
mesh = SubResource("CylinderMesh_pillar")
|
||||
|
||||
[node name="PillarSouthwestCollision" type="CollisionShape3D" parent="Geometry"]
|
||||
position = Vector3(-40, 2.25, 40)
|
||||
shape = SubResource("CylinderShape3D_pillar")
|
||||
@@ -0,0 +1,88 @@
|
||||
[gd_scene format=3 uid="uid://dugaivbj1o66n"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d0dgljwwl463n" path="res://scripts/level/level.gd" id="1_e1sh7"]
|
||||
[ext_resource type="PackedScene" uid="uid://cffjduipbb3s5" path="res://scenes/level/player.tscn" id="1_uvcbi"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/level/arena.tscn" id="2_arena"]
|
||||
[ext_resource type="PackedScene" uid="uid://bclq8vh1x2goy" path="res://scenes/ui/inventory_ui.tscn" id="4_x8g2h"]
|
||||
[ext_resource type="PackedScene" uid="uid://ccencq0lcd3ph" path="res://scenes/ui/multiplayer_chat_ui.tscn" id="5_x9g3h"]
|
||||
[ext_resource type="PackedScene" uid="uid://bx7mq8t8hjn7q" path="res://scenes/ui/main_menu_ui.tscn" id="6_x9g3h"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/ui/pause_menu_ui.tscn" id="8_pause"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/ui/player_list_ui.tscn" id="9_player_list"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_main"]
|
||||
sky_top_color = Color(0.22, 0.46, 0.72, 1)
|
||||
sky_horizon_color = Color(0.66, 0.8, 0.92, 1)
|
||||
sky_curve = 0.12
|
||||
ground_bottom_color = Color(0.12, 0.14, 0.17, 1)
|
||||
ground_horizon_color = Color(0.52, 0.61, 0.68, 1)
|
||||
ground_curve = 0.08
|
||||
sun_angle_max = 20.0
|
||||
sun_curve = 0.1
|
||||
|
||||
[sub_resource type="Sky" id="Sky_main"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_main")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_qb4jd"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_main")
|
||||
ambient_light_source = 3
|
||||
reflected_light_source = 2
|
||||
tonemap_mode = 2
|
||||
ssao_enabled = true
|
||||
ssao_radius = 0.7
|
||||
ssao_intensity = 0.85
|
||||
ssao_power = 1.1
|
||||
ssao_detail = 0.35
|
||||
fog_enabled = true
|
||||
fog_light_color = Color(0.66, 0.76, 0.84, 1)
|
||||
fog_light_energy = 0.8
|
||||
fog_sun_scatter = 0.08
|
||||
fog_density = 0.0025
|
||||
fog_aerial_perspective = 0.45
|
||||
fog_sky_affect = 0.65
|
||||
|
||||
[node name="Level" type="Node3D" unique_id=1359265925]
|
||||
script = ExtResource("1_e1sh7")
|
||||
player_scene = ExtResource("1_uvcbi")
|
||||
|
||||
[node name="ItemMultiplayerSpawner" type="MultiplayerSpawner" parent="." unique_id=150451317]
|
||||
unique_name_in_owner = true
|
||||
_spawnable_scenes = PackedStringArray("res://scenes/items/hats/fedora.tscn", "res://scenes/items/hats/headphones.tscn", "res://scenes/items/hats/pirate_hat.tscn", "res://scenes/items/hats/sheriff_hat.tscn", "res://scenes/items/hats/sombrero.tscn", "res://scenes/items/hats/wizard_hat.tscn", "res://scenes/items/backpacks/backpack.tscn", "res://scenes/items/weapons/sword.tscn", "res://scenes/items/weapons/sword_big.tscn", "res://scenes/items/weapons/axe.tscn", "res://scenes/items/misc/chicken_leg.tscn", "res://scenes/items/misc/bone.tscn", "res://scenes/items/misc/chalice.tscn")
|
||||
spawn_path = NodePath("../Environment/ItemContainer")
|
||||
|
||||
[node name="Environment" type="Node3D" parent="." unique_id=523076069]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.2542782, 0)
|
||||
|
||||
[node name="Arena" parent="Environment" unique_id=318485284 instance=ExtResource("2_arena")]
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="Environment" unique_id=824936187]
|
||||
environment = SubResource("Environment_qb4jd")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment" unique_id=2096374065]
|
||||
transform = Transform3D(1, 0, 0, 0, -0.50000024, 0.8660253, 0, -0.8660253, -0.50000024, 0, 9.597253, 0)
|
||||
light_color = Color(1, 0.94, 0.84, 1)
|
||||
light_energy = 1.15
|
||||
shadow_enabled = true
|
||||
shadow_blur = 0.5
|
||||
|
||||
[node name="ItemContainer" type="Node3D" parent="Environment" unique_id=1445003613]
|
||||
|
||||
[node name="PlayersContainer" type="Node3D" parent="." unique_id=1732952398 groups=["Players"]]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6891646, 0)
|
||||
|
||||
[node name="MainMenuUI" parent="." unique_id=2006763256 instance=ExtResource("6_x9g3h")]
|
||||
visible = false
|
||||
|
||||
[node name="MultiplayerChatUI" parent="." unique_id=1655363280 instance=ExtResource("5_x9g3h")]
|
||||
visible = false
|
||||
anchors_preset = -1
|
||||
|
||||
[node name="InventoryUI" parent="." unique_id=2001567843 instance=ExtResource("4_x8g2h")]
|
||||
visible = false
|
||||
|
||||
[node name="PlayerListUI" parent="." unique_id=517544055 instance=ExtResource("9_player_list")]
|
||||
visible = false
|
||||
|
||||
[node name="PauseMenuUI" parent="." unique_id=358154633 instance=ExtResource("8_pause")]
|
||||
visible = false
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user