Survival mode ready
This commit is contained in:
parent
0fff33d196
commit
7614b12076
50 changed files with 586 additions and 81 deletions
|
|
@ -6,12 +6,15 @@ public partial class ZombieMover : Node
|
|||
{
|
||||
[Export]
|
||||
private FloatModifiers _speed;
|
||||
[Export]
|
||||
private float _speedControlMult;
|
||||
private Node2D _zombie;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_zombie = GetParent<Node2D>();
|
||||
_speed = (FloatModifiers)_speed.Duplicate();
|
||||
_speed.ChangePercentage((float)GD.RandRange(-0.05,0.05));
|
||||
}
|
||||
|
||||
public override void _PhysicsProcess(double delta)
|
||||
|
|
@ -20,7 +23,8 @@ public partial class ZombieMover : Node
|
|||
* (float)delta
|
||||
* Utility.TileWidth
|
||||
* GetParent<RuntimeZombieData>().LocalTimescale
|
||||
* _speed.GetValue();
|
||||
* _speed.GetValue()
|
||||
* _speedControlMult;
|
||||
}
|
||||
|
||||
public void SetSpeedFlat(float speed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue