The Fortune Engine GameEngine is a main loop wrapper around pygame. It
manages the event and drawing loops allowing the user to just register
for user events and drawing time in the draw loop.
|
__init__(self,
width=1200,
height=900,
always_draw=False,
fps_cap=15,
version=False,
title=' FortuneEngine ' )
Constructor for the game engine. |
source code
|
|
|
set_dirty(self)
Sets the dirty flag to force the engine to draw the next time it
enters the draw flag. |
source code
|
|
|
|
|
|
|
|
|
list_event_timers(self)
returns a list of configured timers, if the timers has a time of 0
the timer is disabled |
source code
|
|
|
list_timer_time(self)
Returns a string representation of the time the game spends in each
timer callback. |
source code
|
|
|
|
|
_draw(self,
tick_time)
Draws all elements in draw callback to the screen |
source code
|
|
|
|
|
stop_event_loop(self)
Sends a pygame.QUIT event into the event queue which exits the event
loop |
source code
|
|
|
|
|
|
|
list_event_callbacks(self)
Returns a string representation of all events registered with the
game engine |
source code
|
|
|
list_event_time(self)
Returns a string representation of the time the game spends in each
event callback. |
source code
|
|
|
|
|
|
|
clear_draw_callback(self)
Empties draw callback stack |
source code
|
|
|
|
|
list_draw_callbacks(self)
Lists all the draw callbacks currently registered with the game
engine |
source code
|
|
|
list_draw_time(self)
Returns a string representation of the time the game spends in each
drawing callback. |
source code
|
|
|
|
|
|
|
|
|
|
|
list_objects(self)
Returns a sting of registered objects |
source code
|
|
|
|
|
art_scale(self,
original,
expected,
width=True) |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|