Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liraymond04/olc-rts
Simple pixel-style hex based RTS game.
https://github.com/liraymond04/olc-rts
c-plus-plus cpp game-development hex hexagonal-grids hexagonal-tiles olc olcpixelgameengine pge pixel-art real-time-strategy rts
Last synced: 2 days ago
JSON representation
Simple pixel-style hex based RTS game.
- Host: GitHub
- URL: https://github.com/liraymond04/olc-rts
- Owner: liraymond04
- License: other
- Created: 2023-07-08T20:42:33.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-30T02:10:43.000Z (about 1 year ago)
- Last Synced: 2025-01-19T13:17:04.782Z (5 days ago)
- Topics: c-plus-plus, cpp, game-development, hex, hexagonal-grids, hexagonal-tiles, olc, olcpixelgameengine, pge, pixel-art, real-time-strategy, rts
- Language: C++
- Homepage:
- Size: 123 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# olc-rts
Simple pixel-style hex based RTS game.
Project using javidx9's [olcPixelGameEngine](https://github.com/OneLoneCoder/olcPixelGameEngine)
![Untitled](https://github.com/liraymond04/olc-rts/assets/39678448/3e727835-1750-4ab7-89ab-e193114c25bc)
## Controls
| Button | Action |
| ----------- | ----------- |
| 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
Building is based on Moros1138's [pge-template-project](https://github.com/Moros1138/pge-template-project) CMake files
### Arch Linux
Install the required packages with the following command
`sudo pacman -Sy base-devel cmake git libpng mesa`
Generate project makefiles and build with CMake
```bash
# Use the -d flag to build for debugging
./build.sh
```### Windows
Install a C++ compiler like [MinGW](https://sourceforge.net/projects/mingw/)
Generate project makefiles and build with CMake
```bash
# Use the -d flag to build for debugging
./build.sh
```