Zombie rebalance
This commit is contained in:
parent
a126777a89
commit
e2cc168b72
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue