Mini-Sub Game for IRIX/Mac/Linux V1.0
Created by Andrew Hazelden
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:
Mini-Sub.zip (4.6 MB)
I have also packaged a Mac OS X friendly Mini-Sub.app 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:
Mini-Sub.app.zip (7.1 MB) Mac OS X 10.6/10.7
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]
--window <width> <height> [-fullscreen] Set the size of the main window
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.
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:
make -f Makefile.irix go
Main Nekoware Page:
Primary Nekoware Mirror:
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:
To compile it on Mac OS X run:
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
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:
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:
sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-gfx1.2-dev libsdl-ttf2.0-dev
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: