Unstable Star

OVERVIEW

// METRICS

Engine
Unity
My Roles
Systems Lead,Project Manager
Platforms
PC

Unstable Star was developed in collaboration with the Video Game Development Club at Arizona State University. This action-packed, lighthearted adventure spans three unique levels and two challenging boss fights. Players take control of a former Border Guard of the Intragalactic Coalition as he becomes entangled in a rebellion to save the galaxy.

As the club's vice president and systems lead, I oversaw project management, task organization, and project scheduling.

TECHNICAL FEATURES

// Systems that I've contributed to

Wave System

Wave System

The base code for the wave system in this project carried over from its predecessor Rogue Nebula. Waves are hand-built, prefabbed formations that fly in, settle into position and fight until the last ship is down. The moment a wave is cleared, the next one is rolled from a pool and sent in. I built the system from three small pieces connected by two global events, so new formations could be added as prefabs without touching code.

// The pieces
Module Type Purpose
Wave MonoBehaviour One formation, saved as a prefab. Knows which enemies belong to it and announces when they are all gone.
WaveManager MonoBehaviour Spawns one wave after another for as long as spawning is switched on.
WavePool ScriptableObject The formations for one act, plus the band of screen height they settle into.
EventData Static Events OnEnemyDeath and OnWaveComplete carry every message between the other three.

Prefabbed Waves

Each formation is an empty parent object with enemy prefabs placed as its children, arranged in the shape the wave should fly in. On Awake the wave walks its own children to build its enemy list. Designers can drag ships around inside the prefab and never have to keep a list in sync by hand.

// CSHARP
private void Awake()
{
    ResetAndPopulateEnemyList();
}

public void ResetAndPopulateEnemyList()
{
    enemyList.Clear();

    foreach (Transform child in transform)
    {
        GameObject childGameObject = child.gameObject;
        if (childGameObject != null)
        {
            enemyList.Add(childGameObject);
        }
    }
}

Wave Pool Selection

Each act gets its own pool asset, made from Unity's Create menu. Picking a wave is a uniform random roll. If the rolled slot is empty, for example because a prefab was deleted, it rolls again. The pool can also push its own vertical bounds onto every wave, so all formations in an act settle in the same band of the screen.

// CSHARP
[CreateAssetMenu(fileName = "WavePool", menuName = "Wave Pool")]
public class WavePool : ScriptableObject
{
    [SerializeField] private List<GameObject> waves = new List<GameObject>();
    [SerializeField] float enemyBoundsCenter = .75f;
    [SerializeField] float enemyBoundsSize = .15f;
    [SerializeField] bool overrideWaveBounds = true;

    public GameObject RandomWaveSelect()
    {
        if (waves.Count <= 0)       // If no waves currently selected then return null
            return null;

        if (overrideWaveBounds)
        {
            foreach(GameObject wave in waves)
            {
                wave.GetComponent<Wave>().SetBoundFields(enemyBoundsCenter, enemyBoundsSize);
            }
        }

        int roll = Random.Range(0, waves.Count);
        if (waves[roll])
            return waves[roll];
        else
            return RandomWaveSelect();
    }
}

Difficulty scales by act. Every act uses the same five formation shapes in harder versions. All three level scenes share one Wave Manager prefab that defaults to the Act 1 pool, and Levels 2 and 3 override that one field.

// Wave Pools
Act Pool Tier
Act 1 level1_pool Easy
Act 2 level2_pool Medium
Act 3 level3_pool Hard

Wave Spawn Loop

The manager is a scene singleton. In Start it subscribes SpawnWave to OnWaveComplete, and that single line is the whole loop: whenever a wave reports it is finished, the next one spawns. A waveSpawnStopped flag gates the call, so the loop can be paused without unsubscribing anything. onWaveStart is a UnityEvent that hands the wave number to any UI that wants to show it.

// CSHARP
private void Start()
{
    EventData.OnWaveComplete += SpawnWave;

    waveParent = GameObject.Find(WAVE_PARENT_NAME);

    currentWavePool = wavePools[0];     // Start currentWavePool at first wave in list
    // ...
}

public void SpawnWave()
{
    if (waveSpawnStopped)
        return;

    // Event for UI
    onWaveStart?.Invoke(waveCounter);
    // Spawn wave using RandomWaveSelect()
    GameObject wave = Instantiate(currentWavePool.RandomWaveSelect(), waveParent.transform);
    currentWave = wave.GetComponent<Wave>();
    // ...
}

public void StartWaveSpawn()
{
    waveSpawnStopped = false;
    SpawnWave();                        // Spawn the first wave
}

public void StopWaveSpawn()
{
    waveSpawnStopped = true;
    currentWave.ClearWave();
}

THOUGHTS & REFLECTION

Unstable Star reflection

What was my biggest mistake leading a team of this size?

My biggest mistake was not leaving room for creativity, which turned out to be essential for leading a large team of developers. At first, I thought heavy direction and tightly defined requirements would lead to better productivity and retention. Instead, they led to slower deliverables and a loss of interest. As the middleman between the design and systems teams, I tried to bridge the gap between design decisions and the technical requirements needed to build them, and I ended up writing hundreds of small tasks with long technical descriptions. This took many hours of my time and became a major bottleneck in the production pipeline. Developers waited on tasks I hadn't written yet, and the ones they did get left little for them to solve on their own. Some club members left the project because of task shortages and repetitive work.

Ultimately, I stopped writing long descriptions and let the systems team fill in the gaps themselves. If something wasn't feasible, they talked it over with design and settled on a workaround. This gave members more ownership over the project and sped up development overall. The lesson I took away is that a task should describe the problem and the goal, not the solution. A volunteer team especially stays motivated when people get to solve problems, not just carry out instructions.

Separation of Concerns

Another important focus when working with a large team is splitting the game into modular systems that depend on each other as little as possible. Instead of micromanaging, I clearly defined modules around the combinations of mechanics the game needed, then delegated each one to a developer based on their interests. When two tasks depended heavily on each other, we used pair programming so the developers could build them together instead of waiting on one another.

The wave system is a good example. Its pieces only talk to each other through two global events, OnEnemyDeath and OnWaveComplete, so designers could add new formations as prefabs and other developers could hook UI into each new wave without touching the wave code. Clear boundaries like these let a lot of people work in the same project at once without stepping on each other's toes.

What was communication like between design and systems?

Difficult, to say the least. I was the main point of contact between systems and design, but that job was too much for one person. Every question and change request had to pass through me, so small misunderstandings easily turned into delays. It helped to include a few computer science majors on the design team, since they could flag what wasn't feasible early and shape mechanics so they fit naturally into the code.

Ultimately, I had systems members review the design material themselves and talk directly with the designers about changes. Cutting out the middleman meant fewer details got lost in translation, and it freed me up to focus on scheduling and the overall direction of the project.