make everything use new difficulty system

This commit is contained in:
Haze Weathers 2023-06-29 23:40:38 -04:00
parent 99f46651f9
commit 723d596893
15 changed files with 41 additions and 53 deletions

View file

@ -23,9 +23,8 @@ func _ready():
hitbox.global_position.y = old_y
line.points[1].y = hitbox.position.y
raycast.queue_free()
#Easy mode
if Game.is_easy_mode:
speed *= Game.easy_mode_speed_factor
# adjust to difficulty
speed *= Game.enemy_speed_factor
func _physics_process(delta):
hitbox.position.y += direction * speed * delta