Cambios en el tamaño del personaje y del hud #14

Merged
ankdev merged 1 commits from feature/ia_automated_test into main 2026-10-20 11:56:17 +00:00
3 changed files with 73 additions and 79 deletions

No files matched your search

@@ -1,4 +1,4 @@
[gd_resource type="SpriteFrames" load_steps=36 format=3]
[gd_resource type="SpriteFrames" format=3 uid="uid://s2xmt6mpri5c"]
[ext_resource type="Texture2D" uid="uid://cjxrw1p7eh82i" path="res://assets/characters/ankarde/Diego-idle-trimmed.png" id="1_idle"]
[ext_resource type="Texture2D" uid="uid://dg1x17ci14p4f" path="res://assets/characters/ankarde/Diego-walk-trimmed.png" id="2_walk"]
+16 -20
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=8 format=3 uid="uid://nwbjxttgghpq"]
[gd_scene format=3 uid="uid://nwbjxttgghpq"]
[ext_resource type="Script" uid="uid://dccfebno1gvh7" path="res://player/player.gd" id="1_player"]
[ext_resource type="SpriteFrames" path="res://player/characters/shared/prototype_sprite_frames.tres" id="2_frames"]
[ext_resource type="SpriteFrames" uid="uid://s2xmt6mpri5c" path="res://player/characters/shared/prototype_sprite_frames.tres" id="2_frames"]
[ext_resource type="Script" uid="uid://kg3i7b0dj2p8" path="res://player/camera_2d.gd" id="3_camera"]
[ext_resource type="Resource" path="res://player/characters/singer.tres" id="4_character"]
[ext_resource type="PackedScene" path="res://ui/hud/player_health_hud.tscn" id="5_health_hud"]
@@ -10,54 +10,50 @@
[sub_resource type="RectangleShape2D" id="PlayerShape"]
size = Vector2(26, 46)
[node name="Player" type="CharacterBody2D" groups=["player"]]
[node name="Player" type="CharacterBody2D" unique_id=730885194 groups=["player"]]
z_index = 1
collision_layer = 2
collision_mask = 1
script = ExtResource("1_player")
character_data = ExtResource("4_character")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=589859800]
position = Vector2(0.5, 5.5)
shape = SubResource("PlayerShape")
[node name="Hurtbox" type="Area2D" parent="."]
[node name="Hurtbox" type="Area2D" parent="." unique_id=542287926]
collision_layer = 8
collision_mask = 0
monitoring = false
monitorable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox" unique_id=813209683]
position = Vector2(0.5, 5.5)
shape = SubResource("PlayerShape")
[node name="PunchHitbox" type="Area2D" parent="."]
[node name="PunchHitbox" type="Area2D" parent="." unique_id=184501519]
collision_layer = 0
collision_mask = 16
monitoring = true
monitorable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="PunchHitbox"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PunchHitbox" unique_id=126348432]
[node name="GroundPoundHitbox" type="Area2D" parent="."]
[node name="GroundPoundHitbox" type="Area2D" parent="." unique_id=1822904824]
collision_layer = 0
collision_mask = 16
monitoring = true
monitorable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="GroundPoundHitbox"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="GroundPoundHitbox" unique_id=2120510285]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1502470275]
z_index = -1
scale = Vector2(0.321005, 0.321005)
sprite_frames = ExtResource("2_frames")
animation = &"idle"
speed_scale = 2.0
[node name="Camera2D" type="Camera2D" parent="."]
scale = Vector2(0.5, 0.5)
zoom = Vector2(3.0, 3.0)
[node name="Camera2D" type="Camera2D" parent="." unique_id=902833396]
zoom = Vector2(3, 3)
script = ExtResource("3_camera")
[node name="PlayerHealthHUD" parent="." instance=ExtResource("5_health_hud")]
[node name="SpecialChargeHUD" parent="." instance=ExtResource("6_special_charge_hud")]
[node name="PlayerHealthHUD" parent="." unique_id=660684564 instance=ExtResource("5_health_hud")]
[node name="SpecialChargeHUD" parent="." unique_id=1505444607 instance=ExtResource("6_special_charge_hud")]
+56 -58
View File
@@ -1,10 +1,10 @@
[gd_scene load_steps=8 format=3]
[gd_scene format=3 uid="uid://g7h185yageqr"]
[ext_resource type="Script" path="res://ui/mobile_controls/mobile_controls.gd" id="1_controls"]
[ext_resource type="Texture2D" path="res://assets/ui/mobile_controls/left-arrow.png" id="2_left"]
[ext_resource type="Texture2D" path="res://assets/ui/mobile_controls/right-arrow.png" id="3_right"]
[ext_resource type="Texture2D" path="res://assets/ui/mobile_controls/top-arrow.png" id="4_jump"]
[ext_resource type="Texture2D" path="res://assets/ui/mobile_controls/attack.png" id="5_attack"]
[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="StyleBoxFlat" id="ButtonNormal"]
bg_color = Color(0.65, 0.04, 0.04, 0.28)
@@ -30,11 +30,11 @@ corner_radius_top_right = 14
corner_radius_bottom_right = 14
corner_radius_bottom_left = 14
[node name="MobileControls" type="CanvasLayer"]
[node name="MobileControls" type="CanvasLayer" unique_id=478431491]
layer = 100
script = ExtResource("1_controls")
[node name="Controls" type="Control" parent="."]
[node name="Controls" type="Control" parent="." unique_id=1754744981]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@@ -43,140 +43,138 @@ grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="MoveLeft" type="Button" parent="Controls"]
layout_mode = 0
[node name="MoveLeft" type="Button" parent="Controls" unique_id=981068385]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 34.0
offset_top = -132.0
offset_right = 134.0
offset_left = 50.0
offset_top = -170.0
offset_right = 188.0
offset_bottom = -32.0
grow_vertical = 0
focus_mode = 0
keep_pressed_outside = true
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_styles/normal = SubResource("ButtonNormal")
theme_override_styles/hover = 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
icon_max_width = 48
[node name="MoveRight" type="Button" parent="Controls"]
layout_mode = 0
[node name="MoveRight" type="Button" parent="Controls" unique_id=561780368]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 150.0
offset_top = -132.0
offset_right = 250.0
offset_left = 208.0
offset_top = -170.0
offset_right = 346.0
offset_bottom = -32.0
grow_vertical = 0
focus_mode = 0
keep_pressed_outside = true
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_styles/normal = SubResource("ButtonNormal")
theme_override_styles/hover = 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
icon_max_width = 48
[node name="Jump" type="Button" parent="Controls"]
layout_mode = 0
[node name="Jump" type="Button" parent="Controls" unique_id=1396737393]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -264.0
offset_left = -280.0
offset_top = -132.0
offset_right = -154.0
offset_right = -170.0
offset_bottom = -32.0
grow_horizontal = 0
grow_vertical = 0
focus_mode = 0
keep_pressed_outside = true
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_styles/normal = SubResource("ButtonNormal")
theme_override_styles/hover = 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
icon_max_width = 48
[node name="Attack" type="Button" parent="Controls"]
layout_mode = 0
[node name="Attack" type="Button" parent="Controls" unique_id=514469811]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -138.0
offset_left = -154.0
offset_top = -132.0
offset_right = -28.0
offset_right = -44.0
offset_bottom = -32.0
grow_horizontal = 0
grow_vertical = 0
focus_mode = 0
keep_pressed_outside = true
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_styles/normal = SubResource("ButtonNormal")
theme_override_styles/hover = 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
icon_max_width = 48
[node name="GroundPound" type="Button" parent="Controls"]
layout_mode = 0
[node name="GroundPound" type="Button" parent="Controls" unique_id=655126227]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -264.0
offset_top = -200.0
offset_right = -154.0
offset_bottom = -100.0
offset_left = -280.0
offset_top = -256.0
offset_right = -170.0
offset_bottom = -156.0
grow_horizontal = 0
grow_vertical = 0
focus_mode = 0
keep_pressed_outside = true
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_styles/normal = SubResource("ButtonNormal")
theme_override_styles/hover = SubResource("ButtonNormal")
theme_override_styles/pressed = SubResource("ButtonPressed")
theme_override_styles/hover = SubResource("ButtonNormal")
keep_pressed_outside = true
text = "GP"
horizontal_alignment = 1
vertical_alignment = 1
[node name="SpecialAttack" type="Button" parent="Controls"]
layout_mode = 0
[node name="SpecialAttack" type="Button" parent="Controls" unique_id=2065869646]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -138.0
offset_top = -200.0
offset_right = -28.0
offset_bottom = -100.0
offset_left = -154.0
offset_top = -256.0
offset_right = -44.0
offset_bottom = -156.0
grow_horizontal = 0
grow_vertical = 0
focus_mode = 0
keep_pressed_outside = true
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_styles/normal = SubResource("ButtonNormal")
theme_override_styles/hover = SubResource("ButtonNormal")
theme_override_styles/pressed = SubResource("ButtonPressed")
theme_override_styles/hover = SubResource("ButtonNormal")
keep_pressed_outside = true
text = "SP"
horizontal_alignment = 1
vertical_alignment = 1