Added new sounds needed for game
Added blackhole swirl texture and materials Added Magnet, Hunter and Drop core powerups and script overhaul for powerups in general Added Scenes and Cinematic changes for the game, win and death screens Added a score Changed the way enemy spawns work Removed unused scripts
This commit is contained in:
@ -15,6 +15,8 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
private List<string> _commandOutput = new List<string>();
|
||||
private int _prevCommandIndex = 0;
|
||||
|
||||
private float _prevTimeScale = 1.0f;
|
||||
|
||||
/// <summary>
|
||||
/// Method to toggle the debug console
|
||||
/// </summary>
|
||||
@ -22,11 +24,12 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
{
|
||||
if (_toggleWindow && !force)
|
||||
{
|
||||
Time.timeScale = 1.0f;
|
||||
Time.timeScale = _prevTimeScale;
|
||||
_toggleWindow = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
_prevTimeScale = Time.timeScale;
|
||||
Time.timeScale = 0.0f;
|
||||
_toggleWindow = true;
|
||||
}
|
||||
@ -155,6 +158,14 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
case "imreallybadatthisgame":
|
||||
DoLevelJump(100);
|
||||
break;
|
||||
case "iamareallybigcheater":
|
||||
int scoreJump = 1000;
|
||||
if (commandParts.Length > 1)
|
||||
{
|
||||
int.TryParse(commandParts[1], out scoreJump);
|
||||
}
|
||||
DoScoreIncrease(scoreJump);
|
||||
break;
|
||||
// Pick up all current cores floating in the scene
|
||||
case "pickupall":
|
||||
PickupAll();
|
||||
@ -186,6 +197,14 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
private void DoScoreIncrease(int value)
|
||||
{
|
||||
if (value > 0)
|
||||
{
|
||||
GameManager.Instance.AddScore(value);
|
||||
}
|
||||
}
|
||||
|
||||
private void DoFall()
|
||||
{
|
||||
GameObject[] enemiesSpawned = GameObject.FindGameObjectsWithTag("Enemy");
|
||||
@ -231,6 +250,16 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
case "shield":
|
||||
spawnPrefabId = 8;
|
||||
break;
|
||||
case "magnetcore":
|
||||
spawnPrefabId = 9;
|
||||
break;
|
||||
case "chasecore":
|
||||
spawnPrefabId = 10;
|
||||
break;
|
||||
case "dropcore":
|
||||
spawnPrefabId = 11;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
if (spawnPrefabId != -1)
|
||||
@ -354,9 +383,12 @@ public class DebugConsoleManager : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.BackQuote) || Input.GetKeyDown(KeyCode.Tilde))
|
||||
{
|
||||
ToggleDebugConsole(true);
|
||||
}
|
||||
if (GameEngine.gameStarted)
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.BackQuote) || Input.GetKeyDown(KeyCode.Tilde))
|
||||
{
|
||||
ToggleDebugConsole(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user