Thanks to visit codestin.com
Credit goes to github.com

Skip to content

liraymond04/olc-rts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

olc-rts

Simple pixel-style hex based RTS game.

Project using javidx9's olcPixelGameEngine

Untitled

Controls

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

Building is based on Moros1138's 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

# Use the -d flag to build for debugging
./build.sh

You can run the application using the built executable

./build/olc-rts

Windows

Install a C++ compiler like MinGW

Generate project makefiles and build with CMake

# Use the -d flag to build for debugging
./build.sh

Web build with Emscripten

Web builds use Emscripten, and need the following additional packages:

sudo pacman -S --needed emscripten

Build by passing in a new target flag to the build script

## Optionally pass the -d flag to build for debug
./build.sh -t web

You can run the application by opening a local web server with emrun

emrun build/olc-rts.html