diff --git a/src/models/enemies/ghost/ghost.gd b/src/models/enemies/ghost/ghost.gd index ec3f8ff..ec83f80 100644 --- a/src/models/enemies/ghost/ghost.gd +++ b/src/models/enemies/ghost/ghost.gd @@ -14,7 +14,7 @@ func _physics_process(delta): var dist = global_position.distance_to(player.global_position) if dist > 25 and dash_target == Vector2.ZERO: $Aim.visible = false - global_position = global_position.move_toward(player.global_position, clamp(dist * delta * speed_multiplier, -2, 2)) + global_position = global_position.move_toward(player.global_position, clamp(dist * delta * speed_multiplier, -1, 1)) else: if dash_target == Vector2.ZERO: var angle = global_position.angle_to_point(player.global_position) + PI diff --git a/src/models/player/Player.tscn b/src/models/player/Player.tscn index c39d192..24e1314 100644 --- a/src/models/player/Player.tscn +++ b/src/models/player/Player.tscn @@ -5,7 +5,7 @@ [ext_resource path="res://res/shaders/colorize.tres" type="Material" id=3] [sub_resource type="RectangleShape2D" id=1] -extents = Vector2( 4, 5.5 ) +extents = Vector2( 3.5, 3.5 ) [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 7, 11 ) @@ -77,7 +77,7 @@ playing = true centered = false [node name="WallCollision" type="CollisionShape2D" parent="."] -position = Vector2( 12, 17.5 ) +position = Vector2( 11.5, 20.5 ) shape = SubResource( 1 ) [node name="EnemyCollision" type="Area2D" parent="."] diff --git a/src/models/player/player.gd b/src/models/player/player.gd index 552638d..0f7cd51 100644 --- a/src/models/player/player.gd +++ b/src/models/player/player.gd @@ -107,7 +107,7 @@ func _physics_process(delta): invincible = false if slowed: - speed_multiplier = 0.5 + speed_multiplier = 0.18 else: speed_multiplier = 1.0