An small project intended to be used as an template for using C++ with GD-Extensions in the WebBrowser.
| BuildProject | File Upload | |
| Extension | File Upload | |
| Project | File Upload | |
| .gitignore | .gitignore updated | |
| LICENSE | Initial commit | |
| README.md | README.md aktualisiert | |
| SConstruct | File Upload | |
BitLife
An small project intended to be used as an template for using C++ with GD-Extensions in the WebBrowser. See Itch.io to see it running.
Features
- Template for building GD-Extensions for the Web
- One-click IDE compilation for Windows
- Usefull Example Class
Prerequsites
- Godot 4 executable
- C++ compiler
- SCons
- godot-cpp compiled
- .NET 7 or higher
- Emscripten
Setup
All OS
- Clone the repo into an empty folder
- Folow the steps show on the docs on how to download and build godot-cpp
- Place the godot-cpp in the folder
Windows
- Open Extension/solution.sln
- Set "BuildProject" as start up and press F5 to build for windows (To configure the start up project click on the small down arrow besides the build button in the top middle)
Linux/MacOS
- Open shell in root folder and type "scons platform=YOUR_PLATFORM" to build
Building for Web
- Search for emscripten install folder and find the emsdk_env .sh/.bat (For me its at "C:\Users\Hana\Code\Emscripten\emsdk\emsdk_env.bat")
- Open an shell in the root folder and execute the emsdk_env file (For me its "C:\Users\Hana\Code\Emscripten\emsdk\emsdk_env.bat")
- Then type scons platform=web (Note: You have to do the whole process everytime)