Terraria for Mobile

Dig, Fight, Build!

As intern at Codeglue I was able to work on the hugely succesfull mobile port of Terraria.

Terraria is a 2D sandbox survival game with a core mechanic of digging, fighting and building. You start in a procedurally generated world and have to gather resources to craft a wide variety of items. While exploring you will find even more items and will have to fight through monsters and eventually slay bosses.

  • Type: Mobile Game.
  • Team: Codeglue
  • Contributions: Bug & crash fixes and tool creation.
  • Engine: Octarine.
  • Main Language: C++ (with occasionally Java and Objective-C).
  • Platforms: iOS, Android and Windows Phone.

Terraria is an action-adventure sandbox video game developed by game studio Re-Logic. The mobile version of Terraria is ported by 505 Games in collaboration with Codeglue and runs on Android, iOS, Windows Phone and Nintendo 3DS devices.

The Game

There's a lot to do in the worlds of Terraria. There are thousands of items, weapons, armor, resources, building materials and silly stuff. There are hundreds of enemies to fight and a few dozen bosses to defeat. You can fly, ride a mount, swim, discover caves and floating islands or go to hell. There are also a few dozen NPC's able to help you or sell items.

From a programming point of view, all these items, environments and npc's, mean that a lot of code revolves around object specific statistics, behaviour and the interaction between all of these. The game is written in c++ with an in-house developed framework called Octarine. The framework contains some engine code and a few different cross-platform libraries.