API Document Index



Namespace me.sys


Defined in: <build/melonJS-0.9.3.js>.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
global system settings and browser capabilities
Field Summary
Field Attributes Field Name and Description
<static>  
me.sys.cacheImage
cache Image using a Canvas element, instead of directly using the Image Object
using this, performances are lower on OSX desktop (others, including mobile untested)
default value : false
<static>  
me.sys.dirtyRegion
Enable dirtyRegion Feature
default value : false
(!) not fully implemented/supported (!)
<static>  
me.sys.enableWebGL
Experimental WebGl support
https://github.com/corbanbrook/webgl-2d
Be sure to also load the WebGL library (webgl-2d.js) before melonJS
default value : false
<static>  
me.sys.fps
Game FPS (default 60)
<static>  
me.sys.gravity
Global gravity settings
will override entities init value if defined
default value : undefined
<static>  
me.sys.gyro
Browser Gyroscopic Motion Event capabilities (read-only)
<static>  
me.sys.interpolation
enable/disable frame interpolation (default disable)
<static>  
me.sys.localStorage
Browser Local Storage capabilities (read-only)
<static>  
me.sys.nativeBase64
Browser Base64 decoding capability (read-only)
<static>  
me.sys.scale
Global scaling factor(default 1.0)
<static>  
me.sys.sound
Browser Audio capabilities (read-only)
<static>  
Specify either to stop on audio loading error or not
if me.debug.stopOnAudioLoad is true, melonJS will throw an exception and stop loading
if me.debug.stopOnAudioLoad is false, melonJS will disable sounds and output a warning message in the console
default value : true
<static>  
me.sys.touch
Touch capabilities
<static>  
me.sys.ua
Browser User Agent (read-only)
<static>  
Use native "requestAnimFrame" function if supported
fallback to clearInterval if not supported by the browser
Namespace Detail
me.sys
global system settings and browser capabilities
Field Detail
<static> me.sys.cacheImage
cache Image using a Canvas element, instead of directly using the Image Object
using this, performances are lower on OSX desktop (others, including mobile untested)
default value : false

<static> me.sys.dirtyRegion
Enable dirtyRegion Feature
default value : false
(!) not fully implemented/supported (!)

<static> me.sys.enableWebGL
Experimental WebGl support
https://github.com/corbanbrook/webgl-2d
Be sure to also load the WebGL library (webgl-2d.js) before melonJS
default value : false

<static> me.sys.fps
Game FPS (default 60)

<static> me.sys.gravity
Global gravity settings
will override entities init value if defined
default value : undefined

<static> me.sys.gyro
Browser Gyroscopic Motion Event capabilities (read-only)

<static> me.sys.interpolation
enable/disable frame interpolation (default disable)

<static> me.sys.localStorage
Browser Local Storage capabilities (read-only)

<static> me.sys.nativeBase64
Browser Base64 decoding capability (read-only)

<static> me.sys.scale
Global scaling factor(default 1.0)

<static> me.sys.sound
Browser Audio capabilities (read-only)

<static> me.sys.stopOnAudioError
Specify either to stop on audio loading error or not
if me.debug.stopOnAudioLoad is true, melonJS will throw an exception and stop loading
if me.debug.stopOnAudioLoad is false, melonJS will disable sounds and output a warning message in the console
default value : true

<static> me.sys.touch
Touch capabilities

<static> me.sys.ua
Browser User Agent (read-only)

<static> me.sys.useNativeAnimFrame
Use native "requestAnimFrame" function if supported
fallback to clearInterval if not supported by the browser

Documentation generated by JsDoc Toolkit 2.4.0 on Tue May 01 2012 12:00:50 GMT+0800 (CST)