Poiple: A very small journey

Colony sim/adventure game

My Role: Programmer and designer (freelance)

Engine: Unity

Project length: ~5 months

Steam page link (opens new tab)

Overview

I worked on this project for around 5 months as a freelancer. I wore a lot of hats, as one often does at an indie startup, but my main job was to act as the programmer and designer, working closely with my client to bring their concept to life.

The task system

One of the interesting challenges of the game was the task system. My approach to writing software is to get things working immediately at the start and implementing things in the most direct way possible, reworking things later once we understand the program we're about to create more closely. I used the same approach with the task system, during the first two months while I was working out the core design of the game, I wrote each task as directly as possible without thinking too much about reusability or scalability at that stage.


Once we started settling in on the main loop and the scope of the game, I began refactoring and implemented the task chain system which separates the concept of actions that the character can perform, and tasks that are composed out of numerous actions.


The above images show an example of how a task chain may be created. The "transport resource to a building" task chain contains the following actions:

  1. reserve a spot at the building to submit the resource,
  2. claim the resource to be picked up so that no one else tries to use it,
  3. move to the resource,
  4. pickup the resource,
  5. move to the building,
  6. unclaim the resource entity,
  7. submit the resource to the building.
The implementation of the "pickupChain" is omitted for simplicity, but this is just another task chain that was created previously based on whether the resource to be picked up is inside a storage or not. After the pickupChain's actions have been appended to the main task chain, the pickupChain is released to a pool of task chains as a memory optimization strategy.