Gravity Strike is a classic arcade-style shooter game originally developed by Jens Hassler. This repository contains the complete source code to build and run the game on modern Linux systems.
To compile Gravity Strike, you need the following libraries installed:
- Allegro 4.x (graphics and game library)
- AllegTTF 2.0 (TrueType font support)
- Allegro 5 audio codecs (MOD music playback)
- Lua 5 (scripting support)
- tolua 5 (Lua binding generator)
- Libnet (networking functions)
On Ubuntu/Debian systems:
sudo apt-get install build-essential liballegro4-dev liballegro-ttf-dev \
liblua5.3-dev libtolua++5.1-dev liballegro5-dev liballegro-acodec5-dev \
libnet1-devOn Fedora/RHEL systems:
sudo dnf install gcc gcc-c++ allegro-devel allegro-ttf-devel \
lua-devel tolua++-devel allegro5-devel libnet-develOn Gentoo systems:
# Install allegro with legacy support
emerge -av media-libs/allegro media-libs/allegro-ttf \
dev-lang/lua dev-lua/tolua++ \
media-libs/allegro dev-libs/libnetNote: Gravity Strike requires Allegro 4.x, but many modern systems only have Allegro 5.x installed. If your system only has Allegro 5, you may need to install Allegro 4 compatibility libraries or compile Allegro 4 from source.
There are multiple ways to build the game:
make allFirst, initialize the autotools build system:
./autogen.sh
./configure
makecd src
makeAfter building, run the game with:
./gslnxFor best performance when running as a normal user, you can set the proper permissions:
chmod 04755 gslnxTo install the game system-wide:
sudo make installThis will install the executable to /usr/local/bin and the data files to /usr/local/share/gravity.
To uninstall:
sudo make uninstall- Arrow keys: Move your ship
- Ctrl: Fire primary weapon
- Alt: Fire secondary weapon
- Shift: Accelerate
- F1: Help
- F2: Sound settings
- F3: Graphics settings
- F4: Gameplay settings
- ESC: Pause/Menu
This game was originally released as open-source by Jens Hassler in 2002. It was designed to work under DOS (DJGPP), Windows (Visual C++), and Linux (gcc/g++).
The highscore functionality is disabled in this version to prevent cheating on online score tables.
- Original author: Jens Hassler
- Modern build system: Created for compatibility with modern Linux systems