Simple pixel-style hex based RTS game.
Project using javidx9's olcPixelGameEngine
| Button | Action |
|---|---|
| Esc | Close game |
| W | Move camera up |
| A | Move camera left |
| S | Move camera right |
| D | Move camera down |
| Z | Increase hex tile height |
| C | Decrease hex tile height |
| Left click | Select hex tile |
| Right click | Move player (if selected hex tile has player) |
Building is based on Moros1138's pge-template-project CMake files
Install the required packages with the following command
sudo pacman -Sy base-devel cmake git libpng mesa
Generate project makefiles and build with CMake
# Use the -d flag to build for debugging
./build.shYou can run the application using the built executable
./build/olc-rtsInstall a C++ compiler like MinGW
Generate project makefiles and build with CMake
# Use the -d flag to build for debugging
./build.shWeb builds use Emscripten, and need the following additional packages:
sudo pacman -S --needed emscriptenBuild by passing in a new target flag to the build script
## Optionally pass the -d flag to build for debug
./build.sh -t webYou can run the application by opening a local web server with emrun
emrun build/olc-rts.html