FINAL JAM COMMIT
This commit is contained in:
@@ -8,7 +8,7 @@ public partial class EnemyMovement : Node
|
||||
[Export] private float _speed;
|
||||
|
||||
private float _finalSpeed => _speed + 0.15f * (float)Math.Log(GameController.Instance.Wave + 1);
|
||||
|
||||
|
||||
private double _time = 0;
|
||||
|
||||
public override void _EnterTree()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using Godot;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -53,10 +54,10 @@ public partial class EnemyPool : Node
|
||||
|
||||
private void Died(Enemy e)
|
||||
{
|
||||
GameController.Instance.AddCurrency(25);
|
||||
GameController.Instance.AddCurrency((int)Math.Floor(e.Health.MaxHP));
|
||||
ReturnToPool(e);
|
||||
}
|
||||
|
||||
|
||||
private void ReturnToPool(Enemy e)
|
||||
{
|
||||
EnemySpawner.Instance.EnemiesSpawned--;
|
||||
|
||||
Reference in New Issue
Block a user