mirror of
https://github.com/wassname/phaser.git
synced 2026-07-28 11:23:50 +08:00
Tilemap.createCollisionObjects will parse Tiled data for objectgroups and convert polyline instances into physics objects you can collide with in the world.
After defining tiles that collide on a Tilemap, you need to call Tilemap.generateCollisionData(layer) to populate the physics world with the data required. Debug.renderPhysicsBody updated to take camera location and body rotation into account. Body movement functions put back to velocity :) Updated to latest dev version of pixi and latest p2.js Updated docs
This commit is contained in:
+315
-77
@@ -58,6 +58,10 @@
|
||||
<a href="Phaser.BitmapData.html">BitmapData</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.BitmapFont.html">BitmapFont</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.BitmapText.html">BitmapText</a>
|
||||
</li>
|
||||
@@ -90,10 +94,6 @@
|
||||
<a href="Phaser.Device.html">Device</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.DOMSprite.html">DOMSprite</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Easing.html">Easing</a>
|
||||
</li>
|
||||
@@ -142,6 +142,10 @@
|
||||
<a href="Phaser.Easing.Sinusoidal.html">Sinusoidal</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Ellipse.html">Ellipse</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Events.html">Events</a>
|
||||
</li>
|
||||
@@ -250,10 +254,6 @@
|
||||
<a href="Phaser.Physics.Arcade.html">Arcade</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.Arcade.Body.html">Body</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Plugin.html">Plugin</a>
|
||||
</li>
|
||||
@@ -314,6 +314,10 @@
|
||||
<a href="Phaser.Sprite.html">Sprite</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.SpriteBatch.html">SpriteBatch</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Stage.html">Stage</a>
|
||||
</li>
|
||||
@@ -412,6 +416,10 @@
|
||||
<a href="global.html#canUseNewCanvasBlendModes">canUseNewCanvasBlendModes</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="global.html#getBounds">getBounds</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="global.html#getNextPowerOfTwo">getNextPowerOfTwo</a>
|
||||
</li>
|
||||
@@ -808,7 +816,7 @@ the world at world-based coordinates. By default a world is created the same siz
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1151">line 1151</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1262">line 1262</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -920,7 +928,7 @@ This will have no impact on the rotation value of its children, but it will upda
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1123">line 1123</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1203">line 1203</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -1140,6 +1148,113 @@ So if you want to make a game in which the world itself will rotate you should a
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<h4 class="name" id="cameraOffset"><span class="type-signature"></span>cameraOffset<span class="type-signature"></span></h4>
|
||||
|
||||
|
||||
</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>
|
||||
|
||||
<td class="name"><code>cameraOffset</code></td>
|
||||
|
||||
|
||||
<td class="type">
|
||||
|
||||
|
||||
<span class="param-type"><a href="Phaser.Point.html">Phaser.Point</a></span>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td class="description last"><p>If this object is fixedToCamera then this stores the x/y offset that its drawn at, from the top-left of the camera view.</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt class="inherited-from">Inherited From:</dt>
|
||||
<dd class="inherited-from"><ul class="dummy"><li>
|
||||
<a href="Phaser.Group.html#cameraOffset">Phaser.Group#cameraOffset</a>
|
||||
</li></dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-95">line 95</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -1233,7 +1348,7 @@ So if you want to make a game in which the world itself will rotate you should a
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-222">line 222</a>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-144">line 144</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -1335,7 +1450,7 @@ So if you want to make a game in which the world itself will rotate you should a
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-235">line 235</a>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-157">line 157</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -1549,7 +1664,7 @@ The cursor is set to the first child added to the Group and doesn't change unles
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-89">line 89</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-88">line 88</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -1668,6 +1783,119 @@ The cursor is set to the first child added to the Group and doesn't change unles
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<h4 class="name" id="fixedToCamera"><span class="type-signature"></span>fixedToCamera<span class="type-signature"></span></h4>
|
||||
|
||||
|
||||
</dt>
|
||||
<dd>
|
||||
|
||||
<div class="description">
|
||||
<p>A Group that is fixed to the camera uses its x/y coordinates as offsets from the top left of the camera. These are stored in Group.cameraOffset.
|
||||
Note that the cameraOffset values are in addition to any parent in the display list.
|
||||
So if this Group was in a Group that has x: 200, then this will be added to the cameraOffset.x</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
||||
<td class="name"><code>fixedToCamera</code></td>
|
||||
|
||||
|
||||
<td class="type">
|
||||
|
||||
|
||||
<span class="param-type">boolean</span>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td class="description last"><p>Set to true to fix this Group to the Camera at its current world coordinates.</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt class="inherited-from">Inherited From:</dt>
|
||||
<dd class="inherited-from"><ul class="dummy"><li>
|
||||
<a href="Phaser.Group.html#fixedToCamera">Phaser.Group#fixedToCamera</a>
|
||||
</li></dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1221">line 1221</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -1868,7 +2096,7 @@ The cursor is set to the first child added to the Group and doesn't change unles
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-206">line 206</a>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-128">line 128</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -1975,7 +2203,7 @@ The cursor is set to the first child added to the Group and doesn't change unles
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1108">line 1108</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1188">line 1188</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -2184,7 +2412,7 @@ The cursor is set to the first child added to the Group and doesn't change unles
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-248">line 248</a>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-170">line 170</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -2286,7 +2514,7 @@ The cursor is set to the first child added to the Group and doesn't change unles
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-270">line 270</a>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-192">line 192</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -2398,7 +2626,7 @@ This will have no impact on the rotation value of its children, but it will upda
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1147">line 1147</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1258">line 1258</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -2505,7 +2733,7 @@ This will have no impact on the rotation value of its children, but it will upda
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-78">line 78</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-77">line 77</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -2612,7 +2840,7 @@ This will have no impact on the rotation value of its children, but it will upda
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1093">line 1093</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1173">line 1173</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -2826,7 +3054,7 @@ This will have no impact on the rotation value of its children, but it will upda
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1149">line 1149</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1260">line 1260</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -2928,7 +3156,7 @@ This will have no impact on the rotation value of its children, but it will upda
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-190">line 190</a>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-112">line 112</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3040,7 +3268,7 @@ This will have no impact on the x/y coordinates of its children, but it will upd
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1143">line 1143</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1254">line 1254</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3152,7 +3380,7 @@ This will have no impact on the x/y coordinates of its children, but it will upd
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1145">line 1145</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1256">line 1256</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3273,7 +3501,7 @@ that then see the addAt method.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-130">line 130</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-147">line 147</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3498,7 +3726,7 @@ Group.addAll('x', 10) will add 10 to the child.x value.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-507">line 507</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-524">line 524</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3645,7 +3873,7 @@ The child is added to the Group at the location specified by the index value, th
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-162">line 162</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-179">line 179</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3860,7 +4088,7 @@ The child is added to the Group at the location specified by the index value, th
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-327">line 327</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-344">line 344</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4099,7 +4327,7 @@ After the method parameter and context you can add as many extra parameters as y
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-647">line 647</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-664">line 664</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4297,7 +4525,7 @@ After the existsValue parameter you can add as many parameters as you like, whic
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-571">line 571</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-588">line 588</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4466,7 +4694,7 @@ After the existsValue parameter you can add as many parameters as you like, whic
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-594">line 594</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-611">line 611</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4540,7 +4768,7 @@ After the existsValue parameter you can add as many parameters as you like, whic
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-926">line 926</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1006">line 1006</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4637,7 +4865,7 @@ After the existsValue parameter you can add as many parameters as you like, whic
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-914">line 914</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-994">line 994</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4949,7 +5177,7 @@ Useful if you don't need to create the Sprite instances before-hand.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-205">line 205</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-222">line 222</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5227,7 +5455,7 @@ and will be positioned at 0, 0 (relative to the Group.x/y)</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-243">line 243</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-260">line 260</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5296,7 +5524,7 @@ and will be positioned at 0, 0 (relative to the Group.x/y)</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-175">line 175</a>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-98">line 98</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5489,7 +5717,7 @@ Group.divideAll('x', 2) will half the child.x value.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-555">line 555</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-572">line 572</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5661,7 +5889,7 @@ Note: Currently this will skip any children which are Groups themselves.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-707">line 707</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-787">line 787</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5809,7 +6037,7 @@ For example: Group.forEachAlive(causeDamage, this, 500)</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-739">line 739</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-819">line 819</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5957,7 +6185,7 @@ For example: Group.forEachAlive(causeDamage, this, 500)</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-757">line 757</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-837">line 837</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -6105,7 +6333,7 @@ For example: Group.forEachDead(bringToLife, this)</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-775">line 775</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-855">line 855</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -6228,7 +6456,7 @@ For example: Group.forEachDead(bringToLife, this)</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-192">line 192</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-209">line 209</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -6326,7 +6554,7 @@ This is handy for checking if everything has been wiped out, or choosing a squad
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-888">line 888</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-968">line 968</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -6424,7 +6652,7 @@ This is handy for checking if everything has been wiped out, or choosing a squad
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-901">line 901</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-981">line 981</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -6570,7 +6798,7 @@ This is handy for checking if everything has been wiped out, or choosing a squad
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-870">line 870</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-950">line 950</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -6716,7 +6944,7 @@ This is handy for checking if everything has been wiped out, or choosing a squad
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-346">line 346</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-363">line 363</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -6885,7 +7113,7 @@ This is handy for checking if everything has been wiped out, or choosing a squad
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-938">line 938</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1018">line 1018</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7195,7 +7423,7 @@ You can add as many callback parameters as you like, which will all be passed to
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-813">line 813</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-893">line 893</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7411,7 +7639,7 @@ Group.multiplyAll('x', 2) will x2 the child.x value.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-539">line 539</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-556">line 556</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7485,7 +7713,7 @@ Group.multiplyAll('x', 2) will x2 the child.x value.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-265">line 265</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-282">line 282</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7513,7 +7741,7 @@ Group.multiplyAll('x', 2) will x2 the child.x value.</p>
|
||||
|
||||
|
||||
<dt>
|
||||
<h4 class="name" id="postUpdate"><span class="type-signature"></span>postUpdate<span class="signature">()</span><span class="type-signature"></span></h4>
|
||||
<h4 class="name" id="postUpdate"><span class="type-signature"><protected> </span>postUpdate<span class="signature">()</span><span class="type-signature"></span></h4>
|
||||
|
||||
|
||||
</dt>
|
||||
@@ -7521,10 +7749,7 @@ Group.multiplyAll('x', 2) will x2 the child.x value.</p>
|
||||
|
||||
|
||||
<div class="description">
|
||||
<p>This is called automatically before the renderer runs and after the plugins have updated.
|
||||
In postUpdate this is where all the final physics calculatations and object positioning happens.
|
||||
The objects are processed in the order of the display list.
|
||||
The only exception to this is if the camera is following an object, in which case that is updated first.</p>
|
||||
<p>The core postUpdate - as called by World.</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -7543,6 +7768,11 @@ The only exception to this is if the camera is following an object, in which cas
|
||||
|
||||
|
||||
|
||||
<dt class="inherited-from">Inherited From:</dt>
|
||||
<dd class="inherited-from"><ul class="dummy"><li>
|
||||
<a href="Phaser.Group.html#postUpdate">Phaser.Group#postUpdate</a>
|
||||
</li></dd>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7557,7 +7787,7 @@ The only exception to this is if the camera is following an object, in which cas
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-103">line 103</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-764">line 764</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7585,7 +7815,7 @@ The only exception to this is if the camera is following an object, in which cas
|
||||
|
||||
|
||||
<dt>
|
||||
<h4 class="name" id="preUpdate"><span class="type-signature"></span>preUpdate<span class="signature">()</span><span class="type-signature"></span></h4>
|
||||
<h4 class="name" id="preUpdate"><span class="type-signature"><protected> </span>preUpdate<span class="signature">()</span><span class="type-signature"></span></h4>
|
||||
|
||||
|
||||
</dt>
|
||||
@@ -7593,8 +7823,7 @@ The only exception to this is if the camera is following an object, in which cas
|
||||
|
||||
|
||||
<div class="description">
|
||||
<p>This is called automatically after the plugins preUpdate and before the State.update.
|
||||
Most objects have preUpdate methods and it's where initial movement, drawing and calculations are done.</p>
|
||||
<p>The core preUpdate - as called by World.</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -7613,6 +7842,11 @@ Most objects have preUpdate methods and it's where initial movement, drawing and
|
||||
|
||||
|
||||
|
||||
<dt class="inherited-from">Inherited From:</dt>
|
||||
<dd class="inherited-from"><ul class="dummy"><li>
|
||||
<a href="Phaser.Group.html#preUpdate">Phaser.Group#preUpdate</a>
|
||||
</li></dd>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7627,7 +7861,7 @@ Most objects have preUpdate methods and it's where initial movement, drawing and
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-65">line 65</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-724">line 724</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7701,7 +7935,7 @@ Most objects have preUpdate methods and it's where initial movement, drawing and
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-289">line 289</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-306">line 306</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7824,7 +8058,7 @@ Most objects have preUpdate methods and it's where initial movement, drawing and
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-960">line 960</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1040">line 1040</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7922,7 +8156,7 @@ The Group container remains on the display list.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-990">line 990</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1070">line 1070</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -8068,7 +8302,7 @@ The Group container remains on the display list.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1018">line 1018</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-1098">line 1098</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -8214,7 +8448,7 @@ The Group container remains on the display list.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-359">line 359</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-376">line 376</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -8541,7 +8775,7 @@ The operation parameter controls how the new value is assigned to the property,
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-451">line 451</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-468">line 468</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -8833,7 +9067,7 @@ The operation parameter controls how the new value is assigned to the property,
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-477">line 477</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-494">line 494</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -9020,7 +9254,7 @@ The operation parameter controls how the new value is assigned to the property,
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-142">line 142</a>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-65">line 65</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -9268,7 +9502,7 @@ The operation parameter controls how the new value is assigned to the property,
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-391">line 391</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-408">line 408</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -9451,7 +9685,7 @@ For example to depth sort Sprites for Zelda-style game you might call <code>grou
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-793">line 793</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-873">line 873</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -9644,7 +9878,7 @@ Group.subAll('x', 10) will minus 10 from the child.x value.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-523">line 523</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-540">line 540</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -9791,7 +10025,7 @@ You cannot swap a child with itself, or swap un-parented children, doing so will
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-313">line 313</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-330">line 330</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -9819,7 +10053,7 @@ You cannot swap a child with itself, or swap un-parented children, doing so will
|
||||
|
||||
|
||||
<dt>
|
||||
<h4 class="name" id="update"><span class="type-signature"></span>update<span class="signature">()</span><span class="type-signature"></span></h4>
|
||||
<h4 class="name" id="update"><span class="type-signature"><protected> </span>update<span class="signature">()</span><span class="type-signature"></span></h4>
|
||||
|
||||
|
||||
</dt>
|
||||
@@ -9827,8 +10061,7 @@ You cannot swap a child with itself, or swap un-parented children, doing so will
|
||||
|
||||
|
||||
<div class="description">
|
||||
<p>This is called automatically after the State.update, but before particles or plugins update.
|
||||
Most objects won't have an update method set unless explicitly given one.</p>
|
||||
<p>The core update - as called by World.</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -9847,6 +10080,11 @@ Most objects won't have an update method set unless explicitly given one.</p>
|
||||
|
||||
|
||||
|
||||
<dt class="inherited-from">Inherited From:</dt>
|
||||
<dd class="inherited-from"><ul class="dummy"><li>
|
||||
<a href="Phaser.Group.html#update">Phaser.Group#update</a>
|
||||
</li></dd>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9861,7 +10099,7 @@ Most objects won't have an update method set unless explicitly given one.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="World.js.html">core/World.js</a>, <a href="World.js.html#sunlight-1-line-85">line 85</a>
|
||||
<a href="Group.js.html">core/Group.js</a>, <a href="Group.js.html#sunlight-1-line-748">line 748</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -9912,7 +10150,7 @@ Most objects won't have an update method set unless explicitly given one.</p>
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
|
||||
on Sat Feb 08 2014 07:19:53 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Tue Feb 18 2014 03:01:28 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user