Enjoy the cosmic weightlessness and avoid enemies in a 2D space.
Author's weightlessness steering - realistic movement and space-like steering created from scratch.
Make the game by learning C++ and random framework. In this case - SDL2.
- at least 1280x720 display resolution,
- GNU/Linux or macOS.
g++
(gcc
withlibstdc++
) with version of8
or above.
Goal: avoid the Nebulas (grey-red vechicles) by steering the Ufo using arrows. Note that there is no gravity. Menu buttons confirmation is done by clicking enter key and pausing the game by escape key. Unfortunately changing the system resolution with the game opened may break it's rendering.
Works well on GNU/Linux. On macOS a bare binary is build instead of Application Bundles vel .app
. On Windows some fonts are blended and Nebulas (enemies) position randomization doesn't work.
sudo apt update &&
sudo apt install git git-lfs gcc g++ make libsdl2-dev libsdl2-ttf-dev &&
git clone https://gitlab.com/mattmaniak/pixufo.git &&
cd pixufo &&
make &&
./PixUfo
brew update &&
brew install git git-lfs gcc g++ make sdl2 sdl2_ttf &&
git clone https://gitlab.com/mattmaniak/pixufo.git &&
cd pixufo &&
make &&
./PixUfo
make clean
Coding style is Google C++ Style Guide.
Python 3 is required to do it via cpplint.
python3 -m venv .venv &&
source .venv/bin/activate &&
python3 -m pip install -r python_packages.txt
Running C++ Linter
make lint