gmPython allows you to use the Python language to extend your game. It supports registering GML scripts within the loaded Python files, calling Python functions inside the file you load and it pre-loads all of Game Maker's drawing functions. Best of all, it allows you to use the extensive Python libraries that are available (you will need Python 2.6 installed to use the libraries and before distribution you will need to copy those that you use to your games directory, or a subdirectory of that so that they are available on the player's machine).
- Call GML scripts from Python
- Call Python functions from Game Maker
- Game Maker's drawing functions are preloaded
- Load multiple Python files
- You can now use Python libraries in your game (such as wxWidgets if you want)
I will get around to writing some documentation here, but the example GM file and example Python file in the download shows and uses all available functions. The following additional modules are available for usage:
gmapi - Game Maker's drawing functions are loaded into this. Simply call gmapi.draw_circle(x,y,r,outline) to use the draw_circle function, etc..
gameapi - Provides access to a class which provides access to in-game scripts. Use:
myGameAPI = gameapi.GameAPI(); myGameAPI.show_my_message(42,"The meaning of life.");Notes:
This DLL was created for my own usage, therefore, I won't be adding additional features unless I need them for my own game. I'm providing it purely so that you can take advantage of Python too.
No credit required in freeware games, credit required ("Roket Enterprises") if for commercial use. No royalties required for commercial usage.
Version 1.1 (Example, Merge GMK & No Source - 2.3MB)
Version 1.1 (Example, Merge GMK & Source - 2.5MB)
Edited by Hach-Que, 01 October 2010 - 01:23 PM.