Merge pull request 'Ajustes de camara' (#16) from feature/ia_automated_test into main
Android Debug APK / build (push) Successful in 37s
Android Debug APK / build (push) Successful in 37s
Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
commit
511e317978
9 files changed
+42
-42
No files matched your search
@@ -25,7 +25,7 @@ enum AttackState {
|
||||
|
||||
@export_category("Movement")
|
||||
|
||||
@export var move_speed: float = 21.5
|
||||
@export var move_speed: float = 78.0
|
||||
@export var max_fall_speed: float = 800.0
|
||||
|
||||
|
||||
@@ -44,11 +44,11 @@ enum AttackState {
|
||||
## Horizontal distance at which the Walker stops chasing and prepares a hit.
|
||||
## This is intentionally wider than the final hitbox so entering range does not
|
||||
## mean taking unavoidable damage.
|
||||
@export var attack_trigger_distance: float = 63.0
|
||||
@export var attack_trigger_distance: float = 140.0
|
||||
|
||||
## Keeps the Walker from starting a ground attack against a player far above or
|
||||
## below it.
|
||||
@export var attack_vertical_tolerance: float = 35.0
|
||||
@export var attack_vertical_tolerance: float = 80.0
|
||||
|
||||
## Readable pause before the dangerous part of the attack starts. During this
|
||||
## time the direction is locked, so moving behind the enemy is a valid dodge.
|
||||
@@ -61,10 +61,10 @@ enum AttackState {
|
||||
@export var attack_recovery_duration: float = 0.30
|
||||
|
||||
## Where the hitbox starts, relative to the enemy while facing right.
|
||||
@export var attack_start_offset: Vector2 = Vector2(17.0, 0.0)
|
||||
@export var attack_start_offset: Vector2 = Vector2(34.0, 0.0)
|
||||
|
||||
## Furthest horizontal position reached by the moving hitbox.
|
||||
@export var attack_reach: float = 53.0
|
||||
@export var attack_reach: float = 120.0
|
||||
|
||||
## A successful player hit briefly interrupts the Walker. This makes attacking
|
||||
## during its windup useful instead of forcing an unavoidable damage trade.
|
||||
@@ -72,7 +72,7 @@ enum AttackState {
|
||||
|
||||
## Strength of the knockback applied per point of damage. The final push is
|
||||
## divided by the enemy's max health, so tougher enemies move less.
|
||||
@export var knockback_strength: float = 250.0
|
||||
@export var knockback_strength: float = 400.0
|
||||
|
||||
## How long the knockback impulse lasts before friction brings the enemy to a halt.
|
||||
@export var knockback_duration: float = 0.4
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
[ext_resource type="Script" path="res://enemies/walker/walker.gd" id="1_walker"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="BodyShape"]
|
||||
size = Vector2(17, 31)
|
||||
size = Vector2(28, 52)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="AttackShape"]
|
||||
size = Vector2(20, 24)
|
||||
size = Vector2(32, 40)
|
||||
|
||||
[node name="Walker" type="CharacterBody2D" groups=["enemy"]]
|
||||
collision_layer = 4
|
||||
@@ -36,10 +36,10 @@ monitorable = false
|
||||
shape = SubResource("AttackShape")
|
||||
|
||||
[node name="FloorProbe" type="RayCast2D" parent="."]
|
||||
position = Vector2(10, 14)
|
||||
target_position = Vector2(0, 14)
|
||||
position = Vector2(17, 24)
|
||||
target_position = Vector2(0, 24)
|
||||
collision_mask = 1
|
||||
enabled = true
|
||||
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||
rect = Rect2(-13, -19, 26, 38)
|
||||
rect = Rect2(-17, -25, 34, 50)
|
||||
+2
-2
@@ -6,5 +6,5 @@ extends Camera2D
|
||||
func _ready() -> void:
|
||||
limit_left = 0
|
||||
limit_top = 0
|
||||
limit_right = 3000
|
||||
limit_bottom = 2000
|
||||
limit_right = 4000
|
||||
limit_bottom = 2500
|
||||
@@ -9,7 +9,7 @@ id = &"bassist"
|
||||
display_name = "Bassist"
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
max_health = 100
|
||||
move_speed = 200.0
|
||||
jump_velocity = -300.0
|
||||
move_speed = 390.0
|
||||
jump_velocity = -600.0
|
||||
basic_attack_damage = 5
|
||||
air_attack_damage = 10
|
||||
@@ -9,7 +9,7 @@ id = &"drummer"
|
||||
display_name = "Drummer"
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
max_health = 100
|
||||
move_speed = 200.0
|
||||
jump_velocity = -300.0
|
||||
move_speed = 390.0
|
||||
jump_velocity = -600.0
|
||||
basic_attack_damage = 5
|
||||
air_attack_damage = 10
|
||||
@@ -9,7 +9,7 @@ id = &"guitarist"
|
||||
display_name = "Guitarist"
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
max_health = 100
|
||||
move_speed = 200.0
|
||||
jump_velocity = -300.0
|
||||
move_speed = 390.0
|
||||
jump_velocity = -600.0
|
||||
basic_attack_damage = 5
|
||||
air_attack_damage = 10
|
||||
@@ -9,7 +9,7 @@ id = &"singer"
|
||||
display_name = "Singer"
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
max_health = 100
|
||||
move_speed = 200.0
|
||||
jump_velocity = -300.0
|
||||
move_speed = 390.0
|
||||
jump_velocity = -600.0
|
||||
basic_attack_damage = 5
|
||||
air_attack_damage = 10
|
||||
+16
-16
@@ -34,19 +34,19 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
||||
@export_category("Movement")
|
||||
|
||||
## Reaches full running speed quickly, but not instantly.
|
||||
@export var ground_acceleration: float = 1800.0
|
||||
@export var ground_acceleration: float = 4000.0
|
||||
|
||||
## Used when there is no horizontal input. Slightly stronger than acceleration
|
||||
## so releasing the controls feels precise instead of slippery.
|
||||
@export var ground_friction: float = 2400.0
|
||||
@export var ground_friction: float = 5000.0
|
||||
|
||||
## Braking used only when the player asks for the opposite direction. The
|
||||
## character loses the old momentum first and then accelerates the other way,
|
||||
## producing a small but readable turn delay.
|
||||
@export var turn_braking: float = 2800.0
|
||||
## producing a small but turning is snappy enough.
|
||||
@export var turn_braking: float = 5800.0
|
||||
|
||||
## Air control stays responsive but weaker than movement on the floor.
|
||||
@export var air_acceleration: float = 900.0
|
||||
@export var air_acceleration: float = 2000.0
|
||||
|
||||
|
||||
# ============================================================================
|
||||
@@ -56,17 +56,17 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
||||
@export_category("Jump")
|
||||
|
||||
## Allows a jump a few milliseconds after walking off a ledge.
|
||||
@export var coyote_time: float = 0.15
|
||||
@export var coyote_time: float = 0.17
|
||||
|
||||
## Remembers an early jump press just before landing.
|
||||
@export var jump_buffer_time: float = 0.15
|
||||
@export var jump_buffer_time: float = 0.17
|
||||
|
||||
## Releasing jump while rising cuts the jump short.
|
||||
@export_range(0.1, 1.0) var jump_cut_multiplier: float = 0.45
|
||||
@export_range(0.1, 1.0) var jump_cut_multiplier: float = 0.43
|
||||
|
||||
@export var gravity_multiplier: float = 1.0
|
||||
@export var fall_gravity_multiplier: float = 1.7
|
||||
@export var max_fall_speed: float = 800.0
|
||||
@export var fall_gravity_multiplier: float = 1.6
|
||||
@export var max_fall_speed: float = 1400.0
|
||||
|
||||
|
||||
@export_category("Double Jump")
|
||||
@@ -78,7 +78,7 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
||||
@export_range(1, 2, 1) var max_jumps: int = 2
|
||||
|
||||
## Height multiplier applied to the second jump relative to the character's jump force.
|
||||
@export_range(0.5, 0.95, 0.01) var double_jump_multiplier: float = 0.75
|
||||
@export_range(0.5, 0.95, 0.01) var double_jump_multiplier: float = 0.8
|
||||
|
||||
|
||||
# ============================================================================
|
||||
@@ -91,7 +91,7 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
||||
@export var invulnerability_duration: float = 0.65
|
||||
|
||||
## Horizontal and vertical impulse applied when the player is hit.
|
||||
@export var damage_knockback: Vector2 = Vector2(150.0, 130.0)
|
||||
@export var damage_knockback: Vector2 = Vector2(310.0, 270.0)
|
||||
|
||||
|
||||
# ============================================================================
|
||||
@@ -102,8 +102,8 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
||||
|
||||
@export var punch_duration: float = 0.13
|
||||
@export var punch_cooldown: float = 0.28
|
||||
@export var punch_hitbox_size: Vector2 = Vector2(28.0, 19.0)
|
||||
@export var punch_offset: Vector2 = Vector2(24.0, 0.0)
|
||||
@export var punch_hitbox_size: Vector2 = Vector2(34.0, 24.0)
|
||||
@export var punch_offset: Vector2 = Vector2(30.0, 0.0)
|
||||
|
||||
|
||||
# ============================================================================
|
||||
@@ -121,8 +121,8 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
||||
## Small amount of steering kept during the fall.
|
||||
@export_range(0.0, 1.0) var ground_pound_horizontal_control: float = 0.25
|
||||
|
||||
@export var ground_pound_radius: float = 43.0
|
||||
@export var ground_pound_offset: Vector2 = Vector2(0.0, 14.0)
|
||||
@export var ground_pound_radius: float = 54.0
|
||||
@export var ground_pound_offset: Vector2 = Vector2(0.0, 18.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
|
||||
|
||||
+5
-5
@@ -8,7 +8,7 @@
|
||||
[ext_resource type="PackedScene" path="res://ui/hud/special_charge_hud.tscn" id="6_special_charge_hud"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="PlayerShape"]
|
||||
size = Vector2(26, 46)
|
||||
size = Vector2(41, 74)
|
||||
|
||||
[node name="Player" type="CharacterBody2D" unique_id=730885194 groups=["player"]]
|
||||
z_index = 1
|
||||
@@ -17,7 +17,7 @@ script = ExtResource("1_player")
|
||||
character_data = ExtResource("4_character")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=589859800]
|
||||
position = Vector2(0.5, 5.5)
|
||||
position = Vector2(0, 0)
|
||||
shape = SubResource("PlayerShape")
|
||||
|
||||
[node name="Hurtbox" type="Area2D" parent="." unique_id=542287926]
|
||||
@@ -26,7 +26,7 @@ collision_mask = 0
|
||||
monitoring = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox" unique_id=813209683]
|
||||
position = Vector2(0.5, 5.5)
|
||||
position = Vector2(0, 0)
|
||||
shape = SubResource("PlayerShape")
|
||||
|
||||
[node name="PunchHitbox" type="Area2D" parent="." unique_id=184501519]
|
||||
@@ -45,13 +45,13 @@ monitorable = false
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1502470275]
|
||||
z_index = -1
|
||||
scale = Vector2(0.321005, 0.321005)
|
||||
scale = Vector2(0.56, 0.56)
|
||||
sprite_frames = ExtResource("2_frames")
|
||||
animation = &"idle"
|
||||
speed_scale = 2.0
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=902833396]
|
||||
zoom = Vector2(5.8, 5.8)
|
||||
zoom = Vector2(3.4, 3.4)
|
||||
script = ExtResource("3_camera")
|
||||
|
||||
[node name="PlayerHealthHUD" parent="." unique_id=660684564 instance=ExtResource("5_health_hud")]
|
||||
|
||||
Reference in new issue
Block a user