2013-10-01 15:15:45 +00:00
<!DOCTYPE html>
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
< html lang = "en" >
< head >
2013-10-02 00:16:40 +00:00
< meta charset = "utf-8" >
< title > Phaser Class: Parser< / title >
<!-- [if lt IE 9]>
< script src = "//html5shiv.googlecode.com/svn/trunk/html5.js" > < / script >
<![endif]-->
< link type = "text/css" rel = "stylesheet" href = "styles/sunlight.default.css" >
< link type = "text/css" rel = "stylesheet" href = "styles/site.cerulean.css" >
2013-10-01 15:15:45 +00:00
< / head >
< body >
2013-10-02 00:16:40 +00:00
< div class = "container-fluid" >
< div class = "navbar navbar-fixed-top navbar-inverse" >
< div class = "navbar-inner" >
< a class = "brand" href = "index.html" > Phaser< / a >
< ul class = "nav" >
< li class = "dropdown" >
< a href = "modules.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Modules< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li >
< a href = "module-Phaser.html" > Phaser< / a >
< / li >
< / ul >
< / li >
< li class = "dropdown" >
< a href = "classes.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Classes< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li >
< a href = "Phaser.Animation.html" > Animation< / a >
< / li >
< li >
< a href = "Phaser.Animation.Frame.html" > Frame< / a >
< / li >
< li >
< a href = "Phaser.Animation.FrameData.html" > FrameData< / a >
< / li >
< li >
< a href = "Phaser.Animation.Parser.html" > Parser< / a >
< / li >
< li >
< a href = "Phaser.AnimationManager.html" > AnimationManager< / a >
< / li >
< li >
< a href = "Phaser.Camera.html" > Camera< / a >
< / li >
< li >
< a href = "Phaser.Game.html" > Game< / a >
< / li >
< li >
< a href = "Phaser.Group.html" > Group< / a >
< / li >
< / ul >
< / li >
< / ul >
< / div >
< / div >
< div class = "row-fluid" >
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
< div class = "span8" >
< div id = "main" >
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
< h1 class = "page-title" > Class: Parser< / h1 >
2013-10-01 15:15:45 +00:00
< section >
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
< header >
< h2 >
2013-10-02 00:16:40 +00:00
< span class = "ancestors" > < a href = "Phaser.Animation.html" > .Animation< / a > .< / span >
2013-10-01 15:15:45 +00:00
Parser
< / h2 >
2013-10-02 00:16:40 +00:00
< / header >
2013-10-01 15:15:45 +00:00
< article >
< div class = "container-overview" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
< dt >
< h4 class = "name" id = "Parser" > < span class = "type-signature" > < / span > new Parser< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2013-10-02 00:16:40 +00:00
< p > Responsible for parsing sprite sheet and JSON data into the internal FrameData format that Phaser uses for animations.< / p >
2013-10-01 15:15:45 +00:00
< / div >
< dl class = "details" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2013-10-02 00:16:40 +00:00
< a href = "Parser.js.html" > animation/Parser.js< / a > , < a href = "Parser.js.html#sunlight-1-line-3" > line 3< / a >
2013-10-01 15:15:45 +00:00
< / li > < / ul > < / dd >
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
< / dl >
< / dd >
< / div >
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-01 15:39:39 +00:00
< h3 class = "subsection-title" > Methods< / h3 >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dl >
< dt >
< h4 class = "name" id = "JSONData" > < span class = "type-signature" > < static> < / span > JSONData< span class = "signature" > (game, json, cacheKey)< / span > < span class = "type-signature" > → {< a href = "Phaser.Animation.FrameData.html" > Phaser.Animation.FrameData< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2013-10-02 00:16:40 +00:00
< p > Parse the JSON data and extract the animation frame data from it.< / p >
2013-10-01 15:39:39 +00:00
< / div >
< h5 > Parameters:< / h5 >
2013-10-02 00:16:40 +00:00
< table class = "params table table-striped" >
2013-10-01 15:39:39 +00:00
< thead >
< tr >
< th > Name< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th > Type< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tbody >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > game< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > A reference to the currently running game.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > json< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > Object< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The JSON data from the Texture Atlas. Must be in Array format.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > cacheKey< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The Game.Cache asset key of the texture image.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / tbody >
< / table >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dl class = "details" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2013-10-02 00:16:40 +00:00
< a href = "Parser.js.html" > animation/Parser.js< / a > , < a href = "Parser.js.html#sunlight-1-line-95" > line 95< / a >
2013-10-01 15:39:39 +00:00
< / li > < / ul > < / dd >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2013-10-02 00:16:40 +00:00
< p > A FrameData object containing the parsed frames.< / p >
2013-10-01 15:39:39 +00:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Animation.FrameData.html" > Phaser.Animation.FrameData< / a > < / span >
< / dd >
< / dl >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / dd >
< dt >
< h4 class = "name" id = "JSONDataHash" > < span class = "type-signature" > < static> < / span > JSONDataHash< span class = "signature" > (game, json, cacheKey)< / span > < span class = "type-signature" > → {< a href = "Phaser.Animation.FrameData.html" > Phaser.Animation.FrameData< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2013-10-02 00:16:40 +00:00
< p > Parse the JSON data and extract the animation frame data from it.< / p >
2013-10-01 15:39:39 +00:00
< / div >
< h5 > Parameters:< / h5 >
2013-10-02 00:16:40 +00:00
< table class = "params table table-striped" >
2013-10-01 15:39:39 +00:00
< thead >
< tr >
< th > Name< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th > Type< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tbody >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > game< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > A reference to the currently running game.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > json< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > Object< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The JSON data from the Texture Atlas. Must be in JSON Hash format.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > cacheKey< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The Game.Cache asset key of the texture image.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / tbody >
< / table >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dl class = "details" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2013-10-02 00:16:40 +00:00
< a href = "Parser.js.html" > animation/Parser.js< / a > , < a href = "Parser.js.html#sunlight-1-line-166" > line 166< / a >
2013-10-01 15:39:39 +00:00
< / li > < / ul > < / dd >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2013-10-02 00:16:40 +00:00
< p > A FrameData object containing the parsed frames.< / p >
2013-10-01 15:39:39 +00:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Animation.FrameData.html" > Phaser.Animation.FrameData< / a > < / span >
< / dd >
< / dl >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / dd >
< dt >
< h4 class = "name" id = "spriteSheet" > < span class = "type-signature" > < static> < / span > spriteSheet< span class = "signature" > (game, key, frameWidth, frameHeight, < span class = "optional" > frameMax< / span > )< / span > < span class = "type-signature" > → {< a href = "Phaser.Animation.FrameData.html" > Phaser.Animation.FrameData< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2013-10-02 00:16:40 +00:00
< p > Parse a Sprite Sheet and extract the animation frame data from it.< / p >
2013-10-01 15:39:39 +00:00
< / div >
< h5 > Parameters:< / h5 >
2013-10-02 00:16:40 +00:00
< table class = "params table table-striped" >
2013-10-01 15:39:39 +00:00
< thead >
< tr >
< th > Name< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th > Type< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th > Argument< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th > Default< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tbody >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > game< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "attributes" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "default" >
< / td >
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > A reference to the currently running game.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > key< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "attributes" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "default" >
< / td >
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The Game.Cache asset key of the Sprite Sheet image.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > frameWidth< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "attributes" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "default" >
< / td >
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The fixed width of each frame of the animation.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > frameHeight< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "attributes" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "default" >
< / td >
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The fixed height of each frame of the animation.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > frameMax< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "attributes" >
< optional>< br >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "default" >
-1
< / td >
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The total number of animation frames to extact from the Sprite Sheet. The default value of -1 means " extract all frames" .< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / tbody >
< / table >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dl class = "details" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2013-10-02 00:16:40 +00:00
< a href = "Parser.js.html" > animation/Parser.js< / a > , < a href = "Parser.js.html#sunlight-1-line-14" > line 14< / a >
2013-10-01 15:39:39 +00:00
< / li > < / ul > < / dd >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2013-10-02 00:16:40 +00:00
< p > A FrameData object containing the parsed frames.< / p >
2013-10-01 15:39:39 +00:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Animation.FrameData.html" > Phaser.Animation.FrameData< / a > < / span >
< / dd >
< / dl >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / dd >
< dt >
< h4 class = "name" id = "XMLData" > < span class = "type-signature" > < static> < / span > XMLData< span class = "signature" > (game, xml, cacheKey)< / span > < span class = "type-signature" > → {< a href = "Phaser.Animation.FrameData.html" > Phaser.Animation.FrameData< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
2013-10-02 00:16:40 +00:00
< p > Parse the XML data and extract the animation frame data from it.< / p >
2013-10-01 15:39:39 +00:00
< / div >
< h5 > Parameters:< / h5 >
2013-10-02 00:16:40 +00:00
< table class = "params table table-striped" >
2013-10-01 15:39:39 +00:00
< thead >
< tr >
< th > Name< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th > Type< / th >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tbody >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > game< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > A reference to the currently running game.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > xml< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > Object< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The XML data from the Texture Atlas. Must be in Starling XML format.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< tr >
< td class = "name" > < code > cacheKey< / code > < / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
< td class = "description last" > < p > The Game.Cache asset key of the texture image.< / p > < / td >
2013-10-01 15:39:39 +00:00
< / tr >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / tbody >
< / table >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dl class = "details" >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2013-10-02 00:16:40 +00:00
< a href = "Parser.js.html" > animation/Parser.js< / a > , < a href = "Parser.js.html#sunlight-1-line-240" > line 240< / a >
2013-10-01 15:39:39 +00:00
< / li > < / ul > < / dd >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2013-10-02 00:16:40 +00:00
< p > A FrameData object containing the parsed frames.< / p >
2013-10-01 15:39:39 +00:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Animation.FrameData.html" > Phaser.Animation.FrameData< / a > < / span >
< / dd >
< / dl >
2013-10-02 00:16:40 +00:00
2013-10-01 15:39:39 +00:00
< / dd >
< / dl >
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
< / article >
2013-10-02 00:16:40 +00:00
< / section >
< / div >
< div class = "clearfix" > < / div >
< footer >
< span class = "copyright" >
Phaser Copyright © 2012-2013 Photon Storm Ltd.
< / span >
< br / >
< span class = "jsdoc-message" >
Documentation generated by < a href = "https://github.com/jsdoc3/jsdoc" > JSDoc 3.2.0-dev< / a >
on Wed Oct 02 2013 01:12:17 GMT+0100 (BST) using the < a href = "https://github.com/terryweiss/docstrap" > DocStrap template< / a > .
< / span >
< / footer >
< / div >
< div class = "span3" >
< div id = "toc" > < / div >
< / div >
< br clear = "both" >
< / div >
< / div >
< script src = "scripts/sunlight.js" > < / script >
< script src = "scripts/sunlight.javascript.js" > < / script >
< script src = "scripts/sunlight-plugin.doclinks.js" > < / script >
< script src = "scripts/sunlight-plugin.linenumbers.js" > < / script >
< script src = "scripts/sunlight-plugin.menu.js" > < / script >
< script src = "scripts/jquery.min.js" > < / script >
< script src = "scripts/jquery.scrollTo.js" > < / script >
< script src = "scripts/jquery.localScroll.js" > < / script >
< script src = "scripts/bootstrap-dropdown.js" > < / script >
< script src = "scripts/toc.js" > < / script >
< script > Sunlight . highlightAll ( { lineNumbers : true , showMenu : true , enableDoclinks : true } ) ; < / script >
< script >
$( function () {
$( "#toc" ).toc( {
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
< / script >
2013-10-01 15:15:45 +00:00
2013-10-02 00:16:40 +00:00
2013-10-01 15:15:45 +00:00
< / body >
< / html >