API Document Index



Class me.ObjectSettings


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

Class Summary
Constructor Attributes Constructor Name and Description
 
me.ObjectSettings contains the object attributes defined in Tiled
and is created by the engine and passed as parameter to the corresponding object when loading a level
the field marked Mandatory are to be defined either in Tiled, or in the before calling the parent constructor
Field Summary
Field Attributes Field Name and Description
 
Enable collision detection for this object
OPTIONAL
 
image ressource name to be loaded
MANDATORY
(in case of TiledObject, this field is automatically set)
 
object entity name
as defined in the Tiled Object Properties
 
height of a single sprite in the spritesheet
OPTIONAL
if not specified the value will be set to the corresponding image height
(in case of TiledObject, this field is automatically set)
 
width of a single sprite in the spritesheet
MANDATORY
(in case of TiledObject, this field is automatically set)
 
specify a transparent color for the image in rgb format (rrggb or #rrggb)
OPTIONAL
(using this option will imply processing time on the image)
 
custom type for collision detection
OPTIONAL
Class Detail
me.ObjectSettings()
me.ObjectSettings contains the object attributes defined in Tiled
and is created by the engine and passed as parameter to the corresponding object when loading a level
the field marked Mandatory are to be defined either in Tiled, or in the before calling the parent constructor
Field Detail
collidable
Enable collision detection for this object
OPTIONAL

image
image ressource name to be loaded
MANDATORY
(in case of TiledObject, this field is automatically set)

name
object entity name
as defined in the Tiled Object Properties

spriteheight
height of a single sprite in the spritesheet
OPTIONAL
if not specified the value will be set to the corresponding image height
(in case of TiledObject, this field is automatically set)

spritewidth
width of a single sprite in the spritesheet
MANDATORY
(in case of TiledObject, this field is automatically set)

transparent_color
specify a transparent color for the image in rgb format (rrggb or #rrggb)
OPTIONAL
(using this option will imply processing time on the image)

type
custom type for collision detection
OPTIONAL

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