Skip to content

sqirramoon/GodotCppGameTemplate

Repository files navigation

Godot 4 C++ Game Template (via GDExtension)

This is a Godot Engine project template with GDExtension (C++) already setup to kickstart your project.

This template is meant for developing game code with C++ (à la Unreal Engine). For plugin development, I recommend using the official template instead.

For more information, refer to GDExtension C++ Example, as this is what this project is based on.

Before You Read

This template is tested in Godot 4.4 only. It is not guaranteed to work in earlier and later versions (especially Godot 4.0).

Getting Started

Prerequisites

  • Godot 4 executable
  • C++ build tools*
  • SCons*

* Follow this documentation for build tools installation according to your platform.

Installation

  1. Clone this repository somewhere locally alongside its submodules.

    git clone --recurse-submodules https://github.com/sqirramoon/GodotCppGameTemplate.git 
    
  2. Navigate to the cloned repo and go to .vscode folder. Depending on your platform, duplicate (copy & paste) the template launch file and rename it to exactly launch.json. Ex: Windows users should duplicate launch.windows.json.

  3. Open the cloned repo folder in VS Code.

  4. Edit the recently renamed launch.json in .vscode folder and make a few edits:

    • Change the example Godot executable path to your path.
    • (Optional) To use the debugger on the Godot Editor, append --editor in the arguments list.

Usage

It is advised to compile the extension before launching the project for the first time.

Compiling is easy, you can hit the build shortcut (default is Ctrl+Shift+B) or by going to Terminal > Run Build Task...

Debugging is supported. Hit the Run shortcut (default is F5) or by going to Run > Start Debugging.

License

This project is licensed under Do What The Fuck You Want To Public License (WTFPL), see LICENSE.txt for the full license text.

Acknowledgments

  • All of the Godot Engine authors and contributors. Thank you for your FOSS efforts!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors