Source

pygamekit / gamekit.pyx


'''
The Gamekit Python module has everything needed to make a game with Python.

Report any missing feature to dithi (at) universodegoma.net.
'''

include "pywrap.pxi"
include "sensor.pxi"
include "controller.pxi"
include "actuator.pxi"
include "gameobject.pxi"
include "camera.pxi"
include "entity.pxi"
include "animation.pxi"
include "collision.pxi"
include "scene.pxi"
include "engine.pxi"
include "blendfile.pxi"
include "input.pxi"
include "sound.pxi"
#include "overlay.pxi"
#include "skyxhydrax.pxi"

#gkLogger_enable(gkString("AppCppDemo.log"), GK_CPP_VERBOSE_LOG)

cdef gkUserDefs *prefs = new gkUserDefs()
#prefs.rendersystem = OGRE_RS_GL
prefs.winsize.x = 1280
prefs.winsize.y = 720
#prefs.fullscreen = True
prefs.wintitle = gkString("Pixelements Python Gamekit.")
#prefs.verbose = GK_CPP_VERBOSE_LOG
#prefs.fsaa = True
#prefs.debugPhysics = True
#prefs.debugFps = True
prefs.grabInput = False
#prefs.useBulletDbvt = False
prefs.enableshadows = 0
prefs.shadowtechnique = gkString("textureadditive")

PLATFORM = ""
if GK_PLATFORM == GK_PLATFORM_WIN32:
    PLATFORM = "WIN32"
elif GK_PLATFORM == GK_PLATFORM_APPLE:
    PLATFORM = "APPLE"
elif GK_PLATFORM == GK_PLATFORM_APPLE_IOS:
    PLATFORM = "APPLE_IOS"
elif GK_PLATFORM == GK_PLATFORM_LINUX:
    PLATFORM = "LINUX"
elif GK_PLATFORM == GK_PLATFORM_ANDROID:
    PLATFORM = "ANDROID"