Application module¶
- class Application.Application(prcName, debug=False, forceDisableRenderPipelineDebug=True)¶
Bases:
direct.showbase.ShowBase.ShowBase
Application: The main game class. Storing everything from world, interface, developer console, etc.
- Parameters
ShowBase (panda3d.core.ShowBase) – The base class for Panda3D.
- catchMouse(catch=True)¶
catchMouse Catches the mouse in the window.
- Parameters
catch (bool, optional) – Should the mouse be catched or not, defaults to True
- createBulletWorld()¶
createBulletWorld Creates the Bullet Physics world.
- getLogger(func)¶
getLogger Creates a python logging object with the name of the function.
- Parameters
func (function) – The function that is being logged.
- Returns
The python logger.
- Return type
logging.Logger
- keybinds(disable=False)¶
keybinds Binds the keybinds for the game. It should be overwritten in a child class to assign the keybinds
- Parameters
disable (bool, optional) – Should all keybinds be disabled or not. This is important for the console to don’t execute keybinds while writing commands, defaults to False
- update(task)¶
update The main loop for the whole game.
- Parameters
task – Task object from the task manager.