ceiling texture, stair/alcove handling

This commit is contained in:
2024-08-02 12:47:06 +03:00
parent 0e6540daf5
commit 6bb89a04fd
2 changed files with 135 additions and 10 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://deff7lt34nj0h"]
[gd_scene load_steps=8 format=3 uid="uid://deff7lt34nj0h"]
[ext_resource type="Script" path="res://Scripts/Space/Space.gd" id="1_ckp7u"]
[ext_resource type="Script" path="res://Scripts/Space/SpaceRegion.gd" id="2_s3h7s"]
@ -6,6 +6,7 @@
[ext_resource type="Texture2D" uid="uid://icmmuqquxhq3" path="res://Art/Stone_06-128x128.png" id="3_ondo6"]
[ext_resource type="Texture2D" uid="uid://eempmja460l5" path="res://Art/Stone_11-128x128.png" id="4_mnswr"]
[ext_resource type="Script" path="res://Scripts/Space/SpaceSpawn.gd" id="4_rhl23"]
[ext_resource type="Texture2D" uid="uid://buoupwtftxjse" path="res://Art/Stone_05-128x128.png" id="5_evp07"]
[node name="Dungeon" type="Node2D"]
script = ExtResource("1_ckp7u")
@ -24,10 +25,22 @@ ceiling_texture = ExtResource("4_mnswr")
[node name="Column" type="Polygon2D" parent="Room"]
texture_repeat = 2
polygon = PackedVector2Array(8, -40, 48, -64, 88, -24, 64, 0, 24, -8)
texture = ExtResource("3_ondo6")
polygon = PackedVector2Array(8, -40, 48, -64, 88, -40, 72, -8, 72, -32, 48, -48, 24, -32, 24, -8)
uv = PackedVector2Array(1.88, 5.28, 0.6, 1.44, 5.24, 0.64, 5.24, 0.64, 9.94, 3.84, 5.72, 6.56, 5.72, 6.56, 1.88, 5.28, 5.24, 0.64)
script = ExtResource("2_s3h7s")
wall_texture = ExtResource("3_ondo6")
floor_texture = ExtResource("3_ondo6")
[node name="Floor" type="Polygon2D" parent="Room/Column"]
texture_repeat = 2
texture = ExtResource("5_evp07")
polygon = PackedVector2Array(72, -8, 72, -32, 48, -48, 24, -32, 24, -8)
uv = PackedVector2Array(1.88, 5.28, 0.6, 1.44, 5.24, 0.64, 5.24, 0.64, 9.94, 3.84, 5.72, 6.56, 5.72, 6.56, 1.88, 5.28, 5.24, 0.64)
script = ExtResource("2_s3h7s")
height = 20.0
wall_texture = ExtResource("3_ondo6")
top_texture = ExtResource("5_evp07")
[node name="Spawn" type="Sprite2D" parent="Room"]
position = Vector2(-48, 32)