First off, thank you for considering contributing to GM2Godot! It's people like you that make GM2Godot such a great tool. We welcome contributions from everyone and are grateful for even the smallest of fixes!
- Code of Conduct
- Getting Started
- Development Setup
- Coding Standards
- Commit Messages
- Testing
- Documentation
- Community
- Other
This project and everyone participating in it is governed by the GM2Godot Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [prayforniceland@gmail.com].
Contributions to GM2Godot are made via Issues and Pull Requests.
- Search for existing Issues and PRs before creating your own.
- We work hard to makes sure issues are handled in a timely manner but, depending on the impact, it could take a while to investigate the root cause. A friendly ping in the comment thread to the submitter or a contributor can help draw attention if your issue is blocking.
Issues should be used to report problems with the library, request a new feature, or to discuss potential changes before a PR is created. I am yet to make templates in the future to make this a bit easier.
If you find an Issue that addresses the problem you're having, please add your own reproduction information to the existing issue rather than creating a new one. Adding a reaction can also help be indicating to our maintainers that a particular problem is affecting more than just the reporter.
PRs to our libraries are always welcome and can be a quick way to get your fix or improvement slated for the next release. In general, PRs should:
- Only fix/add the functionality in question OR address wide-spread whitespace/style issues, not both.
- Add unit or integration tests for fixed or changed functionality (if a test suite already exists).
- Address a single concern in the least number of changed lines as possible.
- Include documentation in the repo if nessesary.
For changes that address core functionality or would require breaking changes (e.g. a major release), it's best to open an Issue to discuss your proposal first. This is not required but can save time creating and reviewing changes.
In general, we follow the "fork-and-pull" Git workflow
- Fork the repository
- Clone the project to your machine
git clone https://github.com/Infiland/GM2Godot
- Create a branch
- Commit changes to the branch
- Following any formatting and testing guidelines specific to this repo
- Push changes to your fork
- Open a PR in our repository and follow the PR template so that we can efficiently review the changes.
To set up GM2Godot for development:
- Fork and clone the repository
git clone https://github.com/Infiland/GM2Godot
- Install Python 3.9.0 or later
- Install required libraries:
pip install Pillow markdown2 tkhtmlview
- If you're on Linux, install Tkinter:
(if tkhtmlview is a problem, please use pip install tkhtmlview --break-system-packages)
sudo apt-get install python3-tk python3-pil python3-pil.imagetk python3-markdown2
- Run the program with:
python main.py
The project structure will keep changing as more features are added The main components/important parts of GM2Godot are:
-
main.py
: Main application -
gui.py
: Handles GUI main elements -
converter.py
: Handles and runs all of the conversion -
sprites.py
: Handles sprite conversion -
sounds.py
: Handles sound conversion -
fonts.py
: Handles font conversion -
notes.py
: Handles note conversion -
tilesets.py
: Handles tileset conversion -
shaders.py
: Converts GameMaker shaders to GDScript shaders -
project_settings.py
: Copies GameMaker settings to Godot -
included_files.py
: Copies GameMaker included files to Godot
img
: Contains image filessrc
: Contains main functionalitygui
: Has GUI related code
While not strict, it's good to follow these: (Even I mess up!)
- Follow PEP 8 for Python code style
- Use meaningful variable and function names
- Write clear comments and docstrings if nessesary
- Keep functions small and focused on a single task
While not strict, it's good to follow these: (Even I mess up!)
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Reference issues and pull requests if nessesary
Testing would require having both a GameMaker project and a Godot project.
You can snag my GameMaker project from this repo for testing:
git clone https://github.com/Infiland/TheColorfulCreature
You do not have to have GameMaker or run this project in GameMaker, but if you want to perform testing in Godot, run GM2Godot and use Godot 4.3 to create an empty project.
Documentation is a crucial part of this project. Please make sure to update the documentation when you make changes to the code. This includes the README.md and CONTRIBUTING.md files
Discussions about GM2Godot take place on this repository's Issues and Pull Requests sections. Anybody is welcome to join these conversations.
Wherever possible, do not take these conversations to private channels, including contacting the maintainers directly. Keeping communication public means everybody can benefit and learn from the conversation.
GameMaker is developing a new runtime called GMRT which changes the way how the runtime works for it, and terms like VC and YYC compiler will be depracated. When it comes out, more advanced features will be added, but it's a plan to keep simple and only include packages from the default runtime configuration