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
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.
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")]
publicclassWavePool : 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 nullreturnnull;
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];
elsereturn 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
privatevoidStart()
{
EventData.OnWaveComplete += SpawnWave;
waveParent = GameObject.Find(WAVE_PARENT_NAME);
currentWavePool = wavePools[0]; // Start currentWavePool at first wave in list// ...
}
publicvoidSpawnWave()
{
if (waveSpawnStopped)
return;
// Event for UI
onWaveStart?.Invoke(waveCounter);
// Spawn wave using RandomWaveSelect()
GameObject wave = Instantiate(currentWavePool.RandomWaveSelect(), waveParent.transform);
currentWave = wave.GetComponent<Wave>();
// ...
}
publicvoidStartWaveSpawn()
{
waveSpawnStopped = false;
SpawnWave(); // Spawn the first wave
}
publicvoidStopWaveSpawn()
{
waveSpawnStopped = true;
currentWave.ClearWave();
}
Player Abilities
In addition to their guns, players can take one special ability into each level, chosen from a disk on the loadout screen. The base code for this system was carried over from its predecessor Rogue Nebula. The Phase Shift ability makes the ship untouchable for a few seconds. The Proximity Bomb ability releases an expanding shockwave that damages anything it touches. Each ability has limited charges and its own cooldown. The system splits into three layers: data assets that designers tune in the inspector, an inventory that holds what the player equipped, and a component that carries out the effect.
// The pieces
Module
Type
Purpose
ScriptableAbility
ScriptableObject
One asset per ability, holding its tuning values, icons, sounds and effects.
Ability
Class
The runtime copy the player carries. Tracks charges left and cooldown time.
AbilityInventory
MonoBehaviour
What the player equipped on the loadout screen, and which ability is selected.
AbilityComponent
MonoBehaviour
Runs the effect, starts the cooldown and reports its progress to the HUD.
Ability Scriptable Object
Each ability type has a ScriptableObject that designers create from the Create menu and fill in from the inspector: charges, cooldown, icons, FMOD sound events and visual effects. GetAbilityObject() turns that asset into a new runtime Ability. The player spends charges on that copy, so playing a level never changes the values saved in the asset.
// CSHARP
[CreateAssetMenu(fileName = "ScriptablePhaseShift", menuName = "ScriptableObjects/Abilities/Phase Shift")]
publicclassScriptablePhaseShift : ScriptableAbility
{
// Variables
[Header("Phase Shift Settings")]
publicstring sName;
public Material phaseShiftMaterial;
public GameObject particlePrefab;
public FMODUnity.EventReference phaseShiftEnter;
public FMODUnity.EventReference phaseShiftExit;
public Sprite abilityIconActive;
public Sprite abilityIconInactive;
publicint charges;
publicfloat cooldownTime;
publicfloat durationTime;
[TextAreaAttribute]
publicstring description;
publicoverride Ability GetAbilityObject()
{
returnnew PhaseShiftAbility(sName, abilityIconActive, phaseShiftEnter, phaseShiftExit, abilityIconInactive, phaseShiftMaterial, particlePrefab, charges, cooldownTime, durationTime, description);
}
}
Base Ability Class
Every runtime ability inherits from an abstract Ability class. Fields for every ability type live on that base class, and an AbilityTypes enum says which kind it is. Code that runs abilities can read any ability's data without casting it, and decides what to do by switching on the enum.
// CSHARP
publicenum AbilityTypes
{
NULL,
ProxiBomb,
PhaseShift
}
// Ability Parent ClasspublicabstractclassAbility
{
// Common Variablespublicstring sName;
public AbilityTypes abilityType;
publicfloat cooldownTime;
publicfloat durationTime;
publicbool isOnCooldown;
publicint charges;
publicstring description;
// Proximity Bomb Variablespublic FMODUnity.EventReference bombExplosion;
public GameObject bombPrefab;
publicfloat bombRadius;
publicint damage;
// Phase Shift Variables// ...// This variable should be useful for implementing UIpublicfloat timeLeftInCooldown;
// ...
}
Dialogue System
Every conversation in Unstable Star, from the prison-break cutscenes to the banter before a boss fight, is written in plain text files. A small parser turns each file into rows of speaker, line and mood. A dialogue manager plays those rows back with portraits and a typewriter effect, then hands control back to Unity Timeline or to the level when the script says so.
Speakers and Portraits
A character portrait is displayed on the left side of the speech bubble. The speaker chooses a character portrait set and the mood chooses a portrait from the set.
Each row's speaker resolves to an Options struct: the name for the nameplate, its color, the portrait set, and whether a nameplate is shown at all. Portrait arrays are filled in the Inspector in a fixed order, so a mood is just an index into that array.
Characters the parser knows but that have no custom entry, like the Security Defense System, fall through to the default case and get a nameplate with their own name and a blank portrait. When a row's mood is ???, ChangeDialogue replaces the nameplate with ??? and hides the portrait, for characters who haven't been introduced yet.
// CSHARP
publicstruct Options
{
publicstring name;
public Color32 color;
public Sprite[] emotions;
publicbool isDialogue;
};
public Options CreateOptions(string optionType)
{
switch (optionType)
{
case"APOLLO":
Options apollo = new Options
{
name = "APOLLO",
color = Color.black,
emotions = apolloEmotions,
isDialogue = true,
};
return apollo;
// … one case per main character, boss and named civiliancase"DESC: ":
Options description = new Options
{
name = "",
color = Color.black,
emotions = blankEmotions,
isDialogue = false,
};
return description;
// … BREAK and NOISE also return isDialogue = falsedefault:
Options baseOptions = new Options
{
name = optionType,
color = Color.black,
emotions = blankEmotions,
isDialogue = true,
};
return baseOptions;
}
}
public Sprite GetEmotion(Options option, string emotion)
{
switch (emotion)
{
case"NORMAL":
return option.emotions[0];
case"HAPPY":
return option.emotions[1];
case"SAD":
return option.emotions[2];
case"ANGRY":
return option.emotions[3];
default:
return option.emotions[0];
}
}
Timeline Control
Cutscenes are Unity Timelines. The DialogueController prefab carries a Signal Receiver that maps two signal assets to methods: StartText.signal calls DialogueManager.StartText(), and SwitchScene.signal calls ChangeScene().
A StartText marker pauses the Timeline and opens the box. When playback reaches a NOISE or BREAK row, StopText() resumes the Timeline, so the next beat (an explosion, a camera move, a sound) plays until the next StartText marker. The script file and the Timeline stay in sync by order alone.
// CSHARP
// Pauses timeline and makes the text clickablepublicvoidStartText()
{
dialogueObject.SetActive(true);
start = true;
timelinePlayer.Pause();
ChangeDialogue();
ChangeDialogue();
}
// Starts timeline and makes the text stoppublicvoidStopText()
{
// … hides the portrait, nameplate and dialogue box// pauses the dialogue and runs the animations
timelinePlayer.Resume();
start = false;
current++;
}
StartText runs the press handler twice so the opening line appears without the player pressing anything. StopText steps current past the stop row, which means a NOISE line's text is never displayed. Writers use that text as a note for whoever builds the Timeline.
THOUGHTS & 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.