PDG engine v0.9.5
 All Classes Namespaces Functions Variables Groups Pages
Classes | Functions
Managers

The main points of interface to the Pixel Dust Game Framework. More...

Collaboration diagram for Managers:

Classes

class  ConfigManager
 used for loading and saving application configuration info More...
 
class  EventManager
 Distributes events to event handlers. More...
 
class  FileManager
 extras beyond what Node.js FileSystem provides More...
 
class  GraphicsManager
 Used to create and track ports (GUI Only) More...
 
class  LogManager
 used for doing logging with variable debug levels More...
 
class  ResourceManager
 used for loading resources More...
 
class  SoundManager
 used for application wide sound settings and options (GUI Only) More...
 
class  TimerManager
 manages timers that can fire at a particular time, or repeatedly at an interval More...
 

Functions

 cfg
 the singleton instance of the ConfigManager More...
 
 evt
 the singleton instance of the EventManager More...
 
 fs
 the singleton instance of the FileManager More...
 
 gfx
 the singleton instance of the GraphicsManager More...
 
 res
 the singleton instance of the ResourceManager More...
 
 snd
 the singleton instance of the SoundManager More...
 
 tm
 the singleton instance of the TimerManager More...
 

Detailed Description

The main points of interface to the Pixel Dust Game Framework.

Function Documentation

cfg
related

the singleton instance of the ConfigManager

var username = pdg.cfg.getConfigString('username');
evt
related

the singleton instance of the EventManager

var aIsPressed = pdg.evt.isKeyDown('a');
fs
related

the singleton instance of the FileManager

var fileList = pdg.fs.findFiles('examples/*.scml');
gfx
related

the singleton instance of the GraphicsManager

var r = new Rect(1024, 768);
var port = pdg.gfx.createWindowPort(r, "PDG Test Window");
res
related

the singleton instance of the ResourceManager

pdg.res.openResourceFile('./data');
console.log( pdg.res.getResourcePaths() );
snd
related

the singleton instance of the SoundManager

pdg.snd.setVolume(0.5);
tm
related

the singleton instance of the TimerManager

pdg.tm.pause();

User Comments