Adaptacion de velocidad y tamaños del nivel #15
No files matched your search
@@ -25,8 +25,8 @@ enum AttackState {
|
|||||||
|
|
||||||
@export_category("Movement")
|
@export_category("Movement")
|
||||||
|
|
||||||
@export var move_speed: float = 43.0
|
@export var move_speed: float = 21.5
|
||||||
@export var max_fall_speed: float = 1200.0
|
@export var max_fall_speed: float = 800.0
|
||||||
|
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
@@ -72,7 +72,7 @@ enum AttackState {
|
|||||||
|
|
||||||
## Strength of the knockback applied per point of damage. The final push is
|
## 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.
|
## divided by the enemy's max health, so tougher enemies move less.
|
||||||
@export var knockback_strength: float = 500.0
|
@export var knockback_strength: float = 250.0
|
||||||
|
|
||||||
## How long the knockback impulse lasts before friction brings the enemy to a halt.
|
## How long the knockback impulse lasts before friction brings the enemy to a halt.
|
||||||
@export var knockback_duration: float = 0.4
|
@export var knockback_duration: float = 0.4
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ id = &"bassist"
|
|||||||
display_name = "Bassist"
|
display_name = "Bassist"
|
||||||
sprite_frames = ExtResource("2_frames")
|
sprite_frames = ExtResource("2_frames")
|
||||||
max_health = 100
|
max_health = 100
|
||||||
move_speed = 400.0
|
move_speed = 200.0
|
||||||
jump_velocity = -600.0
|
jump_velocity = -300.0
|
||||||
basic_attack_damage = 5
|
basic_attack_damage = 5
|
||||||
air_attack_damage = 10
|
air_attack_damage = 10
|
||||||
@@ -9,7 +9,7 @@ id = &"drummer"
|
|||||||
display_name = "Drummer"
|
display_name = "Drummer"
|
||||||
sprite_frames = ExtResource("2_frames")
|
sprite_frames = ExtResource("2_frames")
|
||||||
max_health = 100
|
max_health = 100
|
||||||
move_speed = 400.0
|
move_speed = 200.0
|
||||||
jump_velocity = -600.0
|
jump_velocity = -300.0
|
||||||
basic_attack_damage = 5
|
basic_attack_damage = 5
|
||||||
air_attack_damage = 10
|
air_attack_damage = 10
|
||||||
@@ -9,7 +9,7 @@ id = &"guitarist"
|
|||||||
display_name = "Guitarist"
|
display_name = "Guitarist"
|
||||||
sprite_frames = ExtResource("2_frames")
|
sprite_frames = ExtResource("2_frames")
|
||||||
max_health = 100
|
max_health = 100
|
||||||
move_speed = 400.0
|
move_speed = 200.0
|
||||||
jump_velocity = -600.0
|
jump_velocity = -300.0
|
||||||
basic_attack_damage = 5
|
basic_attack_damage = 5
|
||||||
air_attack_damage = 10
|
air_attack_damage = 10
|
||||||
@@ -9,7 +9,7 @@ id = &"singer"
|
|||||||
display_name = "Singer"
|
display_name = "Singer"
|
||||||
sprite_frames = ExtResource("2_frames")
|
sprite_frames = ExtResource("2_frames")
|
||||||
max_health = 100
|
max_health = 100
|
||||||
move_speed = 400.0
|
move_speed = 200.0
|
||||||
jump_velocity = -600.0
|
jump_velocity = -300.0
|
||||||
basic_attack_damage = 5
|
basic_attack_damage = 5
|
||||||
air_attack_damage = 10
|
air_attack_damage = 10
|
||||||
+9
-9
@@ -34,19 +34,19 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
|||||||
@export_category("Movement")
|
@export_category("Movement")
|
||||||
|
|
||||||
## Reaches full running speed quickly, but not instantly.
|
## Reaches full running speed quickly, but not instantly.
|
||||||
@export var ground_acceleration: float = 3600.0
|
@export var ground_acceleration: float = 1800.0
|
||||||
|
|
||||||
## Used when there is no horizontal input. Slightly stronger than acceleration
|
## Used when there is no horizontal input. Slightly stronger than acceleration
|
||||||
## so releasing the controls feels precise instead of slippery.
|
## so releasing the controls feels precise instead of slippery.
|
||||||
@export var ground_friction: float = 4800.0
|
@export var ground_friction: float = 2400.0
|
||||||
|
|
||||||
## Braking used only when the player asks for the opposite direction. The
|
## Braking used only when the player asks for the opposite direction. The
|
||||||
## character loses the old momentum first and then accelerates the other way,
|
## character loses the old momentum first and then accelerates the other way,
|
||||||
## producing a small but readable turn delay.
|
## producing a small but readable turn delay.
|
||||||
@export var turn_braking: float = 5600.0
|
@export var turn_braking: float = 2800.0
|
||||||
|
|
||||||
## Air control stays responsive but weaker than movement on the floor.
|
## Air control stays responsive but weaker than movement on the floor.
|
||||||
@export var air_acceleration: float = 1800.0
|
@export var air_acceleration: float = 900.0
|
||||||
|
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
@@ -56,17 +56,17 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
|||||||
@export_category("Jump")
|
@export_category("Jump")
|
||||||
|
|
||||||
## Allows a jump a few milliseconds after walking off a ledge.
|
## Allows a jump a few milliseconds after walking off a ledge.
|
||||||
@export var coyote_time: float = 0.12
|
@export var coyote_time: float = 0.15
|
||||||
|
|
||||||
## Remembers an early jump press just before landing.
|
## Remembers an early jump press just before landing.
|
||||||
@export var jump_buffer_time: float = 0.12
|
@export var jump_buffer_time: float = 0.15
|
||||||
|
|
||||||
## Releasing jump while rising cuts the jump short.
|
## 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.45
|
||||||
|
|
||||||
@export var gravity_multiplier: float = 1.0
|
@export var gravity_multiplier: float = 1.0
|
||||||
@export var fall_gravity_multiplier: float = 1.7
|
@export var fall_gravity_multiplier: float = 1.7
|
||||||
@export var max_fall_speed: float = 1200.0
|
@export var max_fall_speed: float = 800.0
|
||||||
|
|
||||||
|
|
||||||
@export_category("Double Jump")
|
@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
|
@export_range(1, 2, 1) var max_jumps: int = 2
|
||||||
|
|
||||||
## Height multiplier applied to the second jump relative to the character's jump force.
|
## 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.8
|
@export_range(0.5, 0.95, 0.01) var double_jump_multiplier: float = 0.75
|
||||||
|
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
@@ -91,7 +91,7 @@ const ENEMY_HURTBOX_MASK: int = 1 << 4
|
|||||||
@export var invulnerability_duration: float = 0.65
|
@export var invulnerability_duration: float = 0.65
|
||||||
|
|
||||||
## Horizontal and vertical impulse applied when the player is hit.
|
## Horizontal and vertical impulse applied when the player is hit.
|
||||||
@export var damage_knockback: Vector2 = Vector2(300.0, 260.0)
|
@export var damage_knockback: Vector2 = Vector2(150.0, 130.0)
|
||||||
|
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ animation = &"idle"
|
|||||||
speed_scale = 2.0
|
speed_scale = 2.0
|
||||||
|
|
||||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=902833396]
|
[node name="Camera2D" type="Camera2D" parent="." unique_id=902833396]
|
||||||
zoom = Vector2(3, 3)
|
zoom = Vector2(5.8, 5.8)
|
||||||
script = ExtResource("3_camera")
|
script = ExtResource("3_camera")
|
||||||
|
|
||||||
[node name="PlayerHealthHUD" parent="." unique_id=660684564 instance=ExtResource("5_health_hud")]
|
[node name="PlayerHealthHUD" parent="." unique_id=660684564 instance=ExtResource("5_health_hud")]
|
||||||
|
|||||||
Reference in new issue
Block a user