Little-Ruler
Little-Ruler copied to clipboard
An OpenGL game engine that can be built for Android and Windows.
한국어
Little Ruler
- My own game engine project. Code once, build for both Windows and Android.
- Relavant game engine source codes are in
{repo_root}/engine
.
Developer
- Sungmin Woo, An University Sturent
- [email protected]
Folders in Repo Root
engine
- All the C++ codes for game are here.
extern
- Git submodules are here.
- You shouldn't touch anything inside it.
externtool
- Some submodules does not include CMakeLists.txt so I make ones myself.
- Those CMakeLists.txt are here.
LittleRulerAndroid
- Android Studio project to build apk to run on Android platform.
- It contains some java codes to define some Android views.
- It uses C++ codes in
{repo_root}/engine
via CMake.
Resource
- Resource files such as 3D models, images, texts, fonts are here.
Control
Windows
- WASD : Horizontal movement
- Keyboard arrows : View direction
- Mouse click AND drag (not OR) : Same as touch control on phones, which controls view direction.
Android
- White point on lower left side of the screen : D-Pad
- Rest of the screen : View direction
How to Build
- Clone this repo with
--recurse-submodules
option like below. -
git clone --recurse-submodules -j8 https://github.com/SausageTaste/Little-Ruler
- Install python interpreter and add it to PATH environment variable. (GLAD lib requires it)
Android
- Open
{repo_root}/LittleRulerAndroid
folder on Android Studio and just click build.
Windows
- Build
{repo_root}/engine/LittleRulerWindows/CMakeLists.txt
with CMake. - I only tested on Visual Studio 2019 and mingw-w64 8.1.0.
- I don't know why but you need to do
Build Solution (F7)
several times or see error message saying "zlibstatic is not found".
Implementation
By Platforms
Windows | Android | |
Render | OpenGL 3.0 | OpenGL ES 3.0 |
Window Creation | GLFW | Java GLSurfaceView |
Filesystem | Windows API | Android Asset Manager and std::fstream |