https://github.com/aleksaheler/pixelgameengine-template-project
Template project to be used as starting point for olcPixelGameEngine
https://github.com/aleksaheler/pixelgameengine-template-project
olcpixelgameengine
Last synced: about 2 months ago
JSON representation
Template project to be used as starting point for olcPixelGameEngine
- Host: GitHub
- URL: https://github.com/aleksaheler/pixelgameengine-template-project
- Owner: AleksaHeler
- Created: 2024-12-28T17:57:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-28T18:06:56.000Z (about 1 year ago)
- Last Synced: 2024-12-28T19:17:36.746Z (about 1 year ago)
- Topics: olcpixelgameengine
- Language: C++
- Homepage: https://github.com/OneLoneCoder/olcPixelGameEngine
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to set everything up
This is my template for One Lone Coder's [Pixel Game Engine](https://github.com/OneLoneCoder/olcPixelGameEngine). It's a nice platform for creating interactive games or applications in C++.
It's a basic project structure, using CMake to generate Makefile which is then used by make to build the executable.
## Installation
### Compiler
Download and install [MSYS2](https://www.msys2.org/).
Open MSYS2, and run command to update the package database and core packages by running: ```pacman -Syu```
Install GCC with: ```pacman -S mingw-w64-x86_64-toolchain```
This installs the full toolchain, including the gcc, g++, gdb (debugger), and make utilities.
Finally, add install directory "C:\msys64\mingw64\bin" to PATH environment variable.
### CMake
Download and install [CMake](https://cmake.org/download/).
## Project setup, file structure
```
project/
├─ env/
│ ├─ CMakeLists.txt - project define
├─ include/
│ ├─ olcPixelGameEngine.h - game engine library
├─ src/
│ ├─ main.cpp - entry point
│ ├─ main.h
├─ build.bat - runs CMake, and then MinGW make
├─ run.bat
├─ clean.bat
```