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
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user