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,18 +1,9 @@
|
||||
extends CanvasLayer
|
||||
|
||||
|
||||
## Controles táctiles provisionales para jugar en móvil.
|
||||
##
|
||||
## Los botones no llaman directamente al Player. En su lugar pulsan y liberan
|
||||
## las mismas acciones del InputMap que ya usa el teclado. De esta forma la
|
||||
## lógica de movimiento/combate sigue teniendo una única fuente de entrada:
|
||||
##
|
||||
## teclado -> InputMap <- controles táctiles
|
||||
## |
|
||||
## Player
|
||||
##
|
||||
## Cuando llegue el arte definitivo, esta escena puede cambiar por completo sin
|
||||
## tocar player.gd mientras conserve estas seis acciones.
|
||||
## La misma entrada del teclado, presentada como placas de metal tactiles.
|
||||
## Se muestran en pantallas tactiles; el Inspector permite probarlas en escritorio.
|
||||
@export var show_on_desktop: bool = false
|
||||
|
||||
@onready var move_left_button: Button = $Controls/MoveLeft
|
||||
@onready var move_right_button: Button = $Controls/MoveRight
|
||||
@@ -27,6 +18,7 @@ var _player: Node
|
||||
|
||||
## Asocia botones con las mismas acciones utilizadas por el teclado.
|
||||
func _ready() -> void:
|
||||
$Controls.visible = show_on_desktop or DisplayServer.is_touchscreen_available() or OS.has_feature("mobile")
|
||||
_bind_button(jump_button, &"jump")
|
||||
_bind_button(attack_button, &"attack")
|
||||
_bind_button(ground_pound_button, &"ground_pound")
|
||||
@@ -38,17 +30,18 @@ func _process(_delta: float) -> void:
|
||||
if not is_instance_valid(_player):
|
||||
_player = get_tree().get_first_node_in_group(&"player")
|
||||
if not is_instance_valid(_player):
|
||||
ground_pound_button.text = "GP"
|
||||
ground_pound_button.text = "CAER"
|
||||
ground_pound_button.modulate = Color.WHITE
|
||||
return
|
||||
var remaining: float = float(_player.get("ground_pound_cooldown_timer"))
|
||||
ground_pound_button.text = "GP\n%ds" % ceili(remaining) if remaining > 0.0 else "GP"
|
||||
ground_pound_button.text = "CAER\n%ds" % ceili(remaining) if remaining > 0.0 else "CAER"
|
||||
ground_pound_button.modulate = Color(0.55, 0.55, 0.55, 0.85) if remaining > 0.0 else Color.WHITE
|
||||
|
||||
|
||||
## Mantiene un unico dedo para direccion y permite deslizarlo entre ambos lados.
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event is InputEventScreenTouch:
|
||||
$Controls.show()
|
||||
var touch := event as InputEventScreenTouch
|
||||
if touch.pressed and direction_touch_index == -1:
|
||||
var action := _direction_at(touch.position)
|
||||
|
||||
@@ -1,45 +1,42 @@
|
||||
[gd_scene format=3 uid="uid://g7h185yageqr"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://g7h185yageqr"]
|
||||
|
||||
[ext_resource type="Script" path="res://ui/editor_ui_visibility.gd" id="editor_ui_visibility"]
|
||||
[ext_resource type="Script" path="res://ui/mobile_controls/mobile_controls.gd" id="1_controls"]
|
||||
[ext_resource type="Theme" path="res://ui/menu/menu_theme.tres" id="theme"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ashen/ui/button_plate.png" id="plate"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://2kbajcohyem7" path="res://ui/mobile_controls/mobile_controls.gd" id="1_controls"]
|
||||
[ext_resource type="Texture2D" uid="uid://cj6wl2l43nao2" path="res://assets/ui/mobile_controls/left-arrow.png" id="2_left"]
|
||||
[ext_resource type="Texture2D" uid="uid://y0tsuhk4moj3" path="res://assets/ui/mobile_controls/right-arrow.png" id="3_right"]
|
||||
[ext_resource type="Texture2D" uid="uid://b832qiumqbdwc" path="res://assets/ui/mobile_controls/top-arrow.png" id="4_jump"]
|
||||
[ext_resource type="Texture2D" uid="uid://byb0xo2xlcj4f" path="res://assets/ui/mobile_controls/attack.png" id="5_attack"]
|
||||
[sub_resource type="StyleBoxTexture" id="ButtonNormal"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 24.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 28.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 12.0
|
||||
content_margin_top = 12.0
|
||||
content_margin_right = 12.0
|
||||
content_margin_bottom = 12.0
|
||||
modulate_color = Color(0.68, 0.61, 0.48, 0.78)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="ButtonNormal"]
|
||||
bg_color = Color(0.65, 0.04, 0.04, 0.28)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
border_color = Color(1, 0.15, 0.15, 0.72)
|
||||
corner_radius_top_left = 14
|
||||
corner_radius_top_right = 14
|
||||
corner_radius_bottom_right = 14
|
||||
corner_radius_bottom_left = 14
|
||||
[sub_resource type="StyleBoxTexture" id="ButtonPressed"]
|
||||
texture = ExtResource("plate")
|
||||
texture_margin_left = 24.0
|
||||
texture_margin_top = 18.0
|
||||
texture_margin_right = 28.0
|
||||
texture_margin_bottom = 16.0
|
||||
content_margin_left = 12.0
|
||||
content_margin_top = 14.0
|
||||
content_margin_right = 12.0
|
||||
content_margin_bottom = 10.0
|
||||
modulate_color = Color(1, 0.78, 0.51, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="ButtonPressed"]
|
||||
bg_color = Color(0.95, 0.05, 0.05, 0.52)
|
||||
border_width_left = 4
|
||||
border_width_top = 4
|
||||
border_width_right = 4
|
||||
border_width_bottom = 4
|
||||
border_color = Color(1, 0.45, 0.45, 0.95)
|
||||
corner_radius_top_left = 14
|
||||
corner_radius_top_right = 14
|
||||
corner_radius_bottom_right = 14
|
||||
corner_radius_bottom_left = 14
|
||||
|
||||
[node name="MobileControls" type="CanvasLayer" unique_id=478431491]
|
||||
[node name="MobileControls" type="CanvasLayer"]
|
||||
layer = 100
|
||||
script = ExtResource("1_controls")
|
||||
|
||||
[node name="EditorVisibility" type="Node" parent="."]
|
||||
script = ExtResource("editor_ui_visibility")
|
||||
|
||||
[node name="Controls" type="Control" parent="." unique_id=1754744981]
|
||||
[node name="Controls" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -47,139 +44,136 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
theme = ExtResource("theme")
|
||||
|
||||
[node name="MoveLeft" type="Button" parent="Controls" unique_id=981068385]
|
||||
[node name="MoveLeft" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 50.0
|
||||
offset_top = -170.0
|
||||
offset_right = 188.0
|
||||
offset_bottom = -32.0
|
||||
offset_left = 24.0
|
||||
offset_top = -140.0
|
||||
offset_right = 136.0
|
||||
offset_bottom = -28.0
|
||||
grow_horizontal = 1
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 42
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
icon = ExtResource("2_left")
|
||||
expand_icon = true
|
||||
text = "<<"
|
||||
|
||||
[node name="MoveRight" type="Button" parent="Controls" unique_id=561780368]
|
||||
[node name="MoveRight" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 208.0
|
||||
offset_top = -170.0
|
||||
offset_right = 346.0
|
||||
offset_bottom = -32.0
|
||||
offset_left = 148.0
|
||||
offset_top = -140.0
|
||||
offset_right = 260.0
|
||||
offset_bottom = -28.0
|
||||
grow_horizontal = 1
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 42
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 32
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
icon = ExtResource("3_right")
|
||||
expand_icon = true
|
||||
text = ">>"
|
||||
|
||||
[node name="Jump" type="Button" parent="Controls" unique_id=1396737393]
|
||||
[node name="Jump" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -177.0
|
||||
offset_top = -316.0
|
||||
offset_right = -34.0
|
||||
offset_bottom = -186.0
|
||||
offset_left = -140.0
|
||||
offset_top = -264.0
|
||||
offset_right = -28.0
|
||||
offset_bottom = -152.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 22
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
icon = ExtResource("4_jump")
|
||||
expand_icon = true
|
||||
text = "SALTO"
|
||||
|
||||
[node name="Attack" type="Button" parent="Controls" unique_id=514469811]
|
||||
[node name="Attack" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -330.0
|
||||
offset_top = -228.0
|
||||
offset_right = -220.0
|
||||
offset_bottom = -128.0
|
||||
offset_left = -264.0
|
||||
offset_top = -140.0
|
||||
offset_right = -152.0
|
||||
offset_bottom = -28.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 22
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
icon = ExtResource("5_attack")
|
||||
expand_icon = true
|
||||
text = "ATAQUE"
|
||||
|
||||
[node name="GroundPound" type="Button" parent="Controls" unique_id=655126227]
|
||||
[node name="GroundPound" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -160.0
|
||||
offset_top = -155.0
|
||||
offset_right = -50.0
|
||||
offset_bottom = -55.0
|
||||
offset_left = -140.0
|
||||
offset_top = -140.0
|
||||
offset_right = -28.0
|
||||
offset_bottom = -28.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 18
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
text = "GP"
|
||||
text = "CAER"
|
||||
|
||||
[node name="SpecialAttack" type="Button" parent="Controls" unique_id=2065869646]
|
||||
[node name="SpecialAttack" type="Button" parent="Controls"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -163.0
|
||||
offset_top = -520.0
|
||||
offset_right = -53.0
|
||||
offset_bottom = -420.0
|
||||
offset_left = -264.0
|
||||
offset_top = -264.0
|
||||
offset_right = -152.0
|
||||
offset_bottom = -152.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
focus_mode = 0
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 0.95)
|
||||
theme_override_colors/font_pressed_color = Color(1, 1, 1, 1)
|
||||
theme_override_font_sizes/font_size = 18
|
||||
theme_override_colors/font_color = Color(0.88, 0.82, 0.68, 0.92)
|
||||
theme_override_colors/font_pressed_color = Color(1, 0.94, 0.77, 1)
|
||||
theme_override_font_sizes/font_size = 16
|
||||
theme_override_styles/normal = SubResource("ButtonNormal")
|
||||
theme_override_styles/pressed = SubResource("ButtonPressed")
|
||||
theme_override_styles/hover = SubResource("ButtonNormal")
|
||||
keep_pressed_outside = true
|
||||
text = "SP"
|
||||
text = "SOLO"
|
||||
Reference in new issue
Block a user