Fixed doorway shadows
This commit is contained in:
@@ -33,9 +33,9 @@ const INNER_CORNER_LOWER_RIGHT_RECT := Rect2(156, 156, 50, 50)
|
||||
|
||||
# -- Openings (drawn on top of wall segments at doorway edges) --
|
||||
## Vertical opening: tiles separated on y-axis (north-south doorway through a horizontal wall)
|
||||
const VERTICAL_OPENING_RECT := Rect2(206, 43, 31, 29)
|
||||
const VERTICAL_OPENING_RECT := Rect2(206, 36, 36, 42)
|
||||
## Horizontal opening: tiles separated on x-axis (east-west doorway through a vertical wall)
|
||||
const HORIZONTAL_OPENING_RECT := Rect2(217, 0, 28, 31)
|
||||
const HORIZONTAL_OPENING_RECT := Rect2(210, 0, 41, 32)
|
||||
|
||||
## Wall thickness in game pixels (how far the border extends into the tile)
|
||||
const WALL_THICKNESS := 20.0
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://c7e4jw4xcti0q" path="res://assets/sprites/castle_spritesheet.png" id="1_g7g4h"]
|
||||
[ext_resource type="Shader" uid="uid://dakre5usldk6r" path="res://shaders/masked_palette_swap.gdshader" id="1_nd71p"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8td6sv5re6r8" path="res://assets/sprites/grey_castle_spritesheet_mask.bmp" id="2_7ddre"]
|
||||
[ext_resource type="Texture2D" uid="uid://b20mhn7ca5xyo" path="res://assets/sprites/aux_terrain.BMP" id="5_qjeyg"]
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_qjeyg"]
|
||||
texture = ExtResource("1_7ddre")
|
||||
@@ -48,6 +49,10 @@ shader_parameter/chroma_threshold = 0.10000000475
|
||||
atlas = ExtResource("1_g7g4h")
|
||||
region = Rect2(0, 100, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3qnke"]
|
||||
atlas = ExtResource("5_qjeyg")
|
||||
region = Rect2(210, 0, 41, 32)
|
||||
|
||||
[node name="TestScene" type="Node2D" unique_id=1687841395]
|
||||
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=265586128]
|
||||
@@ -58,3 +63,6 @@ tile_set = SubResource("TileSet_3qnke")
|
||||
material = SubResource("ShaderMaterial_qjeyg")
|
||||
position = Vector2(-150, -148)
|
||||
texture = SubResource("AtlasTexture_j8ivh")
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="." unique_id=1517711877]
|
||||
texture = SubResource("AtlasTexture_3qnke")
|
||||
|
||||
Reference in New Issue
Block a user