diff --git a/enemies/walker/walker.gd b/enemies/walker/walker.gd index d11f804..66420ba 100644 --- a/enemies/walker/walker.gd +++ b/enemies/walker/walker.gd @@ -35,7 +35,7 @@ enum AttackState { @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 ## Minimum time between the beginning of two attacks. diff --git a/player/characters/bassist.tres b/player/characters/bassist.tres index ad41200..43e4594 100644 --- a/player/characters/bassist.tres +++ b/player/characters/bassist.tres @@ -8,7 +8,7 @@ script = ExtResource("1_data") id = &"bassist" display_name = "Bassist" sprite_frames = ExtResource("2_frames") -max_health = 5 +max_health = 100 move_speed = 400.0 jump_velocity = -600.0 basic_attack_damage = 1 diff --git a/player/characters/drummer.tres b/player/characters/drummer.tres index b83cfa8..6cb72ca 100644 --- a/player/characters/drummer.tres +++ b/player/characters/drummer.tres @@ -8,7 +8,7 @@ script = ExtResource("1_data") id = &"drummer" display_name = "Drummer" sprite_frames = ExtResource("2_frames") -max_health = 5 +max_health = 100 move_speed = 400.0 jump_velocity = -600.0 basic_attack_damage = 1 diff --git a/player/characters/guitarist.tres b/player/characters/guitarist.tres index 2beb00f..be82356 100644 --- a/player/characters/guitarist.tres +++ b/player/characters/guitarist.tres @@ -8,7 +8,7 @@ script = ExtResource("1_data") id = &"guitarist" display_name = "Guitarist" sprite_frames = ExtResource("2_frames") -max_health = 5 +max_health = 100 move_speed = 400.0 jump_velocity = -600.0 basic_attack_damage = 1 diff --git a/player/characters/singer.tres b/player/characters/singer.tres index 6eb6aaa..b181d2e 100644 --- a/player/characters/singer.tres +++ b/player/characters/singer.tres @@ -8,7 +8,7 @@ script = ExtResource("1_data") id = &"singer" display_name = "Singer" sprite_frames = ExtResource("2_frames") -max_health = 5 +max_health = 100 move_speed = 400.0 jump_velocity = -600.0 basic_attack_damage = 1 diff --git a/ui/mobile_controls/mobile_controls.gd b/ui/mobile_controls/mobile_controls.gd index f783b4c..c3f03f5 100644 --- a/ui/mobile_controls/mobile_controls.gd +++ b/ui/mobile_controls/mobile_controls.gd @@ -18,6 +18,8 @@ extends CanvasLayer @onready var move_right_button: Button = $Controls/MoveRight @onready var jump_button: Button = $Controls/Jump @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 @@ -25,6 +27,8 @@ var direction_touch_index: int = -1 func _ready() -> void: _bind_button(jump_button, &"jump") _bind_button(attack_button, &"attack") + _bind_button(ground_pound_button, &"ground_pound") + _bind_button(special_attack_button, &"special_attack") func _input(event: InputEvent) -> void: @@ -53,6 +57,8 @@ func _exit_tree() -> void: Input.action_release(&"move_right") Input.action_release(&"jump") Input.action_release(&"attack") + Input.action_release(&"ground_pound") + Input.action_release(&"special_attack") func _direction_at(position: Vector2) -> StringName: diff --git a/ui/mobile_controls/mobile_controls.tscn b/ui/mobile_controls/mobile_controls.tscn index 84794ba..910d765 100644 --- a/ui/mobile_controls/mobile_controls.tscn +++ b/ui/mobile_controls/mobile_controls.tscn @@ -132,3 +132,51 @@ theme_override_styles/pressed = SubResource("ButtonPressed") icon = ExtResource("5_attack") expand_icon = true 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