← Back to Projects

Wasteland Walkers

Timethy Hyman

Unreal Engine University Project Machine Learning Game

Overview

Wasteland walkers is a local co-op game where you control Shelly the robot. Work as a team to maneuver Shelly through the desert, shoot down enemies and find your way to the Oasis.

The game was made in 8 weeks during my first year at Breda University. The game was made using UnrealEngine 5 by a team of 12 developers.

Key Contributions

  • Created a reinforcement learning system which controls all enemy behaviour.
  • I was in charge of all audio: Custom made music for the game, audio implementations and transitions.
  • Created the rotating start menu + widgets
  • Added bloom + day/night cycles.

Gameplay footage of Wasteland Walkers

Reinforcement Learning

Most of my time this project was spent on getting my little enemies to behave the way I wanted them to. It turns out that Reinforcement Learning is a huge rabbit hole. Luckily an extension that handled most of the setup already existed, I only needed to learn how Reinforcement learning works and implement the training system.

The key insights I learned regarding this topic, is that you can give an agent n anount of options, e.g. it can move forwards, backwards and rotate. Then you add or subtract points based off of the decisions the agent makes in accordance to what you want it to do.

A simple example from my implementation

Wasteland walkers has 4 enemy types:

  • The crawler
  • The spider
  • The scorpion
  • the beetle

The crawler’s only objective is to crash into shelly. This meant that I would give it points for being close to the player, and points for looking in the direction of the player.

To iterate and train the agents, they get reset after a few conditions:

  • They got stuck in a state where no learning can be achieved
  • They accomplished their task
  • Their global timer ran out

After resetting an agent, the agents with relatively good scores get their data recorded, where as the agents that performed poorly get discarded. After this a new set of agents get spawned with the data of the well performing parents.

It’s important to be very strict and careful with the rules you set and the way you award points. My first baby worms learned to drift to their target…

Volumetric Fog Scene

Early prototype of enemies spawn and behaviour

Check it out on Itch!: Wasteland Walkers