Text added to PIXI

destroy function added to textures too
docs updated
new example added
This commit is contained in:
Mat Groves 2013-04-24 20:54:03 +01:00
parent 7933cadb77
commit 09dbbd5d13
66 changed files with 10970 additions and 681 deletions

View file

@ -67,6 +67,8 @@
<li><a href="..&#x2F;classes/Stage.html">Stage</a></li>
<li><a href="..&#x2F;classes/Text.html">Text</a></li>
<li><a href="..&#x2F;classes/Texture.html">Texture</a></li>
<li><a href="..&#x2F;classes/TilingSprite.html">TilingSprite</a></li>
@ -438,13 +440,16 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
var x = a11 * id * global.x + -a01 * id * global.y + (a12 * a01 - a02 * a11) * id;
var y = a00 * id * global.y + -a10 * id * global.x + (-a12 * a00 + a02 * a10) * id;
var x1 = -item.width * item.anchor.x;
var width = item.texture.frame.width;
var height = item.texture.frame.height;
if(x &gt; x1 &amp;&amp; x &lt; x1 + item.width)
var x1 = -width * item.anchor.x;
if(x &gt; x1 &amp;&amp; x &lt; x1 + width)
{
var y1 = -item.height * item.anchor.y;
var y1 = -height * item.anchor.y;
if(y &gt; y1 &amp;&amp; y &lt; y1 + item.height)
if(y &gt; y1 &amp;&amp; y &lt; y1 + height)
{
return true;
}