https://github.com/hsandt/stealth-engine
2D game engine in C++ for personal training
https://github.com/hsandt/stealth-engine
box2d catch-tests cpp game-engine-2d glfw3 opengl
Last synced: about 19 hours ago
JSON representation
2D game engine in C++ for personal training
- Host: GitHub
- URL: https://github.com/hsandt/stealth-engine
- Owner: hsandt
- Created: 2017-12-21T22:58:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-30T15:06:13.000Z (over 5 years ago)
- Last Synced: 2025-02-12T11:29:03.505Z (about 1 year ago)
- Topics: box2d, catch-tests, cpp, game-engine-2d, glfw3, opengl
- Language: C++
- Homepage:
- Size: 3.48 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://codecov.io/gh/hsandt/Stealth-Engine)
[](https://codecov.io/gh/hsandt/Stealth-Engine)
# Stealth Engine
A 2D game engine written in C++ for development in C++. Supported platforms for both development and build are Linux, OSX, Windows.
This is a personal project I am working on for training purpose. This project started as a framework I intended to use for a top-view Stealth game with a variety of AI applications, but it gradually turned into a generic 2D engine.
# Current features
* Basic physics
* Basic input
* Some OpenGL primitives
* Scene-actor
* Entity-components
## Current work
Integrating CodeCov
## Build dependencies
Here are some build dependencies detailed for Linux Ubuntu, and a bit of OS X.
In doubt, you can also check the .travis.yml file for the most important parts of the setup.
### Box2D
Box2D requires premake5 to be built.
Install premake from [the website](https://premake.github.io/download.html#v5) or use that snippet based on .travis.yml:
PREMAKE_VERSION="5.0.0-alpha12"
wget "https://github.com/premake/premake-core/releases/download/v${PREMAKE_VERSION}/premake-${PREMAKE_VERSION}-src.zip"
rm -rf "premake-${PREMAKE_VERSION}"
unzip "premake-${PREMAKE_VERSION}-src.zip"
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
PREMAKE_BUILD_DIR="gmake.unix"
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
PREMAKE_BUILD_DIR="gmake.macosx"
fi
- pushd "premake-${PREMAKE_VERSION}/build/${PREMAKE_BUILD_DIR}"
- make ${MAKEFLAGS}
- popd
- mkdir "/usr/local/bin" -p
- sudo ln -s "$(pwd)/premake-${PREMAKE_VERSION}/bin/release/premake5" /usr/local/premake5`
### GLFW
To load CMake project, if using X11:
`sudo apt-get install libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev`
To build, if using X11:
`sudo apt-get install libxi-dev`
### OpenGL / GLU
Install the appropriate graphics packages.
MESA:
`sudo apt-get install libglu1-mesa-dev`
This will also install `libgl1-mesa-dev` and `mesa-common-dev` as a dependency. GLU is required for GLEW.
NVIDIA:
Install NVIDIA packages for your graphics card.