diff --git a/awesometanks/index.html b/awesometanks/index.html index cd9595d9..3ff269b9 100644 --- a/awesometanks/index.html +++ b/awesometanks/index.html @@ -3,6 +3,7 @@
+ diff --git a/bubbleshooter/index.html b/bubbleshooter/index.html index ec3cb39b..8b14797e 100644 --- a/bubbleshooter/index.html +++ b/bubbleshooter/index.html @@ -7,6 +7,7 @@f)return;l>h&&(h=l,r=u)}q=r;l=k[q];p=k[q+1
=(d-l.x)*(p.x-l.x)+(c-l.y)*(p.y-l.y)){if((d-l.x)*(d-l.x)+(c-l.y)*(c-l.y)>f*f)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=d-l.x;a.m_localPlaneNormal.y=c-l.y;a.m_localPlaneNormal.normalize();d=
+a.m_localPoint;d.x=l.x;d.y=l.y}else if(0>=h){if((d-p.x)*(d-p.x)+(c-p.y)*(c-p.y)>f*f)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=d-p.x;a.m_localPlaneNormal.y=c-p.y;a.m_localPlaneNormal.normalize();d=a.m_localPoint;d.x=p.x;d.y=p.y}else{r=.5*(l.x+p.x);l=.5*(l.y+p.y);h=(d-r)*b[q].x+(c-l)*b[q].y;if(h>f)return;a.m_pointCount=1;a.m_type=2;a.m_localPlaneNormal.x=b[q].x;a.m_localPlaneNormal.y=b[q].y;a.m_localPlaneNormal.normalize();d=a.m_localPoint;c=r;f=l;null==f&&(f=0);null==c&&(c=0);d.x=c;
+d.y=f}d=a.m_points[0].m_localPoint;c=e.m_p;d.x=c.x;d.y=c.y;a.m_points[0].m_id.set_key(0)};G.testOverlap=function(a,b){var d=b.lowerBound,e=a.upperBound,f=d.x-e.x,c=d.y-e.y;d=a.lowerBound;e=b.upperBound;a=d.y-e.y;return 0 k)e.setTileAt(c,g,null,!1);else{var u=n.tiles[k];if(null==u)e.setTileAt(c,g,null,!1);else if(e.setTileAt(c,g,u,!1),e.autotileData[c][g]=y,0<=u.collisionID&&l.setTile(g,c,!0),1=a?this.m_count=this.m_v1.a=1:(b=b.x*d.x+b.y*d.y,0>=b?(this.m_count=this.m_v2.a=1,this.m_v1.set(this.m_v2)):(d=1/(b+a),this.m_v1.a=b*d,this.m_v2.a=a*d,this.m_count=2))},solve3:function(){var a=this.m_v1.w,b=this.m_v2.w,d=this.m_v3.w,e=R.subtractVVPooled(b,
+a),f=R.dot(a,e),c=R.dot(b,e);f=-f;var l=R.subtractVVPooled(d,a),q=R.dot(a,l),y=R.dot(d,l);q=-q;var r=R.subtractVVPooled(d,b),h=R.dot(b,r);r=R.dot(d,r);h=-h;l=R.crossVV(e,l);e=l*R.crossVV(b,d);d=l*R.crossVV(d,a);a=l*R.crossVV(a,b);0>=f&&0>=q?this.m_count=this.m_v1.a=1:0
y||q
d&&(b=c,d=l)}return b},getSupportVertex:function(a){for(var b=0,d=this.m_vertices[0].x*a.x+this.m_vertices[0].y*a.y,e=1,f=this.m_vertexCount;e<
+f;){var c=e++,l=this.m_vertices[c].x*a.x+this.m_vertices[c].y*a.y;l>d&&(b=c,d=l)}return this.m_vertices[b]},validate:function(){return!1},reserve:function(a){for(var b=this.m_vertices.length;bb?a:b};Z.b2Assert=function(a){if(!a)throw J.thrown("Assertion Failed");};var Jh=function(a,b,d){this.col1=new Ve;this.col2=new Ve;this.col3=new Ve;null==a&&null==b&&null==d?(this.col1.setZero(),this.col2.setZero(),this.col3.setZero()):(this.col1.setV(a),this.col2.setV(b),this.col3.setV(d))};k["box2D.common.math.B2Mat33"]=Jh;
+Jh.__name__="box2D.common.math.B2Mat33";Jh.prototype={setVVV:function(a,b,d){this.col1.setV(a);this.col2.setV(b);this.col3.setV(d)},copy:function(){return new Jh(this.col1,this.col2,this.col3)},setM:function(a){this.col1.setV(a.col1);this.col2.setV(a.col2);this.col3.setV(a.col3)},addM:function(a){this.col1.x+=a.col1.x;this.col1.y+=a.col1.y;this.col1.z+=a.col1.z;this.col2.x+=a.col2.x;this.col2.y+=a.col2.y;this.col2.z+=a.col2.z;this.col3.x+=a.col3.x;this.col3.y+=a.col3.y;this.col3.z+=a.col3.z},setIdentity:function(){this.col1.x=
+1;this.col2.x=0;this.col3.x=0;this.col1.y=0;this.col2.y=1;this.col3.y=0;this.col1.z=0;this.col2.z=0;this.col3.z=1},setZero:function(){this.col1.x=0;this.col2.x=0;this.col3.x=0;this.col1.y=0;this.col2.y=0;this.col3.y=0;this.col1.z=0;this.col2.z=0;this.col3.z=0},solve22:function(a,b,d){var e=this.col1.x,f=this.col2.x,c=this.col1.y,l=this.col2.y,q=e*l-f*c;0!=q&&(q=1/q);a.x=q*(l*b-f*d);a.y=q*(e*d-c*b);return a},solve33:function(a,b,d,e){var f=this.col1.x,c=this.col1.y,l=this.col1.z,q=this.col2.x,y=this.col2.y,
+r=this.col2.z,h=this.col3.x,p=this.col3.y,k=this.col3.z,n=f*(y*k-r*p)+c*(r*h-q*k)+l*(q*p-y*h);0!=n&&(n=1/n);a.x=n*(b*(y*k-r*p)+d*(r*h-q*k)+e*(q*p-y*h));a.y=n*(f*(d*k-e*p)+c*(e*h-b*k)+l*(b*p-d*h));a.z=n*(f*(y*e-r*d)+c*(r*b-q*e)+l*(q*d-y*b));return a},col1:null,col2:null,col3:null,__class__:Jh};var R=function(){};k["box2D.common.math.B2Math"]=R;R.__name__="box2D.common.math.B2Math";R.__properties__={get_MIN_VALUE:"get_MIN_VALUE",get_MAX_VALUE:"get_MAX_VALUE"};R.isValid=function(a){return isNaN(a)||
+-Infinity==a||Infinity==a?!1:!0};R.dot=function(a,b){return a.x*b.x+a.y*b.y};R.crossVV=function(a,b){return a.x*b.y-a.y*b.x};R.crossVF=function(a,b,d){null==d&&(d=!1);if(d){d=P.getFromPool();var e=b*a.y;a=-b*a.x;null==a&&(a=0);null==e&&(e=0);d.x=e;d.y=a}else d=new P(b*a.y,-b*a.x);return d};R.crossFV=function(a,b,d){null==d&&(d=!1);if(d){d=P.getFromPool();var e=-a*b.y;a*=b.x;null==a&&(a=0);null==e&&(e=0);d.x=e;d.y=a}else d=new P(-a*b.y,a*b.x);return d};R.mulMV=function(a,b,d){null==d&&(d=!1);if(d){d=
+P.getFromPool();var e=a.col1.x*b.x+a.col2.x*b.y;a=a.col1.y*b.x+a.col2.y*b.y;null==a&&(a=0);null==e&&(e=0);d.x=e;d.y=a}else d=new P(a.col1.x*b.x+a.col2.x*b.y,a.col1.y*b.x+a.col2.y*b.y);return d};R.mulTMV=function(a,b,d){null==d&&(d=!1);if(d){d=P.getFromPool();var e=R.dot(b,a.col1);a=R.dot(b,a.col2);null==a&&(a=0);null==e&&(e=0);d.x=e;d.y=a}else d=new P(R.dot(b,a.col1),R.dot(b,a.col2));return d};R.mulX=function(a,b,d){null==d&&(d=!1);b=R.mulMV(a.R,b,d);b.x+=a.position.x;b.y+=a.position.y;return b};
+R.mulXT=function(a,b,d){b=R.subtractVVPooled(b,a.position);d=b.x*a.R.col1.x+b.y*a.R.col1.y;b.y=b.x*a.R.col2.x+b.y*a.R.col2.y;b.x=d;return b};R.addVV=function(a,b){return new P(a.x+b.x,a.y+b.y)};R.subtractVV=function(a,b){return new P(a.x-b.x,a.y-b.y)};R.subtractVVPooled=function(a,b){var d=P.getFromPool(),e=a.x-b.x;a=a.y-b.y;null==a&&(a=0);null==e&&(e=0);d.x=e;d.y=a;return d};R.distance=function(a,b){var d=a.x-b.x;a=a.y-b.y;return Math.sqrt(d*d+a*a)};R.distanceSquared=function(a,b){var d=a.x-b.x;
+a=a.y-b.y;return d*d+a*a};R.mulFV=function(a,b){return new P(a*b.x,a*b.y)};R.addMM=function(a,b){return yc.fromVV(R.addVV(a.col1,b.col1),R.addVV(a.col2,b.col2))};R.mulMM=function(a,b){return yc.fromVV(R.mulMV(a,b.col1),R.mulMV(a,b.col2))};R.mulTMM=function(a,b){var d=new P(R.dot(a.col1,b.col1),R.dot(a.col2,b.col1));a=new P(R.dot(a.col1,b.col2),R.dot(a.col2,b.col2));return yc.fromVV(d,a)};R.abs=function(a){return 0b?a:b};R.maxV=function(a,b){return new P(R.max(a.x,b.x),R.max(a.y,b.y))};R.clamp=function(a,b,d){return ad?d:a};R.clampV=function(a,b,d){return R.maxV(b,R.minV(a,d))};R.swap=function(a,b){var d=a[0];a[0]=b[0];b[0]=d};R.random=function(){return 2*Math.random()-1};R.randomRange=function(a,b){return(b-a)*Math.random()+a};R.nextPowerOfTwo=function(a){a|=
+a>>1&2147483647;a|=a>>2&1073741823;a|=a>>4&268435455;a|=a>>8&16777215;return(a|a>>16&65535)+1};R.isPowerOfTwo=function(a){return 0Number.MIN_VALUE){var b=(a-this.t0)/(1-this.t0);this.c0.x=(1-b)*this.c0.x+b*this.c.x;this.c0.y=(1-b)*this.c0.y+b*this.c.y;this.a0=(1-b)*this.a0+b*this.a;this.t0=a}},localCenter:null,c0:null,c:null,a0:null,a:null,t0:null,__class__:lh};var Ve=function(a,b,d){null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.z=d};k["box2D.common.math.B2Vec3"]=Ve;Ve.__name__="box2D.common.math.B2Vec3";Ve.prototype=
+{setZero:function(){this.x=this.y=this.z=0},set:function(a,b,d){this.x=a;this.y=b;this.z=d},setV:function(a){this.x=a.x;this.y=a.y;this.z=a.z},getNegative:function(){return new Ve(-this.x,-this.y,-this.z)},negativeSelf:function(){this.x=-this.x;this.y=-this.y;this.z=-this.z},copy:function(){return new Ve(this.x,this.y,this.z)},add:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},subtract:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},multiply:function(a){this.x*=a;this.y*=a;this.z*=a},x:null,y:null,
+z:null,__class__:Ve};var va=function(a,b){this.m_xf=new Ue;this.m_sweep=new lh;this.m_linearVelocity=new P;this.m_force=new P;this.m_flags=0;a.bullet&&(this.m_flags|=va.e_bulletFlag);a.fixedRotation&&(this.m_flags|=va.e_fixedRotationFlag);a.allowSleep&&(this.m_flags|=va.e_allowSleepFlag);a.awake&&(this.m_flags|=va.e_awakeFlag);a.active&&(this.m_flags|=va.e_activeFlag);a.ignoreGravity&&(this.m_flags|=va.e_ignoreGravityFlag);this.m_world=b;b=this.m_xf.position;var d=a.position;b.x=d.x;b.y=d.y;this.m_xf.R.set(a.angle);
+b=this.m_sweep.localCenter;b.x=0;b.y=0;this.m_sweep.t0=1;this.m_sweep.a0=this.m_sweep.a=a.angle;b=this.m_xf.R;d=this.m_sweep.localCenter;this.m_sweep.c.x=b.col1.x*d.x+b.col2.x*d.y;this.m_sweep.c.y=b.col1.y*d.x+b.col2.y*d.y;this.m_sweep.c.x+=this.m_xf.position.x;this.m_sweep.c.y+=this.m_xf.position.y;b=this.m_sweep.c0;d=this.m_sweep.c;b.x=d.x;b.y=d.y;this.m_contactList=this.m_controllerList=this.m_jointList=null;this.m_controllerCount=0;this.m_next=this.m_prev=null;b=this.m_linearVelocity;d=a.linearVelocity;
+b.x=d.x;b.y=d.y;this.m_angularVelocity=a.angularVelocity;this.m_linearDamping=a.linearDamping;this.m_angularDamping=a.angularDamping;b=this.m_force;var e=d=0;null==e&&(e=0);null==d&&(d=0);b.x=d;b.y=e;this.m_sleepTime=this.m_torque=0;this.m_type=a.type;this.m_invMass=this.m_type==va.b2_dynamicBody?this.m_mass=1:this.m_mass=0;this.m_invI=this.m_I=0;this.m_inertiaScale=a.inertiaScale;this.m_userData=a.userData;this.m_fixtureList=null;this.m_fixtureCount=0;this.groupID=a.groupID;this.origin=new P;this.size=
+new P};k["box2D.dynamics.B2Body"]=va;va.__name__="box2D.dynamics.B2Body";va.prototype={connectEdges:function(a,b,d){var e=Math.atan2(b.getDirectionVector().y,b.getDirectionVector().x);d=R.mulFV(Math.tan(.5*(e-d)),b.getDirectionVector());d=R.subtractVV(d,b.getNormalVector());d=R.mulFV(Z.b2_toiSlop,d);d=R.addVV(d,b.getVertex1());var f=R.addVV(a.getDirectionVector(),b.getDirectionVector());f.normalize();var c=0
"+this.memStr+"
"+this.memMaxStr+"")):(this.fps++,this.ms=this.timer)},normalizeMem:function(a){return Math.min(50,Math.sqrt(Math.sqrt(5E3*a)))-2|0},__class__:Qg});var xg=function(){};k["com.nmefermmmtools.debug.Colors"]=xg;xg.__name__="com.nmefermmmtools.debug.Colors";var yg=function(){};k["com.stencyl.APIKeys"]=yg;yg.__name__="com.stencyl.APIKeys";var ba=function(){};k["com.stencyl.Config"]=ba;ba.__name__="com.stencyl.Config";
+ba.load=function(){var a=W.getConfigText("config/game-config.json");ba.loadFromString(a)};ba.loadMap=function(a,b){for(var d=0,e=aa.fields(a);d>16&255)/255,(d>>8&255)/255,(d&255)/255)):a.draw(f);f.removeTiles()},toARGB:function(a,b){return a+(b<<24)},getTextWidth:function(a,b,d){null==d&&(d=1);null==b&&(b=0);for(var e=0,c=0,g=a.length,l=0;l
=this.model.durations[this.currIndex]&&(this.currTime=0,this.currIndex++,this.currIndex>=this.frameCount&&(this.currIndex=0),this.bgChild instanceof Mf?(this.cacheIndex=this.currIndex,this.model.repeats&&this.model.drawRepeated(this,h.screenWidth*h.SCALE|0,h.screenHeight*h.SCALE|0),this.currIndex=this.cacheIndex,a=this.bgChild.image1,a.set_bitmapData(this.model.frames[this.currIndex]),this.model.repeats&&(a=this.bgChild.image2,a.set_bitmapData(this.model.frames[this.currIndex]),
+a=this.bgChild.image3,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image4,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image5,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image6,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image7,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image8,a.set_bitmapData(this.model.frames[this.currIndex]),a=this.bgChild.image9,a.set_bitmapData(this.model.frames[this.currIndex]))):
+this.bitmap.set_bitmapData(this.model.frames[this.currIndex]))},updatePosition:function(a,b,d){this.bgChild instanceof Mf?w.__cast(this.bgChild,Mf).update(a,b,d):(this.set_x(-(a*this.scrollFactorX|0)),this.set_y(-(b*this.scrollFactorY|0)));this.isAnimated&&this.updateAnimation(d)},getBitmap:function(){return this.bgChild},__class__:Wd});var Oc=function(a,b,d,e){null==e&&(e=0);null==d&&(d=0);null==b&&(b=0);null==a&&(a=0);this.a=a;this.r=b;this.g=d;this.b=e};k["com.stencyl.utils.ARGB"]=Oc;Oc.__name__=
+"com.stencyl.utils.ARGB";Oc.setARGBi=function(a,b,d,e){return(a&255)<<24|(b&255)<<16|(d&255)<<8|e&255};Oc.setARGBf=function(a,b,d,e){a=255*(0>a?0:1b?0:1d?0:1
a||a>=this.cache.length)throw J.thrown("Invalid reference");return this.cache[a];case 115:a=
+this.readDigits();d=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos>2)+(2<=f?f-1:0)));for(q=0;b