Compare commits

Author SHA1 Message Date
ankdev 18b0ca30c2 Merge pull request '➕ADD: vida y daño para debug al enemigo' (#7) from feature/ia_automated_test into main
Android Debug APK / build (push) Successful in 44s
Reviewed-on: #7
2026-10-16 10:59:29 +00:00
Diego De la Viuda Llorente ba4db3b47e ➕ADD: vida y daño para debug al enemigo 2026-10-16 12:58:43 +02:00
ankdev 70ac0c8f3d Merge pull request 'Feature/ia automated test' (#6) from feature/ia_automated_test into main
Android Debug APK / build (push) Successful in 40s
Reviewed-on: #6
2026-10-16 10:49:37 +00:00
Diego De la Viuda Llorente b66bef09cb ♻️REFACTOR: Modificados los parametros de vida base 2026-10-16 12:49:11 +02:00
Diego De la Viuda Llorente cf42886682 ➕ADD: botones para los ataques especiales 2026-10-16 12:47:27 +02:00
ankdev abb3e5afa0 Merge pull request '🐛FIX: Arreglado fallo con fill_alpha' (#5) from feature/ia_automated_test into main
Android Debug APK / build (push) Successful in 50s
Reviewed-on: #5
2026-10-16 10:42:13 +00:00
Diego De la Viuda Llorente 18b0fae498 🐛FIX: Arreglado fallo con fill_alpha 2026-10-16 12:33:16 +02:00
ankdev 385be4e84d Merge pull request '➕ADD: Ataques y hud de energia mejorados' (#4) from feature/ia_automated_test into main
Android Debug APK / build (push) Successful in 51s
Reviewed-on: #4
2026-10-16 10:20:46 +00:00
Diego De la Viuda Llorente 9b32d97d1f ➕ADD: Ataques y hud de energia mejorados 2026-10-16 12:18:43 +02:00
ankdev 5d87de8ca1 Merge pull request 'Genera artefactos' (#3) from feature/first_player_and_enemy into main
Android Debug APK / build (push) Successful in 44s
Reviewed-on: #3
2026-10-05 16:31:59 +00:00
ankdev f5cc3b65b2 Merge pull request 'Feature/first player and enemy' (#2) from feature/first_player_and_enemy into main
Android Debug APK / build (push) Successful in 34s
Reviewed-on: #2
2026-10-05 16:20:54 +00:00
13 changed files with 363 additions and 16 deletions

No files matched your search

+60 -1
View File
@@ -35,7 +35,7 @@ enum AttackState {
@export_category("Combat") @export_category("Combat")
@export_range(1, 100, 1) var max_health: int = 3 @export_range(1, 100, 1) var max_health: int = 20
@export_range(0, 100, 1) var attack_damage: int = 1 @export_range(0, 100, 1) var attack_damage: int = 1
## Minimum time between the beginning of two attacks. ## Minimum time between the beginning of two attacks.
@@ -92,6 +92,10 @@ enum AttackState {
## The orange area during windup previews the complete attack sweep. ## The orange area during windup previews the complete attack sweep.
@export var show_debug_hitboxes: bool = true @export var show_debug_hitboxes: bool = true
## Shows the enemy health bar above its head and floating damage numbers when
## it is hit. Purely debug: can be disabled once final art and UI exist.
@export var show_debug_enemy_info: bool = true
# ============================================================================ # ============================================================================
# NODES # NODES
@@ -127,6 +131,10 @@ var target: Node2D
## Prevents one sweep from damaging the same target once per physics frame. ## Prevents one sweep from damaging the same target once per physics frame.
var attack_hit_targets: Dictionary = {} var attack_hit_targets: Dictionary = {}
## Floating damage numbers shown above the enemy when it takes damage.
## Each entry: { text: String, local_pos: Vector2, timer: float }
var _damage_texts: Array = []
func _ready() -> void: func _ready() -> void:
spawn_position = global_position spawn_position = global_position
@@ -149,6 +157,7 @@ func _physics_process(delta: float) -> void:
return return
_update_timers(delta) _update_timers(delta)
_update_damage_texts(delta)
_apply_gravity(delta) _apply_gravity(delta)
# The enemy deliberately does nothing until the camera has shown it once. # The enemy deliberately does nothing until the camera has shown it once.
@@ -378,6 +387,15 @@ func _update_timers(delta: float) -> void:
hit_stun_timer = max(hit_stun_timer - delta, 0.0) hit_stun_timer = max(hit_stun_timer - delta, 0.0)
# Updates floating damage numbers: they drift upward and fade out over time.
func _update_damage_texts(delta: float) -> void:
for i in range(_damage_texts.size() - 1, -1, -1):
var entry: Dictionary = _damage_texts[i]
entry.timer = max(entry.timer - delta, 0.0)
entry.local_pos.y -= 40.0 * delta
if entry.timer <= 0.0:
_damage_texts.remove_at(i)
# ============================================================================ # ============================================================================
# DAMAGE AND RESPAWN # DAMAGE AND RESPAWN
# ============================================================================ # ============================================================================
@@ -388,6 +406,14 @@ func take_damage(amount: int, source_position: Vector2) -> void:
current_health = max(current_health - amount, 0) current_health = max(current_health - amount, 0)
# Floating damage number (debug only).
if show_debug_enemy_info:
_damage_texts.append({
"text": str(amount),
"local_pos": Vector2(0, -25),
"timer": 1.0
})
if current_health == 0: if current_health == 0:
_die() _die()
return return
@@ -460,6 +486,11 @@ func _draw() -> void:
Color(0.85, 0.85, 0.90, 1.0) Color(0.85, 0.85, 0.90, 1.0)
) )
# Enemy health bar and floating damage numbers (debug overlay).
if show_debug_enemy_info:
_draw_enemy_health_bar()
_draw_damage_texts()
if not show_debug_hitboxes: if not show_debug_hitboxes:
return return
@@ -516,3 +547,31 @@ func _draw_rectangle_collision(
var rect: Rect2 = Rect2(center - rectangle.size / 2.0, rectangle.size) var rect: Rect2 = Rect2(center - rectangle.size / 2.0, rectangle.size)
draw_rect(rect, fill_color, true) draw_rect(rect, fill_color, true)
draw_rect(rect, outline_color, false, 2.0) draw_rect(rect, outline_color, false, 2.0)
# Draws a small horizontal health bar just above the enemy's head.
func _draw_enemy_health_bar() -> void:
var bar_width: float = 40.0
var bar_height: float = 5.0
var bar_pos: Vector2 = Vector2(-bar_width * 0.5, -48.0)
# Background.
draw_rect(Rect2(bar_pos, Vector2(bar_width, bar_height)), Color(0.2, 0.2, 0.2, 0.8), true)
# Fill.
var fill_ratio: float = current_health / max_health if max_health > 0 else 0.0
draw_rect(
Rect2(bar_pos, Vector2(bar_width * fill_ratio, bar_height)),
Color(0.85, 0.2, 0.2, 0.95),
true
)
# Border.
draw_rect(Rect2(bar_pos, Vector2(bar_width, bar_height)), Color(1, 1, 1, 0.6), false, 1.0)
# Draws floating damage numbers that drift upward and fade out.
func _draw_damage_texts() -> void:
for entry in _damage_texts:
var alpha: float = clamp(entry.timer, 0.0, 1.0)
draw_string(
entry.local_pos,
entry.text,
Color(1, 1, 1, alpha)
)
+1 -1
View File
@@ -8,7 +8,7 @@ size = Vector2(42, 78)
[sub_resource type="RectangleShape2D" id="AttackShape"] [sub_resource type="RectangleShape2D" id="AttackShape"]
size = Vector2(50, 60) size = Vector2(50, 60)
[node name="Walker" type="CharacterBody2D"] [node name="Walker" type="CharacterBody2D" groups=["enemy"]]
collision_layer = 4 collision_layer = 4
collision_mask = 1 collision_mask = 1
script = ExtResource("1_walker") script = ExtResource("1_walker")
+1 -1
View File
@@ -8,7 +8,7 @@ script = ExtResource("1_data")
id = &"bassist" id = &"bassist"
display_name = "Bassist" display_name = "Bassist"
sprite_frames = ExtResource("2_frames") sprite_frames = ExtResource("2_frames")
max_health = 5 max_health = 100
move_speed = 400.0 move_speed = 400.0
jump_velocity = -600.0 jump_velocity = -600.0
basic_attack_damage = 1 basic_attack_damage = 1
+1 -1
View File
@@ -8,7 +8,7 @@ script = ExtResource("1_data")
id = &"drummer" id = &"drummer"
display_name = "Drummer" display_name = "Drummer"
sprite_frames = ExtResource("2_frames") sprite_frames = ExtResource("2_frames")
max_health = 5 max_health = 100
move_speed = 400.0 move_speed = 400.0
jump_velocity = -600.0 jump_velocity = -600.0
basic_attack_damage = 1 basic_attack_damage = 1
+1 -1
View File
@@ -8,7 +8,7 @@ script = ExtResource("1_data")
id = &"guitarist" id = &"guitarist"
display_name = "Guitarist" display_name = "Guitarist"
sprite_frames = ExtResource("2_frames") sprite_frames = ExtResource("2_frames")
max_health = 5 max_health = 100
move_speed = 400.0 move_speed = 400.0
jump_velocity = -600.0 jump_velocity = -600.0
basic_attack_damage = 1 basic_attack_damage = 1
+1 -1
View File
@@ -8,7 +8,7 @@ script = ExtResource("1_data")
id = &"singer" id = &"singer"
display_name = "Singer" display_name = "Singer"
sprite_frames = ExtResource("2_frames") sprite_frames = ExtResource("2_frames")
max_health = 5 max_health = 100
move_speed = 400.0 move_speed = 400.0
jump_velocity = -600.0 jump_velocity = -600.0
basic_attack_damage = 1 basic_attack_damage = 1
+164 -9
View File
@@ -3,6 +3,7 @@ extends CharacterBody2D
signal health_changed(current_health: int, max_health: int) signal health_changed(current_health: int, max_health: int)
signal died signal died
signal special_charge_changed(current_charge: int, max_charge: int)
# Collision layers used by this first playable slice. # Collision layers used by this first playable slice.
@@ -111,6 +112,33 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
@export var ground_pound_radius: float = 85.0 @export var ground_pound_radius: float = 85.0
@export var ground_pound_offset: Vector2 = Vector2(0.0, 28.0) @export var ground_pound_offset: Vector2 = Vector2(0.0, 28.0)
## Damage per pixel of jump height. Higher jumps deal more damage, up to the max.
@export var ground_pound_damage_per_pixel: float = 0.03
@export_range(1, 100, 1) var ground_pound_min_damage: int = 1
@export_range(1, 100, 1) var ground_pound_max_damage: int = 10
# ============================================================================
# SPECIAL ATTACK
# ============================================================================
@export_category("Special Attack")
## Maximum charge of the special meter (0-100).
@export_range(0, 100, 1) var special_max_charge: int = 100
## Charge gained when an enemy dies.
@export_range(0, 100, 1) var special_charge_per_kill: int = 25
## Minimum damage dealt by the special (scales up with charge).
@export_range(0, 100, 1) var special_min_damage: int = 3
## Maximum damage dealt by the special (at full charge, point-blank).
@export_range(0, 100, 1) var special_max_damage: int = 8
## Radius of the radial special attack in pixels.
@export var special_radius: float = 200.0
# ============================================================================ # ============================================================================
# DEBUG # DEBUG
@@ -156,10 +184,18 @@ var ground_pound_active: bool = false
var ground_pound_debug_timer: float = 0.0 var ground_pound_debug_timer: float = 0.0
var is_dead: bool = false var is_dead: bool = false
# Tracks the highest point reached since leaving the ground, used to scale
# ground pound damage by jump height instead of fall distance.
var _jump_height_tracking: bool = false
var _jump_start_position: Vector2
var _jump_peak_height: float = 0.0
## Prevents one target from receiving damage every physics frame during the ## Prevents one target from receiving damage every physics frame during the
## same punch. A new punch starts with an empty set again. ## same punch. A new punch starts with an empty set again.
var punch_hit_targets: Dictionary = {} var punch_hit_targets: Dictionary = {}
var special_charge: int = 0
func _ready() -> void: func _ready() -> void:
if character_data == null: if character_data == null:
@@ -174,6 +210,10 @@ func _ready() -> void:
_update_facing() _update_facing()
_update_animation() _update_animation()
health_changed.emit(current_health, character_data.max_health) health_changed.emit(current_health, character_data.max_health)
special_charge_changed.emit(special_charge, special_max_charge)
# Conecta a los enemigos que ya estén en el árbol. Si se añaden más tarde,
# se conectarán cuando mueran mediante el grupo "enemy".
_connect_to_enemies()
func _physics_process(delta: float) -> void: func _physics_process(delta: float) -> void:
@@ -192,6 +232,18 @@ func _physics_process(delta: float) -> void:
move_and_slide() move_and_slide()
# Track the highest point reached since leaving the ground, so ground pound
# damage is based on jump height rather than the current fall distance.
if not is_on_floor():
if not _jump_height_tracking:
_jump_height_tracking = true
_jump_start_position = global_position
_jump_peak_height = global_position.y
else:
_jump_peak_height = min(_jump_peak_height, global_position.y)
elif _jump_height_tracking:
_jump_height_tracking = false
# Landing is only reliable after move_and_slide() has resolved collisions. # Landing is only reliable after move_and_slide() has resolved collisions.
if ground_pound_active and not was_on_floor and is_on_floor(): if ground_pound_active and not was_on_floor and is_on_floor():
_ground_pound_impact() _ground_pound_impact()
@@ -302,16 +354,20 @@ func _handle_jump() -> void:
# ============================================================================ # ============================================================================
func _handle_attack_input() -> void: func _handle_attack_input() -> void:
if not Input.is_action_just_pressed("attack"): if Input.is_action_just_pressed("attack"):
return
if attack_cooldown_timer > 0.0:
return
if is_on_floor():
_start_punch() _start_punch()
else: return
if Input.is_action_just_pressed("ground_pound"):
# The ground pound is an air attack: it only triggers while jumping or
# falling, so it never replaces a grounded punch.
if not is_on_floor():
_start_ground_pound() _start_ground_pound()
return
if Input.is_action_just_pressed("special_attack"):
_start_special_attack()
return
# ============================================================================ # ============================================================================
@@ -352,10 +408,88 @@ func _ground_pound_impact() -> void:
ground_pound_active = false ground_pound_active = false
ground_pound_debug_timer = debug_impact_duration ground_pound_debug_timer = debug_impact_duration
# Damage scales with jump height: how high the player rose from the takeoff
# point, clamped between the min and max damage.
var height_reached: float = _jump_start_position.y - _jump_peak_height
if height_reached < 0.0:
height_reached = 0.0
var damage: int = clamp(
int(height_reached * ground_pound_damage_per_pixel),
ground_pound_min_damage,
ground_pound_max_damage
)
var hit_targets: Dictionary = {} var hit_targets: Dictionary = {}
for area in ground_pound_hitbox.get_overlapping_areas(): for area in ground_pound_hitbox.get_overlapping_areas():
_damage_target(area, character_data.air_attack_damage, hit_targets) _damage_target(area, damage, hit_targets)
# ============================================================================
# SPECIAL ATTACK
# ============================================================================
func _start_special_attack() -> void:
if is_dead:
return
if special_charge < special_max_charge:
return
# Consume the full charge.
special_charge = 0
special_charge_changed.emit(special_charge, special_max_charge)
_apply_special_attack()
func _apply_special_attack() -> void:
# The special requires full charge, so charge_ratio is always 1.0 here.
# Partial-charge support can be added later if desired.
var charge_ratio: float = 1.0
var hit_targets: Dictionary = {}
for enemy in get_tree().get_nodes_in_group("enemy"):
if not is_instance_valid(enemy):
continue
if not enemy.has_method("take_damage"):
continue
var distance: float = global_position.distance_to(enemy.global_position)
if distance > special_radius:
continue
# Damage falls off with distance: maximum at the player, zero at the edge.
var distance_factor: float = 1.0 - clamp(distance / special_radius, 0.0, 1.0)
var base_damage: float = lerp(special_min_damage, special_max_damage, charge_ratio)
var damage: int = int(base_damage * distance_factor)
if damage < 1:
damage = 1
var enemy_id: int = enemy.get_instance_id()
if hit_targets.has(enemy_id):
continue
hit_targets[enemy_id] = true
enemy.take_damage(damage, global_position)
func _connect_to_enemies() -> void:
for enemy in get_tree().get_nodes_in_group("enemy"):
if is_instance_valid(enemy) and enemy.has_signal(&"died"):
enemy.died.connect(_on_enemy_died.bind(enemy))
func _on_enemy_died(enemy: Node) -> void:
if is_dead:
return
special_charge = min(special_charge + special_charge_per_kill, special_max_charge)
special_charge_changed.emit(special_charge, special_max_charge)
# ============================================================================ # ============================================================================
@@ -502,6 +636,27 @@ func _draw() -> void:
2.0 2.0
) )
# Special: show the radial damage area. Brighter when fully charged.
var fill_alpha: float = 0.08
var outline_alpha: float = 0.35
if special_charge >= special_max_charge:
fill_alpha = 0.18
outline_alpha = 0.85
draw_circle(
Vector2.ZERO,
special_radius,
Color(1.0, 0.6, 0.05, fill_alpha)
)
draw_arc(
Vector2.ZERO,
special_radius,
0.0,
TAU,
48,
Color(1.0, 0.6, 0.05, outline_alpha),
2.0
)
func _draw_rectangle_collision( func _draw_rectangle_collision(
collision: CollisionShape2D, collision: CollisionShape2D,
+3 -1
View File
@@ -1,10 +1,11 @@
[gd_scene load_steps=7 format=3 uid="uid://nwbjxttgghpq"] [gd_scene load_steps=8 format=3 uid="uid://nwbjxttgghpq"]
[ext_resource type="Script" uid="uid://dccfebno1gvh7" path="res://player/player.gd" id="1_player"] [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" 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="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="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"] [ext_resource type="PackedScene" path="res://ui/hud/player_health_hud.tscn" id="5_health_hud"]
[ext_resource type="PackedScene" path="res://ui/hud/special_charge_hud.tscn" id="6_special_charge_hud"]
[sub_resource type="RectangleShape2D" id="PlayerShape"] [sub_resource type="RectangleShape2D" id="PlayerShape"]
size = Vector2(65, 115) size = Vector2(65, 115)
@@ -59,3 +60,4 @@ zoom = Vector2(2, 2)
script = ExtResource("3_camera") script = ExtResource("3_camera")
[node name="PlayerHealthHUD" parent="." instance=ExtResource("5_health_hud")] [node name="PlayerHealthHUD" parent="." instance=ExtResource("5_health_hud")]
[node name="SpecialChargeHUD" parent="." instance=ExtResource("6_special_charge_hud")]
+12
View File
@@ -51,6 +51,18 @@ attack={
] ]
} }
ground_pound={
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":75,"physical_keycode":75,"key_label":0,"unicode":107,"location":0,"echo":false,"script":null)
]
}
special_attack={
"deadzone": 0.2,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":76,"physical_keycode":76,"key_label":0,"unicode":108,"location":0,"echo":false,"script":null)
]
}
[layer_names] [layer_names]
2d_physics/layer_1="World" 2d_physics/layer_1="World"
+28
View File
@@ -0,0 +1,28 @@
extends CanvasLayer
## Minimal HUD showing the player's special attack charge.
##
## Expects to be a child of a Player that exposes a `special_charge_changed`
## signal, just like PlayerHealthHUD expects `health_changed`.
@onready var special_bar: ProgressBar = $HUD/SpecialBar
@onready var special_label: Label = $HUD/SpecialBar/SpecialLabel
func _ready() -> void:
var player: Node = get_parent()
if player == null or not player.has_signal(&"special_charge_changed"):
push_error("SpecialChargeHUD must be a child of a Player with special_charge_changed signal.")
return
# Child _ready() runs before Player._ready(). We connect here first and the
# Player will emit its initial charge a moment later during its _ready().
player.connect(&"special_charge_changed", _on_special_charge_changed)
func _on_special_charge_changed(current_charge: int, max_charge: int) -> void:
special_bar.max_value = float(max_charge)
special_bar.value = float(current_charge)
special_label.text = "SPECIAL %d%%" % [current_charge]
+37
View File
@@ -0,0 +1,37 @@
[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://ui/hud/special_charge_hud.gd" id="1_hud"]
[node name="SpecialChargeHUD" type="CanvasLayer"]
layer = 95
script = ExtResource("1_hud")
[node name="HUD" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
[node name="SpecialBar" type="ProgressBar" parent="HUD"]
offset_left = 18.0
offset_top = 44.0
offset_right = 220.0
offset_bottom = 64.0
max_value = 100.0
value = 0.0
show_percentage = false
[node name="SpecialLabel" type="Label" parent="HUD/SpecialBar"]
layout_mode = 1
anchors_preset = 15
offset_left = 4.0
offset_top = 2.0
text = "SPECIAL"
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_colors/font_shadow_color = Color(0, 0, 0, 0.9)
theme_override_constants/shadow_offset_x = 1
theme_override_constants/shadow_offset_y = 1
theme_override_font_sizes/font_size = 14
horizontal_alignment = 1
vertical_alignment = 1
+6
View File
@@ -18,6 +18,8 @@ extends CanvasLayer
@onready var move_right_button: Button = $Controls/MoveRight @onready var move_right_button: Button = $Controls/MoveRight
@onready var jump_button: Button = $Controls/Jump @onready var jump_button: Button = $Controls/Jump
@onready var attack_button: Button = $Controls/Attack @onready var attack_button: Button = $Controls/Attack
@onready var ground_pound_button: Button = $Controls/GroundPound
@onready var special_attack_button: Button = $Controls/SpecialAttack
var direction_touch_index: int = -1 var direction_touch_index: int = -1
@@ -25,6 +27,8 @@ var direction_touch_index: int = -1
func _ready() -> void: func _ready() -> void:
_bind_button(jump_button, &"jump") _bind_button(jump_button, &"jump")
_bind_button(attack_button, &"attack") _bind_button(attack_button, &"attack")
_bind_button(ground_pound_button, &"ground_pound")
_bind_button(special_attack_button, &"special_attack")
func _input(event: InputEvent) -> void: func _input(event: InputEvent) -> void:
@@ -53,6 +57,8 @@ func _exit_tree() -> void:
Input.action_release(&"move_right") Input.action_release(&"move_right")
Input.action_release(&"jump") Input.action_release(&"jump")
Input.action_release(&"attack") Input.action_release(&"attack")
Input.action_release(&"ground_pound")
Input.action_release(&"special_attack")
func _direction_at(position: Vector2) -> StringName: func _direction_at(position: Vector2) -> StringName:
+48
View File
@@ -132,3 +132,51 @@ theme_override_styles/pressed = SubResource("ButtonPressed")
icon = ExtResource("5_attack") icon = ExtResource("5_attack")
expand_icon = true expand_icon = true
icon_max_width = 48 icon_max_width = 48
[node name="GroundPound" type="Button" parent="Controls"]
layout_mode = 0
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
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")
text = "GP"
horizontal_alignment = 1
vertical_alignment = 1
[node name="SpecialAttack" type="Button" parent="Controls"]
layout_mode = 0
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
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")
text = "SP"
horizontal_alignment = 1
vertical_alignment = 1