Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
quick update
Browse files Browse the repository at this point in the history
  • Loading branch information
adireddy committed Feb 8, 2015
1 parent 8e2c467 commit 05d92ce
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 32 deletions.
4 changes: 2 additions & 2 deletions build.hxml
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@
-js samples/_output/hx-pixi-particles.js
-dce full

-D source-map-content
-debug
#-D source-map-content
#-debug
12 changes: 6 additions & 6 deletions docs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20234,7 +20234,7 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
</class>
<class path="samples.particles.Main" params="" file="samples/particles/Main.hx">
<extends path="pixi.Application"/>
<main set="method" line="87" static="1">
<main set="method" line="88" static="1">
<f a=""><x path="Void"/></f>
<meta><m n=":keep"/></meta>
</main>
Expand All @@ -20243,17 +20243,17 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
<elapsed><x path="Float"/></elapsed>
<emitters><c path="Array"><c path="pixi.plugins.particles.cloudkid.Emitter"/></c></emitters>
<particle_json_config><d/></particle_json_config>
<_init set="method" line="33"><f a=""><x path="Void"/></f></_init>
<_onUpdate set="method" line="45"><f a="elapsedTime">
<_init set="method" line="34"><f a=""><x path="Void"/></f></_init>
<_onUpdate set="method" line="46"><f a="elapsedTime">
<x path="Float"/>
<x path="Void"/>
</f></_onUpdate>
<_onAssetLoaded set="method" line="79"><f a="loader">
<_onAssetLoaded set="method" line="80"><f a="loader">
<d/>
<x path="Void"/>
</f></_onAssetLoaded>
<_onAssetsLoaded set="method" line="83"><f a=""><x path="Void"/></f></_onAssetsLoaded>
<new public="1" set="method" line="20"><f a=""><x path="Void"/></f></new>
<_onAssetsLoaded set="method" line="84"><f a=""><x path="Void"/></f></_onAssetsLoaded>
<new public="1" set="method" line="21"><f a=""><x path="Void"/></f></new>
<meta><m n=":keep"/></meta>
</class>
</haxe>
14 changes: 6 additions & 8 deletions samples/_output/hx-pixi-particles.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ samples.particles.Main.main = function() {
samples.particles.Main.__super__ = pixi.Application;
samples.particles.Main.prototype = $extend(pixi.Application.prototype,{
_init: function() {
this.set_stats(true);
this.backgroundColor = 0;
this.backgroundColor = 13158;
this.onUpdate = $bind(this,this._onUpdate);
this.resize = false;
this.width = 800;
this.height = 600;
this.emitters = new Array();
this.resize = true;
this.width = window.innerWidth;
this.height = window.innerHeight;
pixi.Application.prototype.start.call(this);
this.set_stats(true);
this.emitters = new Array();
}
,_onUpdate: function(elapsedTime) {
var now = haxe.Timer.stamp();
Expand Down Expand Up @@ -170,5 +170,3 @@ Math.isNaN = function(i1) {
};
samples.particles.Main.main();
})();

//# sourceMappingURL=hx-pixi-particles.js.map
9 changes: 0 additions & 9 deletions samples/_output/hx-pixi-particles.js.map

This file was deleted.

15 changes: 8 additions & 7 deletions samples/particles/Main.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package samples.particles;

import js.Browser;
import haxe.Timer;
import pixi.Application;
import pixi.display.Stage;
Expand Down Expand Up @@ -31,15 +32,15 @@ class Main extends Application {
}

function _init() {
stats = true;
backgroundColor = 0x000000;
backgroundColor = 0x003366;
onUpdate = _onUpdate;
resize = false;
width = 800;
height = 600;
emitters = new Array();

resize = true;
width = Browser.window.innerWidth;
height = Browser.window.innerHeight;
super.start();
stats = true;

emitters = new Array();
}

function _onUpdate(elapsedTime:Float) {
Expand Down

0 comments on commit 05d92ce

Please sign in to comment.