Zombie rebalance

This commit is contained in:
Фёдор Веселов 2024-09-25 01:23:26 +05:00
commit e2cc168b72
2 changed files with 2 additions and 2 deletions

View file

@ -149,7 +149,7 @@ graph_offset = Vector2(-17, -2)
[node name="Zombie" type="Node2D"] [node name="Zombie" type="Node2D"]
script = ExtResource("1_qq3f1") script = ExtResource("1_qq3f1")
_maxHP = 70 _maxHP = 10
[node name="Sprite" type="Sprite2D" parent="."] [node name="Sprite" type="Sprite2D" parent="."]
position = Vector2(0, -44) position = Vector2(0, -44)

View file

@ -14,7 +14,7 @@ public partial class ZombieMover : Node
public override void _PhysicsProcess(double delta) public override void _PhysicsProcess(double delta)
{ {
_zombie.Position -= _zombie.Transform.X * _speed * (float)delta * Utility.TileWidth; _zombie.Position -= _zombie.Transform.X * _speed * (float)delta * Utility.TileWidth / 4.0f;
} }
public void SetSpeed(float speed) public void SetSpeed(float speed)