This repo is based on a simplified mjurczyk/three-default-cube (docs) - while, at the same time, it also makes the rendering no longer dependent on three.js (see both PixiRenderService
and ThreeRenderService
for sample renderer implementations.)
services/
: directory containing logic implementationsgame-views/
: directory containing view structuresgame-objects/
: directory containing game objects and their logic
Internal handling of rendering.
Internal handling of assets and disposal.
You can use InputService.registerKeyListener
to reactively listen to key events.
You can use ParserService.pauseGame
and ParserService.resumeGame
to contol the gameplay loop. Use ParserService.renderView
to change current view to a new one.
You can use ScheduleService.registerFrameListener
, ScheduleService.registerInterval
, and ScheduleService.registerTimeout
to safely create timed routines.
You can use VarService.getVar
and VarService.setVar
to reactively control the global state.