mirror of
https://github.com/wassname/phaser.git
synced 2026-08-12 12:20:38 +08:00
Tilemap had the wrong @method signatures so most were missing from the docs.
This commit is contained in:
+53
-8
@@ -182,6 +182,10 @@
|
||||
<a href="Phaser.Group.html">Group</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Image.html">Image</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Input.html">Input</a>
|
||||
</li>
|
||||
@@ -398,6 +402,36 @@
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -549,9 +583,16 @@ Phaser.Circle.prototype = {
|
||||
*/
|
||||
clone: function(out) {
|
||||
|
||||
if (typeof out === "undefined") { out = new Phaser.Circle(); }
|
||||
if (typeof out === "undefined")
|
||||
{
|
||||
out = new Phaser.Circle(this.x, this.y, this.diameter);
|
||||
}
|
||||
else
|
||||
{
|
||||
out.setTo(this.x, this.y, this.diameter);
|
||||
}
|
||||
|
||||
return out.setTo(this.x, this.y, this.diameter);
|
||||
return out;
|
||||
|
||||
},
|
||||
|
||||
@@ -795,16 +836,17 @@ Object.defineProperty(Phaser.Circle.prototype, "empty", {
|
||||
Phaser.Circle.contains = function (a, x, y) {
|
||||
|
||||
// Check if x/y are within the bounds first
|
||||
if (x >= a.left && x <= a.right && y >= a.top && y <= a.bottom) {
|
||||
|
||||
if (a.radius > 0 && x >= a.left && x <= a.right && y >= a.top && y <= a.bottom)
|
||||
{
|
||||
var dx = (a.x - x) * (a.x - x);
|
||||
var dy = (a.y - y) * (a.y - y);
|
||||
|
||||
return (dx + dy) <= (a.radius * a.radius);
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -892,6 +934,9 @@ Phaser.Circle.intersectsRectangle = function (c, r) {
|
||||
return xCornerDistSq + yCornerDistSq <= maxCornerDistSq;
|
||||
|
||||
};
|
||||
|
||||
// Because PIXI uses its own Circle, we'll replace it with ours to avoid duplicating code or confusion.
|
||||
PIXI.Circle = Phaser.Circle;
|
||||
</pre>
|
||||
</article>
|
||||
</section>
|
||||
@@ -913,7 +958,7 @@ Phaser.Circle.intersectsRectangle = function (c, r) {
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
|
||||
on Wed Feb 05 2014 06:28:24 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Sat Feb 08 2014 07:19:40 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