Cambiados los aspectos visuales del juego a algo gotico
This commit is contained in:
1 parent
ec7e35ddf6
commit
967b3a286d
205 files changed
+7056
-1630
No files matched your search
@@ -1,8 +1,12 @@
|
||||
[gd_scene load_steps=4 format=3]
|
||||
[gd_scene load_steps=5 format=3]
|
||||
[ext_resource type="PackedScene" path="res://world/terrain/terrain_piece.tscn" id="base"]
|
||||
[ext_resource type="Texture2D" path="res://assets/city/asphalt.png" id="fill"]
|
||||
[ext_resource type="Texture2D" path="res://assets/city/curb.png" id="top"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/environment/stone_fill.png" id="fill"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/environment/stone_cap.png" id="top"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/environment/platform_skulls.png" id="fascia"]
|
||||
[node name="Ground" instance=ExtResource("base")]
|
||||
dimensions = Vector2(512, 256)
|
||||
fill_texture = ExtResource("fill")
|
||||
top_texture = ExtResource("top")
|
||||
top_height = 16.0
|
||||
fascia_texture = ExtResource("fascia")
|
||||
fascia_height = 54.0
|
||||
@@ -1,7 +1,9 @@
|
||||
[gd_scene load_steps=3 format=3]
|
||||
[ext_resource type="PackedScene" path="res://world/terrain/terrain_piece.tscn" id="base"]
|
||||
[ext_resource type="Texture2D" path="res://assets/city/walkway.png" id="fill"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/environment/platform.png" id="fill"]
|
||||
[node name="Platform" instance=ExtResource("base")]
|
||||
dimensions = Vector2(240, 20)
|
||||
fill_texture = ExtResource("fill")
|
||||
fascia_texture = ExtResource("fill")
|
||||
fascia_height = 54.0
|
||||
one_way = true
|
||||
@@ -1,5 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
[gd_scene load_steps=3 format=3]
|
||||
[ext_resource type="PackedScene" path="res://world/terrain/terrain_piece.tscn" id="base"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/environment/stone_fill.png" id="stone"]
|
||||
|
||||
[node name="SolidBlock" instance=ExtResource("base")]
|
||||
outline_color = Color(0.93, 0.94, 1, 0.6)
|
||||
fill_texture = ExtResource("stone")
|
||||
@@ -40,15 +40,25 @@ extends StaticBody2D
|
||||
set(value):
|
||||
top_texture = value
|
||||
_queue_refresh()
|
||||
## Friso que cuelga bajo una plataforma. Es decorativo: la linea superior
|
||||
## y la colision conservan exactamente las medidas de Geometry.
|
||||
@export var fascia_texture: Texture2D:
|
||||
set(value):
|
||||
fascia_texture = value
|
||||
_queue_refresh()
|
||||
@export_range(0.0, 128.0, 1.0) var fascia_height: float = 0.0:
|
||||
set(value):
|
||||
fascia_height = maxf(value, 0.0)
|
||||
_queue_refresh()
|
||||
@export_range(1.0, 128.0, 1.0) var top_height: float = 24.0:
|
||||
set(value):
|
||||
top_height = value
|
||||
_queue_refresh()
|
||||
@export var fill_color: Color = Color(0.32, 0.57, 0.79):
|
||||
@export var fill_color: Color = Color(0.20, 0.18, 0.23):
|
||||
set(value):
|
||||
fill_color = value
|
||||
_queue_refresh()
|
||||
@export var outline_color: Color = Color(0.93, 0.94, 1.0, 0.0):
|
||||
@export var outline_color: Color = Color(0.72, 0.63, 0.47, 0.0):
|
||||
set(value):
|
||||
outline_color = value
|
||||
queue_redraw()
|
||||
@@ -103,6 +113,27 @@ func _refresh() -> void:
|
||||
top.position = -half
|
||||
top.region_rect = Rect2(Vector2.ZERO, Vector2(dimensions.x, minf(top_height, dimensions.y)))
|
||||
top.visible = top_texture != null
|
||||
var fascia: Sprite2D = get_node_or_null("Fascia") as Sprite2D
|
||||
if fascia != null:
|
||||
fascia.texture = fascia_texture
|
||||
fascia.position = -half
|
||||
fascia.region_rect = Rect2(Vector2.ZERO, Vector2(dimensions.x, fascia_height))
|
||||
fascia.visible = fascia_texture != null and fascia_height > 0.0
|
||||
# La luz del canto se pierde hacia el subsuelo. Se calcula una sola vez,
|
||||
# en la misma geometria que la colision, sin shaders por baldosa.
|
||||
var shade: Polygon2D = get_node_or_null("DepthShade") as Polygon2D
|
||||
if shade != null:
|
||||
var shaded_top: float = -half.y + minf(28.0, dimensions.y)
|
||||
shade.polygon = PackedVector2Array([
|
||||
Vector2(-half.x, shaded_top), Vector2(half.x, shaded_top),
|
||||
Vector2(half.x, half.y), Vector2(-half.x, half.y),
|
||||
])
|
||||
var depth: float = minf(0.74, dimensions.y / 600.0)
|
||||
shade.vertex_colors = PackedColorArray([
|
||||
Color(0.06, 0.045, 0.085, 0.0), Color(0.06, 0.045, 0.085, 0.0),
|
||||
Color(0.06, 0.045, 0.085, depth), Color(0.06, 0.045, 0.085, depth),
|
||||
])
|
||||
shade.visible = fill_texture != null and dimensions.y > 48.0
|
||||
queue_redraw()
|
||||
update_configuration_warnings()
|
||||
|
||||
|
||||
@@ -10,12 +10,17 @@ collision_mask = 0
|
||||
script = ExtResource("script")
|
||||
[node name="Fill" type="Polygon2D" parent="."]
|
||||
polygon = PackedVector2Array(-128, -32, 128, -32, 128, 32, -128, 32)
|
||||
color = Color(0.32, 0.57, 0.79, 1)
|
||||
color = Color(0.20, 0.18, 0.23, 1)
|
||||
[node name="Texture" type="Sprite2D" parent="."]
|
||||
texture_repeat = 2
|
||||
centered = false
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 0, 256, 64)
|
||||
[node name="Fascia" type="Sprite2D" parent="."]
|
||||
texture_repeat = 2
|
||||
centered = false
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 0, 256, 54)
|
||||
[node name="Top" type="Sprite2D" parent="."]
|
||||
texture_repeat = 2
|
||||
centered = false
|
||||
@@ -23,3 +28,7 @@ region_enabled = true
|
||||
region_rect = Rect2(0, 0, 256, 24)
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("shape")
|
||||
|
||||
[node name="DepthShade" type="Polygon2D" parent="."]
|
||||
polygon = PackedVector2Array(-128, -4, 128, -4, 128, 32, -128, 32)
|
||||
vertex_colors = PackedColorArray(0.06, 0.045, 0.085, 0, 0.06, 0.045, 0.085, 0, 0.06, 0.045, 0.085, 0.1, 0.06, 0.045, 0.085, 0.1)
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=3 format=3]
|
||||
[ext_resource type="PackedScene" path="res://world/terrain/terrain_piece.tscn" id="base"]
|
||||
[ext_resource type="Texture2D" path="res://assets/city/barrier.png" id="fill"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/environment/abbey_wall.png" id="fill"]
|
||||
[node name="Wall" instance=ExtResource("base")]
|
||||
dimensions = Vector2(48, 320)
|
||||
fill_texture = ExtResource("fill")
|
||||
Reference in new issue
Block a user