Overview
Eco-Warriors is a mobile game for 7 to 9-year-olds that turns looking after the environment into looking after a friend. You raise an eco buddy, a little tree on a stump, whose air, water and nature bars slowly run down. To keep it happy, you walk, explore and clear up litter around Winchester.
It was a university group project for the Collaborate: Sustainable City brief. Seven of us had about two months to research, design and build it, drawing on both Creative Computing and Graphic Communication, and we finished with a working Android build. The core idea was mine: a Tamagotchi-style pet that stays happy through eco-friendly minigames.
My role
I was the development lead, so the game’s design decisions went through me.
- I made the clickable prototype we showed at the interim presentation, which the final designs grew from.
- I set up the Unity project and version control, then built the foundation everything else plugs into: the interface, the buddy’s stats, the buttons and moving between screens.
- Once that was in place, I split the remaining features into branches and handed them out across the team.
- I built the step counter, the explore game and the parallax background.
- At the end, I merged every branch back into one main build.
The rest of the team covered research, character and interface design, 3D modelling, the camera litter game, the help and info screens, and the written documentation.
How it plays
Each bar is one activity, and each is tied to something the team’s research picked out about Winchester: air quality, litter and green spaces.
- Air: walking. Walking instead of being driven fills the air bar. The phone counts steps from its own movement.
- Nature: exploring. Every 30 metres or so, a new character turns up with a fact about nature or Winchester.
- Water: litter. Virtual rubbish appears over the camera view; tap it to clear it up and fill the water bar.
Let the bars run down and the buddy looks visibly sad. The litter only ever exists in the game: telling children to pick up real rubbish isn’t safe, so we kept that part virtual.
Around that loop there’s a customisation screen (new leaf colours, or swap to the arrow characters), a help screen the first time you open each activity, and a Winchester skyline that slides between screens.



Building it
- One script holds the game’s state. A central
GameLogicscript keeps the stats and which mode the game is in (home, steps, explore and so on), so every system knows when it should be running, and the buttons simply switch between those states. - Back works like a phone app. Every screen change goes onto a history stack, and the Back button returns to the last one.
- Step counting without GPS. We planned to use GPS, but resource and permission limits ruled it out, so steps come from the phone’s movement instead. With the thresholds tuned, small shakes don’t count and neither does riding in a car.
- “AR” that worked on our phones. None of our test phones supported Unity’s AR framework, so we put the live camera feed on an object in the scene and spawned tappable litter in front of it. It isn’t true AR, but it kept the game playable.
- 3D models in a 2D scene. The 3D characters reacted to lighting differently from the flat art around them. The 3D artist painted the shading into their textures, and we set the models to ignore scene lighting so they match the cartoon style.
- Depth and atmosphere. The background is split into near, middle and far layers. Each layer moves towards anchor points for each screen at a different speed (the clouds move at about half speed). A snow particle system, colour correction, bloom and a vignette go on top.
Inside GameLogic
Here’s part of the GameLogic script. Every frame, it keeps the three bars in step with the stats, tops up the air stat every few steps, and drains all three on a timer. Every 30 metres or so of walking, it flags that a new character should appear. When the screen changes, it fades the new screen’s objects in and the rest out:
void Update()
{
greenBar.value = green / 100f;
orangeBar.value = orange / 100f;
blueBar.value = blue / 100f;
maxBarValues();
orangeFill();
// only trigger fades when the state actually changes
if (gameState != lastGameState)
{
lastGameState = gameState;
ActiveItems();
}
// …
if (tempDistance > 30)
{
tempDistance = 0;
npcToggle = true;
}
timer += Time.deltaTime;
if (timer >= statReduceTime)
{
ReduceStats();
timer = 0f; // Reset timer
}
}
The fade itself is a coroutine. It changes a group’s opacity over half a second (by default), then switches the group off once it’s invisible:
IEnumerator FadeCanvasGroup(CanvasGroup cg, float from, float to, bool deactivateOnEnd)
{
float t = 0f;
while (t < fadeDuration)
{
t += Time.deltaTime;
float lerp = Mathf.Clamp01(t / fadeDuration);
cg.alpha = Mathf.Lerp(from, to, lerp);
yield return null;
}
cg.alpha = to;
if (deactivateOnEnd)
{
cg.gameObject.SetActive(false);
}
}
Testing and feedback
- On a Google Pixel 7 Pro, every feature worked. On an older Samsung Galaxy A7, everything worked except the camera litter game, which hit an operating-system compatibility problem.
- We didn’t have time to get ethics approval to test with children, so two of the team used the game for a few days instead. They’re adults and made the game, so it’s not a fair test, but both found themselves heading out to explore Winchester.
- At the interim presentation, the feedback was that our project read more as a game than as gamification. We argued our case at first, then accepted it and switched our project track to UI/UX. Afterwards we added the help screens, customisation and the parallax background.
- The final presentation feedback was very positive, and the only real criticism was some limits in the AR.
Looking back
I learned a lot in Unity on this project: fading elements in and out, rendering and texturing 3D models, and how particle systems work (lifetime, emission rate, glow).
The main thing I’d change is my pacing. I spent time polishing the look before the core features were finished, which held up teammates who were waiting to start on their parts. It raised the production values, but it should have come later. Next time I’d hand out responsibilities earlier and pace development better.
Leading development for seven people also meant a lot of coordination: Unity’s free plan only let three of us into the project. And the game-or-gamification debate, frustrating as it was at the time, taught me that adapting to what the client expects is part of teamwork. Overall, I’m genuinely proud of what we made as a team.
Download
Download Eco-Warriors for Android
Android only. Your phone will ask you to allow installing apps from outside the Play Store. The litter game uses the camera, and may not work on some older phones.

