mirror of
https://github.com/wassname/phaser.git
synced 2026-07-16 01:20:13 +08:00
Added in a Group.sort demo, also updated the documentation and build files.
This commit is contained in:
@@ -242,6 +242,10 @@
|
||||
<a href="Phaser.Pointer.html">Pointer</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Polygon.html">Polygon</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.QuadTree.html">QuadTree</a>
|
||||
</li>
|
||||
@@ -3193,7 +3197,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-1003">line 1003</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-1034">line 1034</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3262,7 +3266,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-1029">line 1029</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-1060">line 1060</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3298,7 +3302,8 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
|
||||
<div class="description">
|
||||
<p>Description.</p>
|
||||
<p>Runs a pixel perfect check against the given x/y coordinates of the Sprite this InputHandler is bound to.
|
||||
It compares the alpha value of the pixel and if >= InputHandler.pixelPerfectAlpha it returns true.</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -3338,7 +3343,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
<td class="type">
|
||||
|
||||
|
||||
<span class="param-type">Description</span>
|
||||
<span class="param-type">number</span>
|
||||
|
||||
|
||||
|
||||
@@ -3348,7 +3353,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
|
||||
|
||||
<td class="description last"><p>Description.</p></td>
|
||||
<td class="description last"><p>The x coordinate to check.</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -3361,7 +3366,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
<td class="type">
|
||||
|
||||
|
||||
<span class="param-type">Description</span>
|
||||
<span class="param-type">number</span>
|
||||
|
||||
|
||||
|
||||
@@ -3371,7 +3376,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
|
||||
|
||||
<td class="description last"><p>Description.</p></td>
|
||||
<td class="description last"><p>The y coordinate to check.</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -3403,7 +3408,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-504">line 504</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-536">line 536</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3427,6 +3432,10 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
<h5>Returns:</h5>
|
||||
|
||||
|
||||
<div class="param-desc">
|
||||
<p>true if there is the alpha of the pixel is >= InputHandler.pixelPerfectAlpha</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
@@ -3540,7 +3549,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-475">line 475</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-507">line 507</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3697,7 +3706,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-878">line 878</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-909">line 909</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3766,7 +3775,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-992">line 992</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-1023">line 1023</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -3884,7 +3893,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-818">line 818</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-849">line 849</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4110,7 +4119,7 @@ For example if you had a stack of 6 sprites with the same priority IDs and one c
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-837">line 837</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-868">line 868</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4278,7 +4287,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-971">line 971</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-1002">line 1002</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4419,7 +4428,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-751">line 751</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-782">line 782</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4579,7 +4588,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-735">line 735</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-766">line 766</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4739,7 +4748,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-767">line 767</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-798">line 798</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -4899,7 +4908,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-783">line 783</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-814">line 814</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5036,7 +5045,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-799">line 799</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-830">line 830</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5224,7 +5233,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
|
||||
<dt>
|
||||
<h4 class="name" id="pointerOut"><span class="type-signature"></span>pointerOut<span class="signature">(pointer)</span><span class="type-signature"> → {boolean}</span></h4>
|
||||
<h4 class="name" id="pointerOut"><span class="type-signature"></span>pointerOut<span class="signature">(<span class="optional">index</span>)</span><span class="type-signature"> → {boolean}</span></h4>
|
||||
|
||||
|
||||
</dt>
|
||||
@@ -5254,6 +5263,8 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
<th>Type</th>
|
||||
|
||||
|
||||
<th>Argument</th>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5266,23 +5277,33 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<tr>
|
||||
|
||||
<td class="name"><code>pointer</code></td>
|
||||
<td class="name"><code>index</code></td>
|
||||
|
||||
|
||||
<td class="type">
|
||||
|
||||
|
||||
<span class="param-type">Pointer</span>
|
||||
<span class="param-type">number</span>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td class="attributes">
|
||||
|
||||
<optional><br>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
<td class="description last"></td>
|
||||
<td class="description last"><p>The ID number of a Pointer to check. If you don't provide a number it will check all Pointers.</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -5314,7 +5335,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-419">line 419</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-435">line 435</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5338,6 +5359,10 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
<h5>Returns:</h5>
|
||||
|
||||
|
||||
<div class="param-desc">
|
||||
<p>True if the given pointer (if a index was given, or any pointer if not) is out of this object.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
@@ -5361,7 +5386,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
|
||||
<dt>
|
||||
<h4 class="name" id="pointerOver"><span class="type-signature"></span>pointerOver<span class="signature">(pointer)</span><span class="type-signature"></span></h4>
|
||||
<h4 class="name" id="pointerOver"><span class="type-signature"></span>pointerOver<span class="signature">(<span class="optional">index</span>)</span><span class="type-signature"> → {boolean}</span></h4>
|
||||
|
||||
|
||||
</dt>
|
||||
@@ -5391,6 +5416,8 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
<th>Type</th>
|
||||
|
||||
|
||||
<th>Argument</th>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5403,23 +5430,33 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<tr>
|
||||
|
||||
<td class="name"><code>pointer</code></td>
|
||||
<td class="name"><code>index</code></td>
|
||||
|
||||
|
||||
<td class="type">
|
||||
|
||||
|
||||
<span class="param-type">Pointer</span>
|
||||
<span class="param-type">number</span>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td class="attributes">
|
||||
|
||||
<optional><br>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
|
||||
|
||||
<td class="description last"></td>
|
||||
<td class="description last"><p>The ID number of a Pointer to check. If you don't provide a number it will check all Pointers.</p></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -5476,11 +5513,23 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
|
||||
<div class="param-desc">
|
||||
<p>{bool</p>
|
||||
<p>True if the given pointer (if a index was given, or any pointer if not) is over this object.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>
|
||||
Type
|
||||
</dt>
|
||||
<dd>
|
||||
|
||||
<span class="param-type">boolean</span>
|
||||
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5717,7 +5766,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-447">line 447</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-479">line 479</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5854,7 +5903,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-461">line 461</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-493">line 493</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -5991,7 +6040,7 @@ For example 16x16 as the snapX and snapY would make the sprite snap to every 16
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-433">line 433</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-465">line 465</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -6768,7 +6817,7 @@ This value is only set when the pointer is over this Sprite.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-955">line 955</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-986">line 986</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7001,7 +7050,7 @@ This value is only set when the pointer is over this Sprite.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-898">line 898</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-929">line 929</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7139,7 +7188,7 @@ This value is only set when the pointer is over this Sprite.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-929">line 929</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-960">line 960</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7257,7 +7306,7 @@ This value is only set when the pointer is over this Sprite.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-537">line 537</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-568">line 568</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7375,7 +7424,7 @@ This value is only set when the pointer is over this Sprite.</p>
|
||||
|
||||
<dt class="tag-source">Source:</dt>
|
||||
<dd class="tag-source"><ul class="dummy"><li>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-691">line 691</a>
|
||||
<a href="InputHandler.js.html">input/InputHandler.js</a>, <a href="InputHandler.js.html#sunlight-1-line-722">line 722</a>
|
||||
</li></ul></dd>
|
||||
|
||||
|
||||
@@ -7445,7 +7494,7 @@ This value is only set when the pointer is over this Sprite.</p>
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
|
||||
on Fri Nov 01 2013 18:16:12 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Thu Nov 07 2013 06:07:37 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