-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode5.js
97 lines (73 loc) · 4.41 KB
/
code5.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
gdjs.Game_32Over_32Screen_32Level_321Code = {};
gdjs.Game_32Over_32Screen_32Level_321Code.GDGameOverObjects1= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDGameOverObjects2= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDGameOverSubObjects1= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDGameOverSubObjects2= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects1= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects2= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects1= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects2= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDCenterObjects1= [];
gdjs.Game_32Over_32Screen_32Level_321Code.GDCenterObjects2= [];
gdjs.Game_32Over_32Screen_32Level_321Code.conditionTrue_0 = {val:false};
gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0 = {val:false};
gdjs.Game_32Over_32Screen_32Level_321Code.condition1IsTrue_0 = {val:false};
gdjs.Game_32Over_32Screen_32Level_321Code.eventsList0 = function(runtimeScene) {
{
gdjs.copyArray(runtimeScene.getObjects("ReTry"), gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects1);
gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val = false;
{
for(var i = 0, k = 0, l = gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects1.length;i<l;++i) {
if ( gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects1[i].getBehavior("button").isClicked((typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined)) ) {
gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val = true;
gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects1[k] = gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects1[i];
++k;
}
}
gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects1.length = k;}if (gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val) {
{gdjs.evtTools.runtimeScene.replaceScene(runtimeScene, "Level 1", false);
}}
}
{
gdjs.copyArray(runtimeScene.getObjects("MainMenu"), gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects1);
gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val = false;
{
for(var i = 0, k = 0, l = gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects1.length;i<l;++i) {
if ( gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects1[i].getBehavior("button").isClicked((typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined)) ) {
gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val = true;
gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects1[k] = gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects1[i];
++k;
}
}
gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects1.length = k;}if (gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val) {
{gdjs.evtTools.runtimeScene.replaceScene(runtimeScene, "Main Menu", false);
}}
}
{
gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val = false;
{
gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val = gdjs.evtTools.runtimeScene.sceneJustBegins(runtimeScene);
}if (gdjs.Game_32Over_32Screen_32Level_321Code.condition0IsTrue_0.val) {
gdjs.copyArray(runtimeScene.getObjects("Center"), gdjs.Game_32Over_32Screen_32Level_321Code.GDCenterObjects1);
{for(var i = 0, len = gdjs.Game_32Over_32Screen_32Level_321Code.GDCenterObjects1.length ;i < len;++i) {
gdjs.Game_32Over_32Screen_32Level_321Code.GDCenterObjects1[i].hide();
}
}}
}
};
gdjs.Game_32Over_32Screen_32Level_321Code.func = function(runtimeScene) {
runtimeScene.getOnceTriggers().startNewFrame();
gdjs.Game_32Over_32Screen_32Level_321Code.GDGameOverObjects1.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDGameOverObjects2.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDGameOverSubObjects1.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDGameOverSubObjects2.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects1.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDMainMenuObjects2.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects1.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDReTryObjects2.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDCenterObjects1.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.GDCenterObjects2.length = 0;
gdjs.Game_32Over_32Screen_32Level_321Code.eventsList0(runtimeScene);
return;
}
gdjs['Game_32Over_32Screen_32Level_321Code'] = gdjs.Game_32Over_32Screen_32Level_321Code;