Shopping Cart (0)

Mini-Sub Game – RetroChallenge 2013 Winter Warmup Finale

Mini-Sub Game for IRIX/Mac/Linux V1.0

Created by Andrew Hazelden

Game Description

In the Mini-Sub game you have to navigate a yellow submarine through a dangerous ocean filled with sea mines. Use your torpedoes wisely to clear a path through the mine field. Along the way you can pick up bonus packs like extra lives and more torpedoes.

The red sea mines take 1 torpedo hit to detonate and the grey sea mines take 2 torpedo hits to detonate.


You can download the Irix/Mac/Linux Mini-Sub game + source code here: (4.6 MB)

I have also packaged a Mac OS X friendly version that runs on 32-bit and 64-bit Intel Snow Leopard / Lion systems without the need for Mac Ports. This version bundles the program in a .app package and includes all of the required SDL frameworks to run by itself: (7.1 MB) Mac OS X 10.6/10.7


Mini-Sub Game on MaxxDesktop

Mini-Sub Game on MaxxDesktop 2


The yellow mini-sub is controlled by the cursor keys. Press the spacebar to fire a torpedo.

Press the TAB key to switch between fullscreen mode and windowed mode. Press the ESC key to quit the game.
Press the m key to mute the audio soundtrack.

You can change the game resolution from the command line:

To switch the display to 1024×768 in fullscreen mode:
./irix_mini-sub --window 1024 768 -fullscreen

To run the game at 1280×720 in windowed mode:
./irix_mini-sub --window 1280 720

Usage: mini-sub [options] Options:
--window <width> <height> [-fullscreen] Set the size of the main window

Version History

Version 1.0 Released Jan 29, 2013

This is the first version of the Mini-Sub game released for IRIX/Mac/Linux. It was created for the Winter Warmup 2013 RetroChallenge. This game is based upon the open source Mini-Sub game demo created for the Mikromedia dsPIC33 16-bit embedded computer.

IRIX Notes:

The IRIX executable is called “irix_mini-sub”. You need to have SDL installed for it to work on IRIX. You can download SDL, libsdl_image, libsdl_mixer, libsdl_gfx-framework, and libsdl_ttf from Nekoware. The IRIX version of the mini-sub game can be compiled with GCC on IRIX 6.5.

To compile it on IRIX run:
cd "Mini-Sub/source_code"
make -f Makefile.irix go

Main Nekoware Page:

Primary Nekoware Mirror:

Mac Notes:

For the Mac alpha version you need to start it from the command line so the program knows where the image resources are. If you double click on the file mac_mini-sub file you will get an error. I am working on improving my SDL image loading code to fix this issue.

To start the game enter the following at the terminal:
cd "Mini-Sub/game"

To compile it on Mac OS X run:
cd "Mini-Sub/source_code"
make -f Makefile.osx go

You can install the required SDL libraries using Mac Ports and xcode:

With Mac Ports installed run the following command from the terminal:
sudo port install libsdl-framework libsdl_image-framework libsdl_mixer-framework libsdl_gfx-framework libsdl_ttf-framework

Linux Notes:

The Linux executable is called “linux_mini-sub”. You need to have SDL installed for it to run on Linux.

To compile the game on Linux run:

cd "Mini-Sub/source_code"
make -f Makefile.linux go

Redhat/Centos Linux Tips

You can use YUM to install the SDL graphics libraries with the help of the EPEL repository:

If you are running Centos 6.3 you can use this package to automatically add the EPEL repo to YUM:

With EPEL installed run the following command from the terminal:
yum install gcc SDL-devel SDL_image-devel SDL_mixer-devel SDL_gfx-devel SDL_ttf-devel

Debian/Ubuntu/Elementary OS Linux Tips

You need to install the open source SDL libraries to run mini-sub. This can be done using the apt-get package manager from terminal:

Copyright (c) 2013 Andrew Hazelden.

The Mini-Sub game is released under a Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) license:

The Mini-Sub game uses the display font “Xolonium” which is licensed under the GPL 2.0 license.

The Mini-Sub game uses the soundtrack “Gameboy” by Pavese from the album “Best of Tony-B Machine” which is licensed under the Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) license:

  1. I have tested the game on my O2 (R10k/250, IRIX 6.5.27) and it runs nicely! The 1600×1024 fullscreen mode is too much for my poor old O2 but the 1024×768 mode is perfect. Thanks much!

  2. Thanks for trying the Mini-Sub game Jiri!

    It’s great to know the game ran fine on your Silicon Graphics R10K O2 System.

    Andrew Hazelden

Comments are closed.