Survival mode ready
This commit is contained in:
parent
0fff33d196
commit
7614b12076
50 changed files with 586 additions and 81 deletions
|
|
@ -8,7 +8,7 @@ public partial class EatBox : Area2D
|
|||
{
|
||||
// Rewrite this class completely when field system will be introduced.
|
||||
|
||||
[Export] private FloatModifiers _damage;
|
||||
[Export] public FloatModifiers _damage;
|
||||
private RuntimePlantData plant;
|
||||
|
||||
public bool isEating = false;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -13,5 +13,6 @@ public partial class HoboBehaviour : Node
|
|||
canDestroyed = true;
|
||||
((AnimationNodeStateMachinePlayback)_animationTree.Get("parameters/playback")).Travel("hobo_zombie_can_destroy");
|
||||
_animationTree.Set("parameters/eat_Tree/blend/blend_amount", 1.0);
|
||||
_eatBox._damage.SetMult(3.0f);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue