https://github.com/nonunknown/gdextension-creator
https://github.com/nonunknown/gdextension-creator
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nonunknown/gdextension-creator
- Owner: nonunknown
- License: mit
- Created: 2021-12-21T14:06:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-31T10:02:32.000Z (about 4 years ago)
- Last Synced: 2025-05-05T02:36:15.745Z (about 1 year ago)
- Language: Python
- Size: 26.4 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GDExtension Project Creator
this is a script (currently only for linux) where you execute a script that generates a base project for your gdextension, it setups all base files needed for the most basic of gdextension.
## News
* fix bug: `create_project.sh` not renaming the `.gdextenstion` file
## Installation
* Download godot-cpp -> https://github.com/godotengine/godot-cpp
* Download the content of this repo
* extract inside the `godot-cpp` folder
## How to use
* open terminal at godot-cpp folder
* type: `./create_project.sh`
* You will be asked for project name which will be the folder name and the resulting build file names
* Then it will ask the class you want to extends like: Control,Node3D,Node
* at last it will tell you to moodify `build.sh` and `move.sh`
* `build.sh` will build your project
* `move.sh` where is `OUTDIR` change to the project you want the output files to be
## Extra
I've added inside the `base` folder a script called `create_class.sh` which means when you create a project the script is copied to your project folder, the name itself describes what it does, it create a new class and already reagister it on `register_types.cpp` which means you can add classes faster now:
* on terminal type `./create_class.sh`
* Will be asked for class name
* Then which class your class extends from i.e Control,Node....
* Done
## HELP
If you understand windows `.bat`, and want to convert the .sh scripts for windows, your PR is very welcome!