bubbls-ugs-assets-main-mini-flips 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FilesArmorGames/intro.webm +0 -0
- package/FilesArmorGames/main.js +325 -0
- package/FilesArmorGames/resources.png +0 -0
- package/Package/Assets/Audio/OGG/Komiku_-_70_-_Ending.ogg +0 -0
- package/Package/Assets/Audio/WAV/coi.wav +0 -0
- package/Package/Assets/Audio/WAV/dea.wav +0 -0
- package/Package/Assets/Audio/WAV/fli.wav +0 -0
- package/Package/Assets/Audio/WAV/goa.wav +0 -0
- package/Package/Assets/Audio/WAV/gra.wav +0 -0
- package/Package/Assets/Audio/WAV/jum.wav +0 -0
- package/Package/Assets/Graphics/MapBack.png +0 -0
- package/Package/Assets/Graphics/MapTerrain.png +0 -0
- package/Package/Assets/Graphics/game.png +0 -0
- package/Package/Assets/Maps/Credits.json +489 -0
- package/Package/Assets/Maps/LastScene.json +1519 -0
- package/Package/Assets/Maps/Level01.json +1543 -0
- package/Package/Assets/Maps/Level02.json +1543 -0
- package/Package/Assets/Maps/Level03.json +1543 -0
- package/Package/Assets/Maps/Level04.json +1519 -0
- package/Package/Assets/Maps/Level05.json +1543 -0
- package/Package/Assets/Maps/Level06.json +1519 -0
- package/Package/Assets/Maps/Level07.json +1519 -0
- package/Package/Assets/Maps/Level08.json +1519 -0
- package/Package/Assets/Maps/Level09.json +1519 -0
- package/Package/Assets/Maps/Level10.json +1519 -0
- package/Package/Assets/Maps/Level11.json +1531 -0
- package/Package/Assets/Maps/Level12.json +1531 -0
- package/Package/Assets/Maps/Level13.json +1531 -0
- package/Package/Assets/Maps/Level14.json +1543 -0
- package/Package/Assets/Maps/Level15.json +1531 -0
- package/Package/Assets/Maps/Level16.json +1519 -0
- package/Package/Assets/Maps/Level17.json +1531 -0
- package/Package/Assets/Maps/Level18.json +1531 -0
- package/Package/Assets/Maps/Level19.json +1531 -0
- package/Package/Assets/Maps/Level20.json +1543 -0
- package/Package/Assets/Maps/Level21.json +1543 -0
- package/Package/Assets/Maps/Level22.json +1567 -0
- package/Package/Assets/Maps/Level23.json +1555 -0
- package/Package/Assets/Maps/Level24.json +1555 -0
- package/Package/Assets/Maps/Level25.json +1651 -0
- package/Package/Assets/Maps/Level26.json +1555 -0
- package/Package/Assets/Maps/Level27.json +1579 -0
- package/Package/Assets/Maps/LevelSelection.json +489 -0
- package/Package/Assets/Maps/LevelTest.json +904 -0
- package/Package/Assets/Maps/MainMenu-Ex-NL.json +1209 -0
- package/Package/Assets/Maps/MainMenu-Ex.json +1209 -0
- package/Package/Assets/Maps/MainMenu-Typ-1.json +1216 -0
- package/Package/Assets/Maps/MainMenu.json +1044 -0
- package/Package/Assets/Maps/MainMenuTouch.json +1044 -0
- package/Package/Assets/Maps/None.json +1763 -0
- package/Package/Assets/Maps/Preloader.json +952 -0
- package/Package/Assets/Maps/SpeedrunMenu.json +484 -0
- package/Package/Assets/Maps/TilesetGame.json +2015 -0
- package/Package/System/Fragment.glsl +172 -0
- package/Package/System/Vertex.glsl +48 -0
- package/Package/game.js +18724 -0
- package/index.html +23 -0
- package/package.json +8 -0
|
Binary file
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
Game.SINGLE_CONTROL = true;
|
|
3
|
+
|
|
4
|
+
Engine.Assets.root = "Package/";
|
|
5
|
+
//Engine.Renderer.autoscale = false;
|
|
6
|
+
|
|
7
|
+
//Game.TEXT_DESKTOP_CONTINUE_EXIT = "ESC OR CLICK HERE";
|
|
8
|
+
|
|
9
|
+
//Game.PLAYSTORE_BUTTON_POSITION = "top right";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var textureResources = null;
|
|
13
|
+
|
|
14
|
+
var Intro = /** @class */ (function(_super) {
|
|
15
|
+
__extends(Intro, _super);
|
|
16
|
+
|
|
17
|
+
var video = null;
|
|
18
|
+
var introEnded = false;
|
|
19
|
+
var gameCanvas = null;
|
|
20
|
+
|
|
21
|
+
var removeBodyElement = function(id) {
|
|
22
|
+
var elem = document.getElementById(id);
|
|
23
|
+
return elem.parentNode.removeChild(elem);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function Intro() {
|
|
27
|
+
var _this = _super.call(this) || this;
|
|
28
|
+
//_this.createMap("None", "Sky None");
|
|
29
|
+
//var x = Game.Scene.xSizeLevel * 0.5;
|
|
30
|
+
//var y = Game.Scene.ySizeLevel * 0.5;
|
|
31
|
+
//Engine.Renderer.camera(x, y);
|
|
32
|
+
Game.SceneFade.speed = 0;
|
|
33
|
+
gameCanvas = document.getElementById("gameCanvas");
|
|
34
|
+
|
|
35
|
+
Engine.Renderer.clearColor(0 / 255, 0 / 255, 0 / 255);
|
|
36
|
+
document.getElementById("gameDiv").style.backgroundColor = "black";
|
|
37
|
+
|
|
38
|
+
if (window.location.href.indexOf("armorgames.com") <= 0) {
|
|
39
|
+
setTimeout(function() {
|
|
40
|
+
|
|
41
|
+
var source = document.createElement("source");
|
|
42
|
+
source.setAttribute("src", Engine.Assets.root + PATH_INTRO);
|
|
43
|
+
video = document.getElementById("introVideo");
|
|
44
|
+
video.style.display = "block";
|
|
45
|
+
video.style.top = "0px";
|
|
46
|
+
video.style.left = "0px";
|
|
47
|
+
//video.style.position = "absolute";
|
|
48
|
+
video.style.width = "100%";
|
|
49
|
+
video.style.height = "100%";
|
|
50
|
+
video.style.cursor = "pointer";
|
|
51
|
+
video.volume = 0.6;
|
|
52
|
+
video.onclick = function() {
|
|
53
|
+
if (video.paused || video.currentTime == 0) {
|
|
54
|
+
video.play();
|
|
55
|
+
} else {
|
|
56
|
+
window.open(Game.URL_MORE_GAMES, '_blank');
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
video.onended = function() {
|
|
61
|
+
document.body.appendChild(gameCanvas);
|
|
62
|
+
removeBodyElement("introVideo");
|
|
63
|
+
introEnded = 1;
|
|
64
|
+
setTimeout(function() {
|
|
65
|
+
Game.SceneFade.speed = 0.0166666666666667 * 1000;
|
|
66
|
+
Game.Scene.instance.nextSceneClass = Game.maimen.cla;
|
|
67
|
+
|
|
68
|
+
Engine.Renderer.clearColor(228.0 / 255.0, 226.0 / 255.0, 255.0 / 255.0);
|
|
69
|
+
}, 1000);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
removeBodyElement("gameCanvas");
|
|
73
|
+
document.getElementById("gameDiv").style.backgroundColor = "black";
|
|
74
|
+
|
|
75
|
+
video.appendChild(source);
|
|
76
|
+
video.play();
|
|
77
|
+
|
|
78
|
+
}, 800);
|
|
79
|
+
}
|
|
80
|
+
return _this;
|
|
81
|
+
}
|
|
82
|
+
Intro.prototype.onStepUpdate = function() {
|
|
83
|
+
_super.prototype.onStepUpdate.call(this);
|
|
84
|
+
};
|
|
85
|
+
return Intro;
|
|
86
|
+
}(Game.Scene));
|
|
87
|
+
|
|
88
|
+
(function() {
|
|
89
|
+
var video = document.createElement('video');
|
|
90
|
+
if (video.canPlayType('video/webm').length > 0) {
|
|
91
|
+
PATH_INTRO = "../FilesArmorGames/intro.webm";
|
|
92
|
+
} else if (video.canPlayType('video/ogg').length > 0) {
|
|
93
|
+
PATH_INTRO = "../FilesArmorGames/intro.ogv";
|
|
94
|
+
}
|
|
95
|
+
//console.log(PATH_INTRO);
|
|
96
|
+
})();
|
|
97
|
+
|
|
98
|
+
Game.addAction("preloadchangecolor", function() {
|
|
99
|
+
Engine.Renderer.clearColor(0 / 255, 0 / 255, 0 / 255);
|
|
100
|
+
document.getElementById("gameDiv").style.backgroundColor = "black";
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
Game.addPath("load", PATH_INTRO);
|
|
104
|
+
Game.addPath("load", PATH_RESOURCES);
|
|
105
|
+
Game.addAction("postinit", function() {
|
|
106
|
+
//Game.Scene.fade.red = 0;
|
|
107
|
+
//Game.Scene.fade.green = 0;
|
|
108
|
+
//Game.Scene.fade.blue = 0;
|
|
109
|
+
Game.URL_MORE_GAMES = "https://armorgames.com/author/NoaDev";
|
|
110
|
+
Game.startingSceneClass = Intro;
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
Game.addAction("configure", function() {
|
|
114
|
+
textureResources = new Engine.Texture(PATH_RESOURCES, false, true);
|
|
115
|
+
textureResources.preserved = true;
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
var ARMOR_FRAMES = [];
|
|
119
|
+
Game.addAction("prepare", function() {
|
|
120
|
+
ARMOR_FRAMES[0] = new Utils.AnimationFrame(textureResources, 14, 14, 397, 123);
|
|
121
|
+
ARMOR_FRAMES[1] = new Utils.AnimationFrame(textureResources, 14, 156, 397, 123);
|
|
122
|
+
ARMOR_FRAMES[2] = new Utils.AnimationFrame(textureResources, 14, 299, 347, 71);
|
|
123
|
+
ARMOR_FRAMES[3] = new Utils.AnimationFrame(textureResources, 14, 389, 347, 71);
|
|
124
|
+
//14, 14, 397, 123
|
|
125
|
+
//14, 156, 397, 123
|
|
126
|
+
//14, 299, 347, 71
|
|
127
|
+
//14, 389, 347, 71
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
var buttonScale = 0.95;
|
|
131
|
+
|
|
132
|
+
Game.USE_LOGO_BUTTON_FRAME_LEFT = true;
|
|
133
|
+
Game.USE_LOGO_BUTTON_FRAME_RIGHT = true;
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
function createArmorButtonTitle() {
|
|
138
|
+
switch (Game.Level.index) {
|
|
139
|
+
case 8:
|
|
140
|
+
case 13:
|
|
141
|
+
case 16:
|
|
142
|
+
case 25:
|
|
143
|
+
case 27:
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
var button = new Game.Button();
|
|
148
|
+
var fra = new Game.LevelLogoFrameRight();
|
|
149
|
+
|
|
150
|
+
button.bounds.enabled = true;
|
|
151
|
+
button.bounds.pinned = true;
|
|
152
|
+
button.arrows.enabled = false;
|
|
153
|
+
ARMOR_FRAMES[1].applyToSprite(button.bounds);
|
|
154
|
+
button.bounds.xSize *= 0.085 * buttonScale;
|
|
155
|
+
button.bounds.ySize *= 0.085 * buttonScale;
|
|
156
|
+
button.anchor.xAlignBounds = Utils.AnchorAlignment.END;
|
|
157
|
+
button.anchor.xAlignView = Utils.AnchorAlignment.END;
|
|
158
|
+
button.anchor.yAlignBounds = Utils.AnchorAlignment.END;
|
|
159
|
+
button.anchor.yAlignView = Utils.AnchorAlignment.END;
|
|
160
|
+
button.anchor.xAligned = -11 + 8 + 2 - 0.5 - 0.25;
|
|
161
|
+
button.anchor.yAligned = -1.5;
|
|
162
|
+
|
|
163
|
+
fra.sprfor = button.bounds;
|
|
164
|
+
button.control.bounds = fra.spr;
|
|
165
|
+
|
|
166
|
+
button.control.url = "http://armor.ag/MoreGames";
|
|
167
|
+
button.control.onSelectionStayDelegate = () => {
|
|
168
|
+
Engine.Renderer.useHandPointer = true;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function createFacebookButtonTitle() {
|
|
173
|
+
switch (Game.Level.index) {
|
|
174
|
+
case 2:
|
|
175
|
+
case 8:
|
|
176
|
+
case 16:
|
|
177
|
+
case 17:
|
|
178
|
+
case 26:
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
var button = new Game.Button();
|
|
183
|
+
var fra = new Game.LevelLogoFrameLeft();
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
button.bounds.enabled = true;
|
|
187
|
+
button.bounds.pinned = true;
|
|
188
|
+
button.arrows.enabled = false;
|
|
189
|
+
ARMOR_FRAMES[2].applyToSprite(button.bounds);
|
|
190
|
+
button.bounds.xSize *= 0.097 * buttonScale;
|
|
191
|
+
button.bounds.ySize *= 0.097 * buttonScale;
|
|
192
|
+
button.anchor.xAlignBounds = Utils.AnchorAlignment.START;
|
|
193
|
+
button.anchor.xAlignView = Utils.AnchorAlignment.START;
|
|
194
|
+
button.anchor.yAlignBounds = Utils.AnchorAlignment.END;
|
|
195
|
+
button.anchor.yAlignView = Utils.AnchorAlignment.END;
|
|
196
|
+
button.anchor.xAligned = 11 - 8 - 0.25 - 0.25 - 0.25 - 0.25;
|
|
197
|
+
button.anchor.yAligned = -2.0 - 2 + 1 - 0.5;
|
|
198
|
+
|
|
199
|
+
fra.sprfor = button.bounds;
|
|
200
|
+
button.control.bounds = fra.spr;
|
|
201
|
+
|
|
202
|
+
button.control.url = "http://www.facebook.com/ArmorGames";
|
|
203
|
+
button.control.onSelectionStayDelegate = () => {
|
|
204
|
+
Engine.Renderer.useHandPointer = true;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
function createFacebookButtonLevel() {
|
|
210
|
+
var button = new Game.Button();
|
|
211
|
+
var fra = new Game.LevelLogoFrameLeft();
|
|
212
|
+
|
|
213
|
+
button.bounds.enabled = true;
|
|
214
|
+
button.bounds.pinned = true;
|
|
215
|
+
button.arrows.enabled = false;
|
|
216
|
+
ARMOR_FRAMES[3].applyToSprite(button.bounds);
|
|
217
|
+
button.bounds.xSize *= 0.097 * buttonScale;
|
|
218
|
+
button.bounds.ySize *= 0.097 * buttonScale;
|
|
219
|
+
button.anchor.xAlignBounds = Utils.AnchorAlignment.START;
|
|
220
|
+
button.anchor.xAlignView = Utils.AnchorAlignment.START;
|
|
221
|
+
button.anchor.yAlignBounds = Utils.AnchorAlignment.END;
|
|
222
|
+
button.anchor.yAlignView = Utils.AnchorAlignment.END;
|
|
223
|
+
button.anchor.xAligned = 11 - 8 - 0.25 - 0.25 - 0.25 - 0.25;
|
|
224
|
+
button.anchor.yAligned = -2.0 - 2 + 1 - 0.5;
|
|
225
|
+
|
|
226
|
+
fra.sprfor = button.bounds;
|
|
227
|
+
button.control.bounds = fra.spr;
|
|
228
|
+
|
|
229
|
+
button.control.url = "http://www.facebook.com/ArmorGames";
|
|
230
|
+
button.control.onSelectionStayDelegate = () => {
|
|
231
|
+
Engine.Renderer.useHandPointer = true;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
function createArmorButtonLevel() {
|
|
237
|
+
var button = new Game.Button();
|
|
238
|
+
var fra = new Game.LevelLogoFrameRight();
|
|
239
|
+
|
|
240
|
+
button.bounds.enabled = true;
|
|
241
|
+
button.bounds.pinned = true;
|
|
242
|
+
button.arrows.enabled = false;
|
|
243
|
+
ARMOR_FRAMES[0].applyToSprite(button.bounds);
|
|
244
|
+
button.bounds.xSize *= 0.085 * buttonScale;
|
|
245
|
+
button.bounds.ySize *= 0.085 * buttonScale;
|
|
246
|
+
button.anchor.xAlignBounds = Utils.AnchorAlignment.END;
|
|
247
|
+
button.anchor.xAlignView = Utils.AnchorAlignment.END;
|
|
248
|
+
button.anchor.yAlignBounds = Utils.AnchorAlignment.END;
|
|
249
|
+
button.anchor.yAlignView = Utils.AnchorAlignment.END;
|
|
250
|
+
button.anchor.xAligned = -11 + 8 + 2 - 0.5 - 0.25;
|
|
251
|
+
button.anchor.yAligned = -1.5;
|
|
252
|
+
|
|
253
|
+
fra.sprfor = button.bounds;
|
|
254
|
+
button.control.bounds = fra.spr;
|
|
255
|
+
|
|
256
|
+
button.control.url = "http://armor.ag/MoreGames";
|
|
257
|
+
button.control.onSelectionStayDelegate = () => {
|
|
258
|
+
Engine.Renderer.useHandPointer = true;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
Game.addAction("mainmenu", createArmorButtonTitle);
|
|
265
|
+
Game.addAction("mainmenu", createFacebookButtonTitle);
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
Game.addAction("credits", createArmorButtonTitle);
|
|
269
|
+
Game.addAction("credits", createFacebookButtonTitle);
|
|
270
|
+
|
|
271
|
+
Game.addAction("levelselectionmenu", createArmorButtonTitle);
|
|
272
|
+
Game.addAction("levelselectionmenu", createFacebookButtonTitle);
|
|
273
|
+
|
|
274
|
+
Game.addAction("level", createArmorButtonTitle);
|
|
275
|
+
Game.addAction("level", createFacebookButtonTitle);
|
|
276
|
+
|
|
277
|
+
//Game.addAction("endscreen", createArmorButtonTitle);
|
|
278
|
+
//Game.addAction("endscreen", createFacebookButtonTitle);
|
|
279
|
+
|
|
280
|
+
var EXTRA_FRAMES = null;
|
|
281
|
+
|
|
282
|
+
function createButtonOtherGame() {
|
|
283
|
+
var button = new Game.Button();
|
|
284
|
+
|
|
285
|
+
button.bounds.setFull(true, true, textureResources, 47 * 4, 40 * 4, 0, 0, 434, 8, 47 * 4, 40 * 4);
|
|
286
|
+
|
|
287
|
+
button.arrows.enabled = false;
|
|
288
|
+
button.bounds.xSize *= 0.25 * 0.5;
|
|
289
|
+
button.bounds.ySize *= 0.25 * 0.5;
|
|
290
|
+
button.anchor.xAlignBounds = Utils.AnchorAlignment.END;
|
|
291
|
+
button.anchor.xAlignView = Utils.AnchorAlignment.END;
|
|
292
|
+
button.anchor.yAlignBounds = Utils.AnchorAlignment.MIDDLE;
|
|
293
|
+
button.anchor.yAlignView = Utils.AnchorAlignment.MIDDLE;
|
|
294
|
+
button.anchor.xAligned = -16.25 + 8;
|
|
295
|
+
button.anchor.yAligned = 0;
|
|
296
|
+
|
|
297
|
+
button.control.url = "https://armorgames.com/mini-switcher-extended-game/18591";
|
|
298
|
+
button.control.onSelectionStayDelegate = () => {
|
|
299
|
+
Engine.Renderer.useHandPointer = true;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
//Game.addAction("mainmenu", createButtonOtherGame);
|
|
304
|
+
|
|
305
|
+
Game.addAction("postinit", function() {
|
|
306
|
+
Game.SceneFade.setCodlor(0, 0, 0);
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
//Game.addAction("mainmenu", createButtonMiniSwitcher);
|
|
312
|
+
|
|
313
|
+
//Game.addAction("endscreen", createArmorButtonOld);
|
|
314
|
+
//Game.addAction("endscreen", createFacebookButtonWhite);
|
|
315
|
+
/*
|
|
316
|
+
Game.addAction("mainmenu", createFacebookButton);
|
|
317
|
+
|
|
318
|
+
Game.addAction("credits", createFacebookButton);
|
|
319
|
+
Game.addAction("level", createArmorButtonCenter);
|
|
320
|
+
Game.addAction("levelselection", createArmorButtonNormal);
|
|
321
|
+
Game.addAction("levelselection", createFacebookButton);
|
|
322
|
+
Game.addAction("endscreen", createArmorButtonNormal);
|
|
323
|
+
Game.addAction("endscreen", createFacebookButton);
|
|
324
|
+
*/
|
|
325
|
+
})();
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|