2013-10-25 15:54:40 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
2013-11-28 15:57:09 +00:00
< title > Phaser Class: TilemapLayer< / title >
2013-10-25 15:54:40 +00:00
<!-- [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" >
< / head >
< body >
< 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 = "namespaces.list.html" class = "dropdown-toggle" data-toggle = "dropdown" > Namespaces< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li >
< a href = "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.AnimationManager.html" > AnimationManager< / a >
< / li >
< li >
< a href = "Phaser.AnimationParser.html" > AnimationParser< / a >
< / li >
< li >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.BitmapData.html" > BitmapData< / a >
2013-10-25 15:54:40 +00:00
< / li >
2014-02-18 03:01:51 +00:00
< li >
< a href = "Phaser.BitmapFont.html" > BitmapFont< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
2013-11-28 15:57:09 +00:00
< a href = "Phaser.BitmapText.html" > BitmapText< / a >
2013-10-25 15:54:40 +00:00
< / li >
< li >
< a href = "Phaser.Button.html" > Button< / a >
< / li >
< li >
< a href = "Phaser.Cache.html" > Cache< / a >
< / li >
< li >
< a href = "Phaser.Camera.html" > Camera< / a >
< / li >
< li >
< a href = "Phaser.Canvas.html" > Canvas< / a >
< / li >
< li >
< a href = "Phaser.Circle.html" > Circle< / a >
< / li >
< li >
< a href = "Phaser.Color.html" > Color< / a >
< / li >
< li >
< a href = "Phaser.Device.html" > Device< / a >
< / li >
< li >
< a href = "Phaser.Easing.html" > Easing< / a >
< / li >
< li >
< a href = "Phaser.Easing.Back.html" > Back< / a >
< / li >
< li >
< a href = "Phaser.Easing.Bounce.html" > Bounce< / a >
< / li >
< li >
< a href = "Phaser.Easing.Circular.html" > Circular< / a >
< / li >
< li >
< a href = "Phaser.Easing.Cubic.html" > Cubic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Elastic.html" > Elastic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Exponential.html" > Exponential< / a >
< / li >
< li >
< a href = "Phaser.Easing.Linear.html" > Linear< / a >
< / li >
< li >
< a href = "Phaser.Easing.Quadratic.html" > Quadratic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Quartic.html" > Quartic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Quintic.html" > Quintic< / a >
< / li >
< li >
< a href = "Phaser.Easing.Sinusoidal.html" > Sinusoidal< / a >
< / li >
2014-02-18 03:01:51 +00:00
< li >
< a href = "Phaser.Ellipse.html" > Ellipse< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Events.html" > Events< / a >
< / li >
2013-11-28 15:57:09 +00:00
< li >
< a href = "Phaser.Filter.html" > Filter< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Frame.html" > Frame< / a >
< / li >
< li >
< a href = "Phaser.FrameData.html" > FrameData< / a >
< / li >
< li >
< a href = "Phaser.Game.html" > Game< / a >
< / li >
2014-02-21 15:37:26 +00:00
< li >
< a href = "Phaser.GameObjectCreator.html" > GameObjectCreator< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.GameObjectFactory.html" > GameObjectFactory< / a >
< / li >
2014-02-05 06:29:17 +00:00
< li >
< a href = "Phaser.Gamepad.html" > Gamepad< / a >
< / li >
< li >
< a href = "Phaser.GamepadButton.html" > GamepadButton< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Graphics.html" > Graphics< / a >
< / li >
< li >
< a href = "Phaser.Group.html" > Group< / a >
< / li >
2014-02-08 07:24:22 +00:00
< li >
< a href = "Phaser.Image.html" > Image< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Input.html" > Input< / a >
< / li >
< li >
< a href = "Phaser.InputHandler.html" > InputHandler< / a >
< / li >
< li >
< a href = "Phaser.Key.html" > Key< / a >
< / li >
< li >
< a href = "Phaser.Keyboard.html" > Keyboard< / a >
< / li >
2014-02-05 06:29:17 +00:00
< li >
< a href = "Phaser.Line.html" > Line< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.LinkedList.html" > LinkedList< / a >
< / li >
< li >
< a href = "Phaser.Loader.html" > Loader< / a >
< / li >
< li >
< a href = "Phaser.LoaderParser.html" > LoaderParser< / a >
< / li >
< li >
< a href = "Phaser.Math.html" > Math< / a >
< / li >
< li >
< a href = "Phaser.Mouse.html" > Mouse< / a >
< / li >
< li >
< a href = "Phaser.MSPointer.html" > MSPointer< / a >
< / li >
< li >
< a href = "Phaser.Net.html" > Net< / a >
< / li >
< li >
< a href = "Phaser.Particles.html" > Particles< / a >
< / li >
< li >
< a href = "Phaser.Particles.Arcade.Emitter.html" > Emitter< / a >
< / li >
< li >
< a href = "Phaser.Physics.html" > Physics< / a >
< / li >
< li >
< a href = "Phaser.Physics.Arcade.html" > Arcade< / a >
< / li >
2014-02-21 15:37:26 +00:00
< li >
< a href = "Phaser.Physics.Body.html" > Body< / a >
< / li >
< li >
< a href = "Phaser.Physics.CollisionGroup.html" > CollisionGroup< / a >
< / li >
< li >
< a href = "Phaser.Physics.ContactMaterial.html" > ContactMaterial< / a >
< / li >
< li >
< a href = "Phaser.Physics.InversePointProxy.html" > InversePointProxy< / a >
< / li >
< li >
< a href = "Phaser.Physics.Material.html" > Material< / a >
< / li >
< li >
< a href = "Phaser.Physics.PointProxy.html" > PointProxy< / a >
< / li >
< li >
< a href = "Phaser.Physics.Spring.html" > Spring< / a >
< / li >
< li >
< a href = "Phaser.Physics.World.html" > World< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Plugin.html" > Plugin< / a >
< / li >
< li >
< a href = "Phaser.PluginManager.html" > PluginManager< / a >
< / li >
< li >
< a href = "Phaser.Point.html" > Point< / a >
< / li >
< li >
< a href = "Phaser.Pointer.html" > Pointer< / a >
< / li >
2013-11-28 15:57:09 +00:00
< li >
< a href = "Phaser.Polygon.html" > Polygon< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.RandomDataGenerator.html" > RandomDataGenerator< / a >
< / li >
< li >
< a href = "Phaser.Rectangle.html" > Rectangle< / a >
< / li >
< li >
< a href = "Phaser.RenderTexture.html" > RenderTexture< / a >
< / li >
< li >
< a href = "Phaser.RequestAnimationFrame.html" > RequestAnimationFrame< / a >
< / li >
< li >
< a href = "Phaser.Signal.html" > Signal< / a >
< / li >
2014-02-05 06:29:17 +00:00
< li >
< a href = "Phaser.SinglePad.html" > SinglePad< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Sound.html" > Sound< / a >
< / li >
< li >
< a href = "Phaser.SoundManager.html" > SoundManager< / a >
< / li >
< li >
< a href = "Phaser.Sprite.html" > Sprite< / a >
< / li >
2014-02-18 03:01:51 +00:00
< li >
< a href = "Phaser.SpriteBatch.html" > SpriteBatch< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Stage.html" > Stage< / a >
< / li >
< li >
< a href = "Phaser.StageScaleMode.html" > StageScaleMode< / a >
< / li >
< li >
< a href = "Phaser.State.html" > State< / a >
< / li >
< li >
< a href = "Phaser.StateManager.html" > StateManager< / a >
< / li >
< li >
< a href = "Phaser.Text.html" > Text< / a >
< / li >
2013-11-28 15:57:09 +00:00
< li >
< a href = "Phaser.Tile.html" > Tile< / a >
< / li >
< li >
< a href = "Phaser.Tilemap.html" > Tilemap< / a >
< / li >
< li >
< a href = "Phaser.TilemapLayer.html" > TilemapLayer< / a >
< / li >
< li >
< a href = "Phaser.TilemapParser.html" > TilemapParser< / a >
< / li >
< li >
< a href = "Phaser.Tileset.html" > Tileset< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.TileSprite.html" > TileSprite< / a >
< / li >
< li >
< a href = "Phaser.Time.html" > Time< / a >
< / li >
2013-11-28 15:57:09 +00:00
< li >
< a href = "Phaser.Timer.html" > Timer< / a >
< / li >
2014-02-05 06:29:17 +00:00
< li >
< a href = "Phaser.TimerEvent.html" > TimerEvent< / a >
< / li >
2013-10-25 15:54:40 +00:00
< li >
< a href = "Phaser.Touch.html" > Touch< / a >
< / li >
< li >
< a href = "Phaser.Tween.html" > Tween< / a >
< / li >
< li >
< a href = "Phaser.TweenManager.html" > TweenManager< / a >
< / li >
< li >
< a href = "Phaser.Utils.html" > Utils< / a >
< / li >
< li >
< a href = "Phaser.Utils.Debug.html" > Debug< / a >
< / li >
< li >
< a href = "Phaser.World.html" > World< / a >
< / li >
< li >
< a href = "SignalBinding.html" > SignalBinding< / a >
< / li >
< / ul >
< / li >
2014-02-08 07:24:22 +00:00
< li class = "dropdown" >
< a href = "global.html" class = "dropdown-toggle" data-toggle = "dropdown" > Global< b
class="caret">< / b > < / a >
< ul class = "dropdown-menu " >
< li >
< a href = "global.html#canUseNewCanvasBlendModes" > canUseNewCanvasBlendModes< / a >
< / li >
2014-02-18 03:01:51 +00:00
< li >
< a href = "global.html#getBounds" > getBounds< / a >
< / li >
2014-02-08 07:24:22 +00:00
< li >
< a href = "global.html#getNextPowerOfTwo" > getNextPowerOfTwo< / a >
< / li >
< li >
< a href = "global.html#hex2rgb" > hex2rgb< / a >
< / li >
< li >
< a href = "global.html#hitTest" > hitTest< / a >
< / li >
< li >
< a href = "global.html#rgb2hex" > rgb2hex< / a >
< / li >
< / ul >
< / li >
2013-10-25 15:54:40 +00:00
< / ul >
< / div >
< / div >
< div class = "row-fluid" >
< div class = "span8" >
< div id = "main" >
2013-11-28 15:57:09 +00:00
< h1 class = "page-title" > Class: TilemapLayer< / h1 >
2013-10-25 15:54:40 +00:00
< section >
< header >
< h2 >
< span class = "ancestors" > < a href = "Phaser.html" > Phaser< / a > .< / span >
2013-11-28 15:57:09 +00:00
TilemapLayer
2013-10-25 15:54:40 +00:00
< / h2 >
2013-11-28 15:57:09 +00:00
< div class = "class-description" > < p > Phaser.TilemapLayer< / p > < / div >
2013-10-25 15:54:40 +00:00
< / header >
< article >
< div class = "container-overview" >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "TilemapLayer" > < span class = "type-signature" > < / span > new TilemapLayer< span class = "signature" > (game, tilemap, index, width, height)< / span > < span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< div class = "description" >
2013-11-28 15:57:09 +00:00
< p > A Tilemap Layer is a set of map data combined with a Tileset in order to render that data to the game.< / p >
2013-10-25 15:54:40 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > game< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
< / td >
2013-11-28 15:57:09 +00:00
< td class = "description last" > < p > Game reference to the currently running game.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > tilemap< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > < a href = "Phaser.Tilemap.html" > Phaser.Tilemap< / a > < / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The tilemap to which this layer belongs.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > index< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2013-11-28 15:57:09 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The layer index within the map that this TilemapLayer represents.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > width< / code > < / td >
2013-11-28 15:57:09 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Width of the renderable area of the layer.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > height< / code > < / td >
2013-11-28 15:57:09 +00:00
< td class = "type" >
2013-10-25 15:54:40 +00:00
< span class = "param-type" > number< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Height of the renderable area of the layer.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-18" > line 18< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< / div >
< h3 class = "subsection-title" > Members< / h3 >
< dl >
< dt >
2013-11-28 15:57:09 +00:00
< h4 class = "name" id = "baseTexture" > < span class = "type-signature" > < / span > baseTexture< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2013-11-28 15:57:09 +00:00
< td class = "name" > < code > baseTexture< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2013-11-28 15:57:09 +00:00
< span class = "param-type" > PIXI.BaseTexture< / span >
2013-10-25 15:54:40 +00:00
< / td >
2013-11-28 15:57:09 +00:00
< td class = "description last" > < p > Required Pixi var.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-53" > line 53< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "cameraOffset" > < span class = "type-signature" > < / span > cameraOffset< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > cameraOffset< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > < a href = "Phaser.Point.html" > Phaser.Point< / a > < / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > If this object is fixed to the camera then use this Point to specify how far away from the Camera x/y it's rendered.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-88" > line 88< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "canvas" > < span class = "type-signature" > < / span > canvas< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > canvas< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > HTMLCanvasElement< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The canvas to which this TilemapLayer draws.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-43" > line 43< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "collisionHeight" > < span class = "type-signature" > < / span > collisionHeight< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > collisionHeight< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The height of the collision tiles.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-862" > line 862< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "collisionWidth" > < span class = "type-signature" > < / span > collisionWidth< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > collisionWidth< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The width of the collision tiles.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-842" > line 842< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "context" > < span class = "type-signature" > < / span > context< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > context< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > CanvasRenderingContext2D< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The 2d context of the canvas.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-48" > line 48< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "debug" > < span class = "type-signature" > < / span > debug< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > debug< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > boolean< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > If set to true the collideable tile edges path will be rendered. Only works when game is running in Phaser.CANVAS mode.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > false< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-100" > line 100< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "debugAlpha" > < span class = "type-signature" > < / span > debugAlpha< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > debugAlpha< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2013-11-28 15:57:09 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > If debug is true then the tileset is rendered with this alpha level, to make the tile edges clearer.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > 0.5< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-106" > line 106< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "debugCallbackColor" > < span class = "type-signature" > < / span > debugCallbackColor< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > debugCallbackColor< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > string< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > If debug is true this is the color used to outline the edges of tiles that have collision callbacks. Provide in hex or rgb/rgba string format.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > "rgba(255, 0, 0, 1)"< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-130" > line 130< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "debugColor" > < span class = "type-signature" > < / span > debugColor< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > debugColor< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > string< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > If debug is true this is the color used to outline the edges of collidable tiles. Provide in hex or rgb/rgba string format.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > "rgba(0, 255, 0, 1)"< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-112" > line 112< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "debugFill" > < span class = "type-signature" > < / span > debugFill< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > debugFill< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > boolean< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > If true the debug tiles are filled with debugFillColor AND stroked around.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > false< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-118" > line 118< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "debugFillColor" > < span class = "type-signature" > < / span > debugFillColor< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > debugFillColor< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > string< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > If debugFill is true this is the color used to fill the tiles. Provide in hex or rgb/rgba string format.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-default" > Default Value:< / dt >
2014-02-05 06:29:17 +00:00
< dd class = "tag-default" > < ul class = "dummy" > < li > "rgba(0, 255, 0, 0.2)"< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-124" > line 124< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "dirty" > < span class = "type-signature" > < / span > dirty< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > dirty< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > boolean< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Flag controlling when to re-render the layer.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-151" > line 151< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "fixedToCamera" > < span class = "type-signature" > < / span > fixedToCamera< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2014-02-05 06:29:17 +00:00
< div class = "description" >
< p > An object that is fixed to the camera ignores the position of any ancestors in the display list and uses its x/y coordinates as offsets from the top left of the camera.< / p >
< / div >
2013-10-25 15:54:40 +00:00
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > fixedToCamera< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > boolean< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Fixes this object to the Camera.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > true< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-83" > line 83< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "game" > < span class = "type-signature" > < / span > game< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > game< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > < a href = "Phaser.Game.html" > Phaser.Game< / a > < / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > A reference to the currently running Game.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-23" > line 23< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "index" > < span class = "type-signature" > < / span > index< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > index< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The index of this layer within the Tilemap.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-33" > line 33< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "layer" > < span class = "type-signature" > < / span > layer< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > layer< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > object< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The layer object within the Tilemap that this layer represents.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-38" > line 38< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "map" > < span class = "type-signature" > < / span > map< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > map< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > < a href = "Phaser.Tilemap.html" > Phaser.Tilemap< / a > < / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The Tilemap to which this layer is bound.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-28" > line 28< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "name" > < span class = "type-signature" > < / span > name< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > name< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > string< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The name of the layer.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-70" > line 70< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "scrollFactorX" > < span class = "type-signature" > < / span > scrollFactorX< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > scrollFactorX< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2013-11-28 15:57:09 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > speed at which this layer scrolls
horizontally, relative to the camera (e.g. scrollFactorX of 0.5 scrolls
half as quickly as the 'normal' camera-locked layers do)< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > 1< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-138" > line 138< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "scrollFactorY" > < span class = "type-signature" > < / span > scrollFactorY< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > scrollFactorY< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > speed at which this layer scrolls
vertically, relative to the camera (e.g. scrollFactorY of 0.5 scrolls
half as quickly as the 'normal' camera-locked layers do)< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > 1< / li > < / ul > < / dd >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-146" > line 146< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "scrollX" > < span class = "type-signature" > < / span > scrollX< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > scrollX< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Scrolls the map horizontally or returns the current x position.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-760" > line 760< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "scrollY" > < span class = "type-signature" > < / span > scrollY< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > scrollY< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2013-11-28 15:57:09 +00:00
< span class = "param-type" > number< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Scrolls the map vertically or returns the current y position.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-801" > line 801< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "texture" > < span class = "type-signature" > < / span > texture< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > texture< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > PIXI.Texture< / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Required Pixi var.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-58" > line 58< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "textureFrame" > < span class = "type-signature" > < / span > textureFrame< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< dl class = "details" >
< h5 class = "subsection-title" > Properties:< / h5 >
< dl >
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2014-02-05 06:29:17 +00:00
< td class = "name" > < code > textureFrame< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > < a href = "Phaser.Frame.html" > Phaser.Frame< / a > < / span >
2013-10-25 15:54:40 +00:00
< / td >
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Dimensions of the renderable area.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-63" > line 63< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
2014-02-05 06:29:17 +00:00
2013-10-25 15:54:40 +00:00
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "tileColor" > < span class = "type-signature" > < / span > tileColor< span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
< dl >
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
< th > Type< / th >
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
< tbody >
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
< tr >
< td class = "name" > < code > tileColor< / code > < / td >
2013-10-25 15:54:40 +00:00
2014-02-05 06:29:17 +00:00
< td class = "type" >
< span class = "param-type" > string< / span >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > If no tileset is given the tiles will be rendered as rectangles in this color. Provide in hex or rgb/rgba string format.< / p > < / td >
< / tr >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< / tbody >
< / table >
2013-11-28 15:57:09 +00:00
< / dl >
2014-02-05 06:29:17 +00:00
< dt class = "tag-default" > Default Value:< / dt >
< dd class = "tag-default" > < ul class = "dummy" > < li > "rgb(255, 255, 255)"< / li > < / ul > < / dd >
2013-11-28 15:57:09 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-94" > line 94< / a >
2013-11-28 15:57:09 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "type" > < span class = "type-signature" > < / span > type< span class = "type-signature" > < / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
< dl class = "details" >
2014-02-05 06:29:17 +00:00
< h5 class = "subsection-title" > Properties:< / h5 >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< dl >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< table class = "props table table-striped" >
< thead >
< tr >
< th > Name< / th >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< th > Type< / th >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< tbody >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< tr >
< td class = "name" > < code > type< / code > < / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > The const type of this object.< / p > < / td >
< / tr >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< / tbody >
< / table >
2013-11-28 15:57:09 +00:00
< / dl >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-76" > line 76< / a >
2013-11-28 15:57:09 +00:00
< / li > < / ul > < / dd >
< / dl >
2014-02-05 06:29:17 +00:00
< / dd >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< / dl >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< h3 class = "subsection-title" > Methods< / h3 >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< dl >
2013-11-28 15:57:09 +00:00
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "getTiles" > < span class = "type-signature" > < / span > getTiles< span class = "signature" > (x, y, width, height, < span class = "optional" > collides< / span > )< / span > < span class = "type-signature" > → {array}< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-05 06:29:17 +00:00
< p > Get all tiles that exist within the given area, defined by the top-left corner, width and height. Values given are in pixels, not tiles.< / p >
2013-11-28 15:57:09 +00:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2014-02-05 06:29:17 +00:00
< th > Argument< / th >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< th > Default< / th >
2013-11-28 15:57:09 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > X position of the top left corner.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Y position of the top left corner.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< tr >
< td class = "name" > < code > width< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Width of the area to get.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< tr >
< td class = "name" > < code > height< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "description last" > < p > Height of the area to get.< / p > < / td >
2013-11-28 15:57:09 +00:00
< / tr >
< tr >
< td class = "name" > < code > collides< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
2014-02-05 06:29:17 +00:00
< td class = "attributes" >
< optional>< br >
< / td >
2013-11-28 15:57:09 +00:00
2014-02-05 06:29:17 +00:00
< td class = "default" >
false
< / td >
2013-11-28 15:57:09 +00:00
< td class = "description last" > < p > If true only return tiles that collide on one or more faces.< / p > < / td >
< / tr >
< / tbody >
< / table >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-455" > line 455< / a >
2013-11-28 15:57:09 +00:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
< p > Array with tiles informations (each contains x, y, and the tile).< / p >
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > array< / span >
< / dd >
< / dl >
< / dd >
< dt >
< h4 class = "name" id = "getTileX" > < span class = "type-signature" > < / span > getTileX< span class = "signature" > (x)< / span > < span class = "type-signature" > → {< a href = "Phaser.Tile.html" > Phaser.Tile< / a > }< / span > < / h4 >
< / dt >
< dd >
< div class = "description" >
< p > Convert a pixel value to a tile coordinate.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
< td class = "description last" > < p > X position of the point in target tile.< / p > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-407" > line 407< / a >
2013-11-28 15:57:09 +00:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
< p > The tile with specific properties.< / p >
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Tile.html" > Phaser.Tile< / a > < / span >
< / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "getTileXY" > < span class = "type-signature" > < / span > getTileXY< span class = "signature" > (x, y, point)< / span > < span class = "type-signature" > → {< a href = "Phaser.Point.html" > Phaser.Point< / a > |object}< / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
< div class = "description" >
< p > Convert a pixel value to a tile coordinate.< / p >
< / div >
< h5 > Parameters:< / h5 >
< table class = "params table table-striped" >
2013-10-25 15:54:40 +00:00
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2013-11-28 15:57:09 +00:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > x< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
< td class = "description last" > < p > X position of the point in target tile.< / p > < / td >
< / tr >
2013-10-25 15:54:40 +00:00
< tr >
2013-11-28 15:57:09 +00:00
< td class = "name" > < code > y< / code > < / td >
2013-10-25 15:54:40 +00:00
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2013-11-28 15:57:09 +00:00
< td class = "description last" > < p > Y position of the point in target tile.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
2014-02-05 06:29:17 +00:00
< tr >
< td class = "name" > < code > point< / code > < / td >
< td class = "type" >
< span class = "param-type" > < a href = "Phaser.Point.html" > Phaser.Point< / a > < / span >
|
< span class = "param-type" > object< / span >
< / td >
< td class = "description last" > < p > The Point object to set the x and y values on.< / p > < / td >
< / tr >
2013-10-25 15:54:40 +00:00
< / tbody >
< / table >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-437" > line 437< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
2013-11-28 15:57:09 +00:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2014-02-05 06:29:17 +00:00
< p > A Point object with its x and y properties set.< / p >
2013-11-28 15:57:09 +00:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2014-02-05 06:29:17 +00:00
< span class = "param-type" > < a href = "Phaser.Point.html" > Phaser.Point< / a > < / span >
|
< span class = "param-type" > object< / span >
2013-11-28 15:57:09 +00:00
< / dd >
< / dl >
2013-10-25 15:54:40 +00:00
< / dd >
< dt >
2013-11-28 15:57:09 +00:00
< h4 class = "name" id = "getTileY" > < span class = "type-signature" > < / span > getTileY< span class = "signature" > (y)< / span > < span class = "type-signature" > → {< a href = "Phaser.Tile.html" > Phaser.Tile< / a > }< / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
2013-11-28 15:57:09 +00:00
< div class = "description" >
< p > Convert a pixel value to a tile coordinate.< / p >
< / div >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
< h5 > Parameters:< / h5 >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
< table class = "params table table-striped" >
2013-10-25 15:54:40 +00:00
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > y< / code > < / td >
< td class = "type" >
< span class = "param-type" > number< / span >
< / td >
2013-11-28 15:57:09 +00:00
< td class = "description last" > < p > Y position of the point in target tile.< / p > < / td >
2013-10-25 15:54:40 +00:00
< / tr >
< / tbody >
< / table >
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-422" > line 422< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
2013-11-28 15:57:09 +00:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
< p > The tile with specific properties.< / p >
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > < a href = "Phaser.Tile.html" > Phaser.Tile< / a > < / span >
< / dd >
< / dl >
2013-10-25 15:54:40 +00:00
< / dd >
2013-11-28 15:57:09 +00:00
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "postUpdate" > < span class = "type-signature" > < / span > postUpdate< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2013-11-28 15:57:09 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-05 06:29:17 +00:00
< p > Automatically called by World.postUpdate. Handles cache updates.< / p >
2013-11-28 15:57:09 +00:00
< / div >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
< dl class = "details" >
2013-10-25 15:54:40 +00:00
2013-11-28 15:57:09 +00:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-287" > line 287< / a >
2013-11-28 15:57:09 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
2013-10-25 15:54:40 +00:00
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "render" > < span class = "type-signature" > < / span > render< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-05 06:29:17 +00:00
< p > Renders the tiles to the layer canvas and pushes to the display.< / p >
2013-10-25 15:54:40 +00:00
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-550" > line 550< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "renderDebug" > < span class = "type-signature" > < / span > renderDebug< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-05 06:29:17 +00:00
< p > Renders a collision debug overlay on-top of the canvas. Called automatically by render when debug = true.< / p >
2013-10-25 15:54:40 +00:00
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-682" > line 682< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2014-02-05 06:29:17 +00:00
< h4 class = "name" id = "resizeWorld" > < span class = "type-signature" > < / span > resizeWorld< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< div class = "description" >
2014-02-05 06:29:17 +00:00
< p > Sets the world size to match the size of this layer.< / p >
2013-10-25 15:54:40 +00:00
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-305" > line 305< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< dt >
2013-11-28 15:57:09 +00:00
< h4 class = "name" id = "updateMax" > < span class = "type-signature" > < / span > updateMax< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
2013-10-25 15:54:40 +00:00
< / dt >
< dd >
< div class = "description" >
2013-11-28 15:57:09 +00:00
< p > Internal function to update maximum values.< / p >
2013-10-25 15:54:40 +00:00
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2014-02-05 06:29:17 +00:00
< a href = "TilemapLayer.js.html" > tilemap/TilemapLayer.js< / a > , < a href = "TilemapLayer.js.html#sunlight-1-line-523" > line 523< / a >
2013-10-25 15:54:40 +00:00
< / li > < / ul > < / dd >
< / dl >
< / dd >
< / dl >
< / article >
< / section >
< / div >
< div class = "clearfix" > < / div >
< footer >
< span class = "copyright" >
2014-02-05 06:29:17 +00:00
Phaser Copyright © 2012-2014 Photon Storm Ltd.
2013-10-25 15:54:40 +00:00
< / span >
< br / >
< span class = "jsdoc-message" >
Documentation generated by < a href = "https://github.com/jsdoc3/jsdoc" > JSDoc 3.3.0-dev< / a >
2014-02-24 12:14:30 +00:00
on Mon Feb 24 2014 12:11:47 GMT-0000 (GMT) using the < a href = "https://github.com/terryweiss/docstrap" > DocStrap template< / a > .
2013-10-25 15:54:40 +00:00
< / 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 >
< / body >
< / html >