#Kudu Engine
Kudu is a game engine written in python (compatible with 2-3), depending on python-sfml (pygame if not found) and Box2D. It can be embed in Pookoo engine.
It use JSON to store game data like the structure of level and the images of the player animation, or the GUI.
Documentation here
###Install Install python-sfml (or pygame, but deprecated ) and Box2D
- Create an init JSON file in data/json/init.json who will look like this:
"init": "data/json/level.json",
"screen_size": [1280,720]
} ```
- Create a level JSON file:
``` {
"images": {
},
"physic_object": {
}
} ```
### Build executable on windows
Use cx_Freeze with this setup file:
``` import sys
from cx_Freeze import setup, Executable
build_exe_options = {"includes":["numbers","re"], "excludes":["sfml"]}
base = None
setup( name = "Kudu",
version = "0.1",
description = "My GUI application!",
options = {"build_exe": build_exe_options},
executables = \[Executable("main.py", base=base)\]) ```
You should now put the sfml folder from C:\PythonXX\Lib\site-package\sfml into the folder containing the executable.
Then ``` python setup.py build ```
###TODO
- Editor
- GUI element
- Custom init creation at start
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2014 Elias Farhan <elias.farhan@team-kwakwa.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.