Exploring Retro Game Programming Languages - From Assembly to higher level languages

Edit on Github | Updated: 20th November 2024

Introduction

Welcome to our journey through the fascinating world of programming languages used to create retro games! In the early days of video games, developers had to work with limited resources and hardware, pushing the boundaries of creativity and innovation. One of the crucial aspects of game development during that era was the choice of programming language. In this article, we’ll delve into some of the most iconic languages used in creating retro games, from the low-level intricacies of Assembly to the user-friendly environments of more modern programming languages.

Assembly Language (Z80/6502/68000/x86/arm/sh2)

Assembly language is as low-level as it gets, offering direct control over a computer’s hardware. In the realm of retro game development, Assembly was the language of choice for squeezing every last drop of performance from early gaming consoles and home computers. While notoriously difficult to master, it provided unparalleled speed and efficiency, making it ideal for crafting games that pushed hardware limits to the edge.

However Assembly language programs are written for a specific CPU and not portable to different CPU architectures.

Most commercial games written for Game Boy/Game Boy Color/NES/SNES/SMS/MegaDrive are written in an Assembly language such as Z80/6502/68000 as C compilers were generally not good enough at the time to create optimized code for those platforms.


C/C++

C and C++ revolutionized game development by introducing a higher level of abstraction without sacrificing performance (when compilers became good enough between the Mega Drive and Saturn era). Their versatility and efficiency allowed developers to create complex gameplay mechanics and stunning visuals while maintaining compatibility with a wide range of platforms.

Most games post MegaDrive/SNES/Game Boy Color were written in C and many games post PS1 were written in C++.

However there are some interesting exceptions to this rule such as commercial Game Boy Color games written in C (e.g. Lego Stunt Rally 1, Datel Rocket games).

Also there is one known commercial Mega Drive game to be written in C, Sonic Spinball 2!

One good way to tell if a game uses C/C++ is to look for C-style strings in the disassembled code/memory.

C/C++ Compilers:

  • GNU GCC
  • TurboC++
  • Microsoft Visual C++

BASIC Variants

With Assembly having a reputation for being difficult to learn, many “simpler” programming languages were created with one of the most popular earlier languages simply being called “BASIC”. Over the years many BASIC variants were released tailored for hobbiest game programmers.

Blitz BASIC

Blitz BASIC emerged as a game-changer for aspiring Amiga game developers in the 1990s. With its simplified syntax and built-in libraries, Blitz BASIC empowered enthusiasts to create games without the steep learning curve associated with traditional programming languages. Its user-friendly interface and rapid development capabilities made it a popular choice for hobbyists and indie developers looking to bring their retro game ideas to life.

Popular games made using Blitz Basic:

  • Super Skidmarks - Amiga
  • Worms - Amiga

Blitz BASIC later evolved into Blitz2D which was for creating games for DOS/Windows and has continued to evolve into future products such as Blitz3D 3.

DarkBASIC

DarkBASIC, a more modern version of Amiga tools such as Blitz BASIC or AMOS, took simplicity to the next level by focusing specifically on game development. Tailored for beginners and hobbyists, it provided a robust set of tools for creating 2D and 3D games with ease. DarkBASIC’s intuitive scripting language allowed developers to concentrate on game design without getting bogged down in technical details, making it an accessible gateway to the world of game development for hobbyists.

However no popular commercial AAA games were ever developed with DarkBASIC as far as we can see, a few multimedia applications were created using DarkBASIC:

  • The 3D Game Maker which was also written by the creators of DarkBASIC (The Game Creators) and sold reasonably well.
  • Driving Test Success Practical by Focus which sold over 100k units. 4

Dark Basic Professional was later released which was re-written from scratch and allowed plugins to be developed to extend the functionality.

The FPS Creator (also by The Game Creators) was written in Dark Basic Professional and its source code is now available on Github 5.

You can find the full source code to Dark Basic Professional including the compiler on github: TheGameCreators/Dark-Basic-Pro: Dark Basic Pro is an open source BASIC programming language for creating Windows applications and games

You can find out more about all The Game Creators products in this excellent documentary from TannerProductions:


References

Want More?

Follow us on Twitter & Bluesky!