yyagl.engine package

Submodules

yyagl.engine.audio module

class yyagl.engine.audio.EngineAudio(mdt, vol=1.0)

Bases: yyagl.gameobject.Audio

set_volume(vol)

yyagl.engine.configuration module

class yyagl.engine.configuration.Cfg(gui_cfg, profiling_cfg, lang_cfg, cursor_cfg, dev_cfg)

Bases: object

class yyagl.engine.configuration.CursorCfg(cursor_hidden=False, cursor_path='', cursor_scale=(1, 1, 1), cursor_hotspot=(0, 0))

Bases: object

class yyagl.engine.configuration.DevCfg(mt_render=False, model_path='assets/models', shaders_dev=False, gamma=1.0, menu_joypad=True, verbose='', verbose_log=False)

Bases: object

class yyagl.engine.configuration.GuiCfg(fps=False, win_size='1280 720', win_orig=None, win_title='yyagl', fullscreen=False, sync_video=None, antialiasing=False, volume=1)

Bases: object

class yyagl.engine.configuration.LangCfg(lang='en', lang_path='assets/locale', lang_domain='yyagl_game', languages=['English'])

Bases: object

class yyagl.engine.configuration.ProfilingCfg(profiling=False, pyprof_percall=False)

Bases: object

yyagl.engine.engine module

class yyagl.engine.engine.Engine(cfg=None)

Bases: yyagl.gameobject.GameObject, yyagl.engine.enginefacade.EngineFacade

cfg
closest_res
curr_path
curr_time
destroy()
is_runtime
joystick_mgr
languages
network_priority = -39
resolutions
version

yyagl.engine.enginefacade module

class yyagl.engine.enginefacade.EngineFacade

Bases: yyagl.facade.Facade

load_model(filename, callback=None, extra_args=, []anim=None)
remove_do_later(tsk)

yyagl.engine.event module

class yyagl.engine.event.EngineEvent(mdt, emulate_keyboard)

Bases: yyagl.gameobject.Event

destroy()

yyagl.engine.font module

class yyagl.engine.font.FontMgr

Bases: yyagl.gameobject.GameObject

destroy()
load_font(fpath, outline=True)

yyagl.engine.gfx module

class yyagl.engine.gfx.EngineGfx(mdt, model_path, antialiasing)

Bases: yyagl.gameobject.Gfx

clean()
init()
load_model(filename, callback=None, extra_args=, []anim=None)
static particle(parent, pos, hpr, color, tot_time)
print_stats()
static set_toon()

yyagl.engine.joystick module

class yyagl.engine.joystick.JoystickMgr(emulate_keyboard)

Bases: yyagl.gameobject.GameObject

destroy()
get_joystick()
static has_support()
on_frame()

yyagl.engine.lang module

class yyagl.engine.lang.LangMgr(lang, domain, dpath)

Bases: yyagl.gameobject.GameObject

lang_codes
set_lang(lang)

yyagl.engine.log module

class yyagl.engine.log.LogMgr(mdt)

Bases: yyagl.engine.log.LogMgrBase

log_cfg()
class yyagl.engine.log.LogMgrBase(mdt)

Bases: yyagl.gameobject.Colleague

static init_cls()
log(msg, verbose=False)
log_cfg()
log_tasks()

yyagl.engine.logic module

class yyagl.engine.logic.EngineLogic(mdt, cfg=None)

Bases: yyagl.gameobject.Logic

curr_path
destroy()
is_runtime
version

yyagl.engine.particle module

class yyagl.engine.particle.Particle(parent, pos, hpr, color, tot_time)

Bases: yyagl.gameobject.GameObject

destroy()

yyagl.engine.pause module

class yyagl.engine.pause.PauseGui(mdt)

Bases: yyagl.gameobject.Gui

destroy()
toggle(show_frm=True)
class yyagl.engine.pause.PauseLogic(mdt)

Bases: yyagl.gameobject.Logic

destroy()
pause()
remove_task(tsk)
resume()
toggle(show_frm=True)
class yyagl.engine.pause.PauseMgr(mdt)

Bases: yyagl.gameobject.GameObject, yyagl.gameobject.Colleague

destroy()
remove_task(tsk)

yyagl.engine.phys module

class yyagl.engine.phys.CollInfo

Bases: tuple

CollInfo(node, time)

node

Alias for field number 0

time

Alias for field number 1

class yyagl.engine.phys.PhysFacade

Bases: yyagl.facade.Facade

class yyagl.engine.phys.PhysMgr(mdt)

Bases: yyagl.gameobject.Colleague, yyagl.engine.phys.PhysFacade

add_collision_obj(node)
on_frame()
ray_test_closest(top, bottom, mask=None)
remove_collision_obj(node)
reset()
start()
stop()
toggle_debug()

yyagl.engine.profiler module

class yyagl.engine.profiler.AbsProfiler(percall)

Bases: object

static build(percall)
printstats()
toggle()
class yyagl.engine.profiler.PerCallProfiler(percall)

Bases: yyagl.engine.profiler.Profiler

class yyagl.engine.profiler.Profiler(percall)

Bases: yyagl.engine.profiler.AbsProfiler

printstats()
toggle()

yyagl.engine.shader module

yyagl.engine.vec module

Module contents