ld: map and stairs

This commit is contained in:
2025-06-14 22:38:36 +02:00
parent 5db803bb31
commit db2e577972
21 changed files with 421 additions and 40 deletions

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://fxj0a6p5h6lm"]
[gd_scene load_steps=3 format=3 uid="uid://fxj0a6p5h6lm"]
[ext_resource type="Material" uid="uid://31aulub2nqov" path="res://assets/greybox/m_greybox.tres" id="1_uvljb"]
[ext_resource type="PackedScene" uid="uid://482s38k0yv35" path="res://maps/Components/stairs.tscn" id="2_3lq07"]
[node name="SmallSquareTower" type="CSGCombiner3D"]
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, 0, 0, 0)
@ -34,3 +35,16 @@ transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 2,
use_collision = true
size = Vector3(0.5, 1, 5)
material = ExtResource("1_uvljb")
[node name="CSGBox3D6" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.5, 2, -3.57628e-07)
operation = 2
use_collision = true
size = Vector3(1.5, 1, 2.5)
material = ExtResource("1_uvljb")
[node name="stairs2" parent="." instance=ExtResource("2_3lq07")]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -2.5935, 2.82843, 0.51, 0.000713646)
[node name="stairs3" parent="." instance=ExtResource("2_3lq07")]
transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, -2.5935, 3.82843, -0.49, 0.000713646)

View File

@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://482s38k0yv35"]
[ext_resource type="PackedScene" uid="uid://dblmypced1fvv" path="res://assets/stairs/stairs.fbx" id="1_v7x20"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_ovbdw"]
data = PackedVector3Array(0.5, 0, -0.5, -0.5, 0.25, -0.5, -0.5, 0, -0.5, -0.5, 0.25, -0.5, 0.5, 0, -0.5, -0.25, 0.25, -0.5, -0.25, 0.25, -0.5, 0.5, 0, -0.5, 0, 0.5, -0.5, -0.25, 0.25, -0.5, 0, 0.5, -0.5, -0.25, 0.5, -0.5, 0, 0.5, -0.5, 0.5, 0, -0.5, 0.5, 1, -0.5, 0, 0.5, -0.5, 0.5, 1, -0.5, 0.25, 0.75, -0.5, 0.25, 0.75, -0.5, 0.5, 1, -0.5, 0.25, 1, -0.5, 0, 0.5, -0.5, 0.25, 0.75, -0.5, 0, 0.75, -0.5, -0.5, 0.25, -0.5, -0.5, 0, 0.5, -0.5, 0, -0.5, -0.5, 0, 0.5, -0.5, 0.25, -0.5, -0.5, 0.25, 0.5, 0.5, 0, -0.5, -0.5, 0, 0.5, 0.5, 0, 0.5, -0.5, 0, 0.5, 0.5, 0, -0.5, -0.5, 0, -0.5, 0.5, 0, -0.5, 0.5, 1, 0.5, 0.5, 1, -0.5, 0.5, 1, 0.5, 0.5, 0, -0.5, 0.5, 0, 0.5, 0.5, 1, 0.5, 0.25, 1, -0.5, 0.5, 1, -0.5, 0.25, 1, -0.5, 0.5, 1, 0.5, 0.25, 1, 0.5, 0.5, 1, 0.5, 0.25, 0.75, 0.5, 0.25, 1, 0.5, 0.5, 1, 0.5, 0, 0.5, 0.5, 0.25, 0.75, 0.5, 0, 0.5, 0.5, 0, 0.75, 0.5, 0.25, 0.75, 0.5, 0.5, 0, 0.5, 0, 0.5, 0.5, 0.5, 1, 0.5, 0, 0.5, 0.5, 0.5, 0, 0.5, -0.5, 0, 0.5, 0, 0.5, 0.5, -0.5, 0, 0.5, -0.25, 0.25, 0.5, -0.5, 0, 0.5, -0.5, 0.25, 0.5, -0.25, 0.25, 0.5, -0.25, 0.25, 0.5, -0.25, 0.5, 0.5, 0, 0.5, 0.5, -0.25, 0.25, 0.5, -0.5, 0.25, -0.5, -0.25, 0.25, -0.5, -0.5, 0.25, -0.5, -0.25, 0.25, 0.5, -0.5, 0.25, 0.5, -0.25, 0.5, -0.5, -0.25, 0.25, 0.5, -0.25, 0.25, -0.5, -0.25, 0.25, 0.5, -0.25, 0.5, -0.5, -0.25, 0.5, 0.5, 0, 0.5, 0.5, -0.25, 0.5, -0.5, 0, 0.5, -0.5, -0.25, 0.5, -0.5, 0, 0.5, 0.5, -0.25, 0.5, 0.5, 0, 0.75, -0.5, 0, 0.5, 0.5, 0, 0.5, -0.5, 0, 0.5, 0.5, 0, 0.75, -0.5, 0, 0.75, 0.5, 0.25, 0.75, 0.5, 0, 0.75, -0.5, 0.25, 0.75, -0.5, 0, 0.75, -0.5, 0.25, 0.75, 0.5, 0, 0.75, 0.5, 0.25, 1, -0.5, 0.25, 0.75, 0.5, 0.25, 0.75, -0.5, 0.25, 0.75, 0.5, 0.25, 1, -0.5, 0.25, 1, 0.5)
[node name="stairs" instance=ExtResource("1_v7x20")]
[node name="StaticBody3D" type="StaticBody3D" parent="." index="1"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" index="0"]
shape = SubResource("ConcavePolygonShape3D_ovbdw")

View File

@ -1,8 +1,9 @@
[gd_scene load_steps=9 format=3 uid="uid://dmkw8cmalm5k"]
[gd_scene load_steps=10 format=3 uid="uid://dmkw8cmalm5k"]
[ext_resource type="PackedScene" uid="uid://bei4nhkf8lwdo" path="res://player_controller/PlayerController.tscn" id="1_2vsi6"]
[ext_resource type="PackedScene" uid="uid://dkr80d2pi0d41" path="res://addons/guide/debugger/guide_debugger.tscn" id="2_uet8a"]
[ext_resource type="Material" uid="uid://31aulub2nqov" path="res://assets/greybox/m_greybox.tres" id="3_cieeo"]
[ext_resource type="Texture2D" uid="uid://7kcmi16gedd0" path="res://assets/LD-0001.png" id="3_ruo5i"]
[ext_resource type="PackedScene" uid="uid://br76ixljh42i8" path="res://maps/Components/large_square_tower.tscn" id="4_omvc4"]
[ext_resource type="PackedScene" uid="uid://fxj0a6p5h6lm" path="res://maps/Components/small_square_tower.tscn" id="5_ruo5i"]
@ -46,51 +47,64 @@ shadow_enabled = true
visible = false
[node name="Greybox" type="CSGCombiner3D" parent="."]
transform = Transform3D(0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, 0.707107, 0, 0, 0)
use_collision = true
collision_layer = 3
collision_mask = 5
[node name="CSGBox3D7" type="CSGBox3D" parent="Greybox"]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 92, 10.5)
use_collision = true
size = Vector3(0.5, 1, 16)
material = ExtResource("3_cieeo")
[node name="Map" type="Sprite3D" parent="Greybox"]
transform = Transform3D(5.65685, -5.65685, -2.47269e-08, 0, -3.49691e-07, 0.8, -5.65685, -5.65685, -2.47269e-08, 141.335, 0, -122.33)
texture = ExtResource("3_ruo5i")
[node name="CSGBox3D8" type="CSGBox3D" parent="Greybox"]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 92, -10.5)
use_collision = true
size = Vector3(0.5, 1, 16)
material = ExtResource("3_cieeo")
[node name="GuardTower" type="CSGCombiner3D" parent="Greybox"]
[node name="CSGBox3D9" type="CSGBox3D" parent="Greybox"]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 10.5, 92, 0)
use_collision = true
size = Vector3(0.5, 1, 16)
material = ExtResource("3_cieeo")
[node name="CSGBox3D10" type="CSGBox3D" parent="Greybox"]
transform = Transform3D(-1, 0, 1.50996e-07, 0, 1, 0, -1.50996e-07, 0, -1, -10.5, 92, 0)
use_collision = true
size = Vector3(0.5, 1, 16)
material = ExtResource("3_cieeo")
[node name="LargeSquareTower" parent="Greybox" instance=ExtResource("4_omvc4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 96, 0)
[node name="SmallSquareTower" parent="Greybox" instance=ExtResource("5_ruo5i")]
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, 10.5, 91.5, 10.5)
[node name="SmallSquareTower2" parent="Greybox" instance=ExtResource("5_ruo5i")]
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, -10.5, 91.5, 10.5)
[node name="SmallSquareTower3" parent="Greybox" instance=ExtResource("5_ruo5i")]
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, -10.5, 91.5, -10.5)
[node name="SmallSquareTower4" parent="Greybox" instance=ExtResource("5_ruo5i")]
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, 10.5, 91.5, -10.5)
[node name="CSGBox3D6" type="CSGBox3D" parent="Greybox"]
[node name="CSGBox3D6" type="CSGBox3D" parent="Greybox/GuardTower"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 45.75, 0)
use_collision = true
size = Vector3(21, 91.5, 21)
material = ExtResource("3_cieeo")
[node name="CSGBox3D7" type="CSGBox3D" parent="Greybox/GuardTower"]
transform = Transform3D(-8.9407e-08, 0, -1, 0, 1, 0, 1, 0, -8.9407e-08, 0, 92, 10.5)
use_collision = true
size = Vector3(0.5, 1, 16)
material = ExtResource("3_cieeo")
[node name="CSGBox3D8" type="CSGBox3D" parent="Greybox/GuardTower"]
transform = Transform3D(-8.9407e-08, 0, -1, 0, 1, 0, 1, 0, -8.9407e-08, 0, 92, -10.5)
use_collision = true
size = Vector3(0.5, 1, 16)
material = ExtResource("3_cieeo")
[node name="CSGBox3D9" type="CSGBox3D" parent="Greybox/GuardTower"]
transform = Transform3D(-1, 0, 8.9407e-08, 0, 1, 0, -8.9407e-08, 0, -1, 10.5, 92, 0)
use_collision = true
size = Vector3(0.5, 1, 16)
material = ExtResource("3_cieeo")
[node name="CSGBox3D10" type="CSGBox3D" parent="Greybox/GuardTower"]
transform = Transform3D(-1, 0, 1.78814e-07, 0, 1, 0, -1.78814e-07, 0, -1, -10.5, 92, 0)
use_collision = true
size = Vector3(0.5, 1, 16)
material = ExtResource("3_cieeo")
[node name="LargeSquareTower" parent="Greybox/GuardTower" instance=ExtResource("4_omvc4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 96, 0)
[node name="SmallSquareTower" parent="Greybox/GuardTower" instance=ExtResource("5_ruo5i")]
transform = Transform3D(-0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, -0.707107, 10.5, 91.5, 10.5)
[node name="SmallSquareTower2" parent="Greybox/GuardTower" instance=ExtResource("5_ruo5i")]
transform = Transform3D(0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, 0.707107, -10.5, 91.5, 10.5)
[node name="SmallSquareTower3" parent="Greybox/GuardTower" instance=ExtResource("5_ruo5i")]
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, -10.5, 91.5, -10.5)
[node name="SmallSquareTower4" parent="Greybox/GuardTower" instance=ExtResource("5_ruo5i")]
transform = Transform3D(-0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, -0.707107, 10.5, 91.5, -10.5)
[node name="CSGBox3D11" type="CSGBox3D" parent="Greybox"]
transform = Transform3D(-0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, -0.707107, 149.932, -1, -129.284)
use_collision = true
size = Vector3(398.5, 1, 288.5)
material = ExtResource("3_cieeo")