Skip to content

A simple OpenGL game engine written in C++ with Python scripting

License

Notifications You must be signed in to change notification settings

varunthomas/TurboGE

Repository files navigation

TurboGE License

TurboGE is a small game engine created in C++20 using OpenGL rendering. It uses Python as scripting language. This is made purely for learning purposes.


Getting Started

TurboGE is created in Windows environment and other OS are not considered at the moment. Recommended version of Visual Studio: 2022

1. Download source code:

Start by cloning the repository with git clone --recursive https://github.com/varunthomas/TurboGE.

2. Download and Install Vulkan:

Go to Vulkan and download the windows SDK:
https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-sdk.exe
Install the Vulkan SDK.
Select all optional components

3. Download and install latest Python:

  1. Go to https://www.python.org/downloads/ and download latest Python
  2. When installing check Add python.exe to PATH
  3. Select Customize installation. Select all components.

3. Generate the solution:

  1. Run the init.bat file in the root directory. This will install premake and any dependencies.
  2. Run the GenerateProjects.bat file in the root directory. This will run the premake required to build the project. This will also create the Visual Studio solutions file.

Main features:

  • Python Scripting (Pyscript)
  • Quad rendering
  • Sprite rendering
  • Batching
  • Blending
  • Editor App to change the transforms, sprite and camera at runtime.
  • Orthographic and Perspective camera
  • Free moving camera for editor.
  • Vulkan support using SPIRV
  • Chrome tracing for profiling

References:

  • Cherno Game Engine
  • learnopengl.com
  • Sample python script can be referenced in Editor/scripts/sample.py

Screenshots: alt text

Releases

No releases published

Packages

No packages published