Skip to content

Commit 96128e5

Browse files
committed
full build
1 parent 7e7d407 commit 96128e5

File tree

252 files changed

+9506
-5314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+9506
-5314
lines changed

build/kiwi.d.ts

+501-184
Large diffs are not rendered by default.

build/kiwi.js

+50-17
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,8 @@ var Kiwi;
27692769
if (this.deviceTargetOption === Kiwi.TARGET_BROWSER) {
27702770
if (domParent !== '') {
27712771
if (document.getElementById(domParent))
2772-
console.log('Game being created inside ' + domParent + '.'); else
2772+
console.log('Game being created inside ' + domParent + '.');
2773+
else
27732774
console.log('The element "' + domParent + '" could not be found. Appending the game to the body.');
27742775
} else {
27752776
console.log('No DOM parent specified. Appending the game to the body.');
@@ -3061,6 +3062,7 @@ var Kiwi;
30613062
//if (this.containsDescendant(val) === false) {
30623063
this.transform.parent = (val !== null) ? val.transform : null;
30633064
this._parent = val;
3065+
//}
30643066
},
30653067
enumerable: true,
30663068
configurable: true
@@ -4070,17 +4072,17 @@ var Kiwi;
40704072
})();
40714073
Kiwi.PluginManager = PluginManager;
40724074
})(Kiwi || (Kiwi = {}));
4075+
/**
4076+
*
4077+
* @module Kiwi
4078+
*
4079+
*/
40734080
var __extends = this.__extends || function (d, b) {
40744081
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
40754082
function __() { this.constructor = d; }
40764083
__.prototype = b.prototype;
40774084
d.prototype = new __();
40784085
};
4079-
/**
4080-
*
4081-
* @module Kiwi
4082-
*
4083-
*/
40844086
var Kiwi;
40854087
(function (Kiwi) {
40864088
/**
@@ -4448,6 +4450,11 @@ var Kiwi;
44484450
* @module Kiwi
44494451
*
44504452
*/
4453+
/**
4454+
*
4455+
* @module Kiwi
4456+
*
4457+
*/
44514458
var Kiwi;
44524459
(function (Kiwi) {
44534460
/**
@@ -5151,6 +5158,7 @@ var Kiwi;
51515158

51525159
this._createCompositeCanvas();
51535160
if (this._game.debugOption === Kiwi.DEBUG_ON) {
5161+
//this._createDebugCanvas();
51545162
}
51555163
};
51565164

@@ -5162,6 +5170,7 @@ var Kiwi;
51625170
Stage.prototype._createCompositeCanvas = function () {
51635171
if (this._game.deviceTargetOption == Kiwi.TARGET_COCOON) {
51645172
this.canvas = document.createElement(navigator['isCocoonJS'] ? 'screencanvas' : 'canvas');
5173+
//otherwise default to normal canvas
51655174
} else {
51665175
this.canvas = document.createElement("canvas");
51675176
}
@@ -5216,6 +5225,7 @@ var Kiwi;
52165225
*/
52175226
Stage.prototype._createDebugCanvas = function () {
52185227
if (this._game.deviceTargetOption === Kiwi.TARGET_COCOON) {
5228+
//debug canvas not supported in cocoon, creating canvas and context anyway.
52195229
}
52205230
this.debugCanvas = document.createElement("canvas");
52215231
this.debugCanvas.id = this._game.id + "debugCanvas";
@@ -5305,6 +5315,7 @@ var Kiwi;
53055315

53065316
if (this._animations['default']) {
53075317
this.currentAnimation = this._animations['default'];
5318+
//otherwise create one.
53085319
} else {
53095320
var defaultCells = [];
53105321
for (var i = 0; i < this._atlas.cells.length; i++) {
@@ -5422,7 +5433,8 @@ var Kiwi;
54225433
this._setCurrentAnimation(name);
54235434

54245435
if (index !== null)
5425-
this.currentAnimation.playAt(index); else
5436+
this.currentAnimation.playAt(index);
5437+
else
54265438
this.currentAnimation.play();
54275439

54285440
this.onPlay.dispatch(this.currentAnimation);
@@ -6910,7 +6922,8 @@ var Kiwi;
69106922
ArcadePhysics.prototype.solid = function (value) {
69116923
if (value !== undefined) {
69126924
if (value)
6913-
this.allowCollisions = ArcadePhysics.ANY; else
6925+
this.allowCollisions = ArcadePhysics.ANY;
6926+
else
69146927
this.allowCollisions = ArcadePhysics.NONE;
69156928
}
69166929

@@ -7263,16 +7276,20 @@ var Kiwi;
72637276
if (typeof drag === "undefined") { drag = 0; }
72647277
if (typeof max === "undefined") { max = 10000; }
72657278
if (acceleration != 0)
7266-
velocity += acceleration * ArcadePhysics.updateInterval; else if (drag != 0) {
7279+
velocity += acceleration * ArcadePhysics.updateInterval;
7280+
else if (drag != 0) {
72677281
drag = drag * ArcadePhysics.updateInterval;
72687282
if (velocity - drag > 0)
7269-
velocity = velocity - drag; else if (velocity + drag < 0)
7270-
velocity += drag; else
7283+
velocity = velocity - drag;
7284+
else if (velocity + drag < 0)
7285+
velocity += drag;
7286+
else
72717287
velocity = 0;
72727288
}
72737289
if ((velocity != 0) && (max != 10000)) {
72747290
if (velocity > max)
7275-
velocity = max; else if (velocity < -max)
7291+
velocity = max;
7292+
else if (velocity < -max)
72767293
velocity = -max;
72777294
}
72787295
return velocity;
@@ -10802,6 +10819,7 @@ var Kiwi;
1080210819
*/
1080310820
TileMap.prototype.collideGroup = function (group) {
1080410821
for (var i = 0; i < group.members.length; i++) {
10822+
//this.collideSingle(group.members[i]);
1080510823
}
1080610824
};
1080710825

@@ -11836,6 +11854,7 @@ var Kiwi;
1183611854
if (typeof output === "undefined") { output = new Geom.Point(); }
1183711855
if (asDegrees === true) {
1183811856
angle = angle * (Math.PI / 180);
11857+
//angle = angle * (180 / Math.PI); // Degrees to Radians
1183911858
}
1184011859

1184111860
output.x = this.x + this._radius * Math.cos(angle);
@@ -12084,6 +12103,7 @@ var Kiwi;
1208412103
if (Math.atan2(y - this.y1, x - this.x1) == Math.atan2(this.y2 - this.y1, this.x2 - this.x1)) {
1208512104
return true;
1208612105
}
12106+
// return true;
1208712107
}
1208812108

1208912109
return false;
@@ -12833,7 +12853,8 @@ var Kiwi;
1283312853
*/
1283412854
Line.prototype.getY = function (x) {
1283512855
if (this.x1 == this.x2)
12836-
return null; else
12856+
return null;
12857+
else
1283712858
return this.slope * x + this.yIntercept;
1283812859
};
1283912860

@@ -14724,6 +14745,7 @@ var Kiwi;
1472414745
function (value) {
1472514746
this._scaleX = value;
1472614747
this._scaleY = value;
14748+
//this.owner.dirty = true;
1472714749
},
1472814750
enumerable: true,
1472914751
configurable: true
@@ -15902,6 +15924,7 @@ var Kiwi;
1590215924
if (this.onCoordsUpdate)
1590315925
this.onCoordsUpdate.dispose();
1590415926
delete this.onCoordsUpdate;
15927+
//remove the elements....
1590515928
};
1590615929
return HUDWidget;
1590715930
})();
@@ -16996,6 +17019,7 @@ var Kiwi;
1699617019
}
1699717020

1699817021
_super.prototype.setTemplate.call(this, main);
17022+
//do something with each item
1699917023
}
1700017024
};
1700117025

@@ -18463,7 +18487,8 @@ var Kiwi;
1846318487
this.duration = this.totalDuration * 1000;
1846418488

1846518489
if (this._muted)
18466-
this._sound.volume = 0; else
18490+
this._sound.volume = 0;
18491+
else
1846718492
this._sound.volume = this._volume;
1846818493

1846918494
this._sound.currentTime = this._markers[this._currentMarker].start;
@@ -19109,6 +19134,7 @@ var Kiwi;
1910919134
this._parent.updateCellIndex();
1911019135
if (this._onLoop !== null)
1911119136
this._onLoop.dispatch();
19137+
//Not Looping, stop animation.
1911219138
} else {
1911319139
//Execute the stop on the parent to allow the isPlaying boolean to remain consistent
1911419140
this._parent.stop();
@@ -19495,6 +19521,7 @@ var Kiwi;
1949519521
* @public
1949619522
*/
1949719523
Keyboard.prototype.update = function () {
19524+
// Loop through all 'down' keys and update the timers on those still pressed
1949819525
};
1949919526

1950019527
/**
@@ -22802,6 +22829,7 @@ var Kiwi;
2280222829
* @method boot
2280322830
*/
2280422831
Browser.prototype.boot = function () {
22832+
//this._game.stage.offset = this.getOffsetPoint(this._game.stage.container);
2280522833
};
2280622834

2280722835
/**
@@ -23171,6 +23199,7 @@ var Kiwi;
2317123199
this.worker = !!window['Worker'];
2317223200

2317323201
if ('ontouchstart' in document.documentElement || window.navigator.msPointerEnabled) {
23202+
//this.touch = true;
2317423203
}
2317523204
};
2317623205

@@ -24569,6 +24598,7 @@ var Kiwi;
2456924598
if (this.delta > 0.1) {
2457024599
this.delta = 0.1;
2457124600
}
24601+
// Apply time scaling
2457224602
};
2457324603

2457424604
/**
@@ -25275,6 +25305,7 @@ var Kiwi;
2527525305
*/
2527625306
Canvas.prototype.clear = function () {
2527725307
if (this._clearMode === Canvas.CLEARMODE_NONE) {
25308+
// Do nothing
2527825309
} else if (this._clearMode === Canvas.CLEARMODE_CLEARRECT) {
2527925310
// Clear Rect
2528025311
this.context.clearRect(0, 0, this.domElement.width, this.domElement.height);
@@ -25692,7 +25723,8 @@ var Kiwi;
2569225723
max -= min;
2569325724

2569425725
if (!max)
25695-
return 0; else
25726+
return 0;
25727+
else
2569625728
return val / max;
2569725729
};
2569825730

@@ -25707,7 +25739,8 @@ var Kiwi;
2570725739
*/
2570825740
function (n) {
2570925741
if (n)
25710-
return n / Math.abs(n); else
25742+
return n / Math.abs(n);
25743+
else
2571125744
return 0;
2571225745
};
2571325746

@@ -26918,7 +26951,7 @@ var Kiwi;
2691826951

2691926952
var seed;
2692026953

26921-
for (var i = 0; seed = seeds[i++]; ) {
26954+
for (var i = 0; seed = seeds[i++];) {
2692226955
this.s0 -= this.hash(seed);
2692326956
this.s0 += ~~(this.s0 < 0);
2692426957

build/kiwi.min.js

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
YUI.add("yuidoc-meta", function(Y) {
22
Y.YUIDoc = { meta: {
33
"classes": [
4+
"GLRenderer",
5+
"GLShaders",
6+
"GLTexture",
7+
"GLTextureManager",
8+
"IRenderer",
49
"Kiwi.Animations.Animation",
510
"Kiwi.Animations.Sequence",
611
"Kiwi.Animations.Tween",
@@ -68,7 +73,6 @@ YUI.add("yuidoc-meta", function(Y) {
6873
"Kiwi.HUD.Widget.Time",
6974
"Kiwi.IChild",
7075
"Kiwi.Input.Finger",
71-
"Kiwi.Input.IRenderer",
7276
"Kiwi.Input.InputManager",
7377
"Kiwi.Input.Key",
7478
"Kiwi.Input.Keyboard",
@@ -81,9 +85,6 @@ YUI.add("yuidoc-meta", function(Y) {
8185
"Kiwi.Renderers.CanvasRenderer",
8286
"Kiwi.Renderers.GLArrayBuffer",
8387
"Kiwi.Renderers.GLElementArrayBuffer",
84-
"Kiwi.Renderers.GLRenderer",
85-
"Kiwi.Renderers.GLShaders",
86-
"Kiwi.Renderers.GLTexture",
8788
"Kiwi.Signal",
8889
"Kiwi.SignalBinding",
8990
"Kiwi.Sound.Audio",

docs/assets/css/logo.png

4.25 KB
Loading

docs/assets/css/main.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,11 @@ ul li p {
345345
}
346346

347347
#hd {
348-
background: whiteSmoke;
349-
background: -moz-linear-gradient(top,#DCDBD9 0,#F6F5F3 100%);
350-
background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#DCDBD9),color-stop(100%,#F6F5F3));
351-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdbd9',endColorstr='#F6F5F3',GradientType=0);
348+
background: rgb(5, 16, 41);
352349
border-bottom: 1px solid #DFDFDF;
353350
padding: 0 15px 1px 20px;
354351
margin-bottom: 15px;
352+
color: white;
355353
}
356354

357355
#hd img {

0 commit comments

Comments
 (0)