-
Notifications
You must be signed in to change notification settings - Fork 2
/
intro.js
186 lines (145 loc) · 7.78 KB
/
intro.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
GIDGET.createIntroduction = function() {
var intro = new SCENES.Movie();
/*
var bgMain = new SCENES.Sprite("media/scene/bg01.png", 480, 480);
var bgMain2 = new SCENES.Sprite("media/scene/bg02.png", 480, 480);
var bgMain3 = new SCENES.Sprite("media/scene/bg03.png", 480, 480);
var bgSky = new SCENES.Sprite("media/scene/sky.png", 480, 480);
var ground = new SCENES.Sprite("media/scene/ground.png", 480, 480);
var boom = new SCENES.Sprite("media/scene/boom.png", 455, 366);
var gidgetSad = new SCENES.Sprite("media/scene/gidget.sad.png", 113, 113);
var gidgetSadSmall = new SCENES.Sprite("media/scene/gidget.sad.png", 20, 20);
var gidgetConfidentSmall= new SCENES.Sprite("media/scene/gidget.confident.png", 25, 25);
var gidgetControl = new SCENES.Sprite("media/scene/gidget.control.png", 150, 150);
var gidgetControlSmall = new SCENES.Sprite("media/scene/gidget.control.png", 25, 25);
var gidgetConfident = new SCENES.Sprite("media/scene/gidget.confident.png", 150, 150);
var gidgetSurprised = new SCENES.Sprite("media/scene/gidget.surprised.png", 150, 150);
var gidgetSurprisedSmall= new SCENES.Sprite("media/scene/gidget.surprised.png", 25, 25);
var gidgetSmashExp = new SCENES.Sprite("media/scene/gidget.smashExp.png", 255, 150);
var rock = new SCENES.Sprite("media/scene/rock.png", 255, 150);
var heliEastbound = new SCENES.Sprite("media/scene/heli-eastbound.png", 93, 36);
var heliWestbound = new SCENES.Sprite("media/scene/heli-westbound.png", 139, 55);
var heliWestboundE = new SCENES.Sprite("media/scene/heli-westboundExp.png", 139, 55);
var heliWestboundC = new SCENES.Sprite("media/scene/heli-westboundControl.png", 139, 55);
var goop = new SCENES.Sprite("media/scene/goop.default.png", 20, 20);
var cat = new SCENES.Sprite("media/scene/cat.default.png", 20, 20);
var kitten = new SCENES.Sprite("media/scene/kitten.default.png", 20, 20);
var dog = new SCENES.Sprite("media/scene/dog.default.png", 20, 20);
var puppy = new SCENES.Sprite("media/scene/puppy.default.png", 20, 20);
var bird = new SCENES.Sprite("media/scene/bird.default.png", 20, 20);
var piglet = new SCENES.Sprite("media/scene/piglet.default.png", 20, 20);
var scene1 = new SCENES.Scene(31000);
scene1.addSprite(bgMain, [0,7000], [0, 0]);
scene1.addSprite(boom, [6000,8000], [10, 0]);
scene1.addSprite(bgMain2, [7000,11500], [0, 0]);
scene1.addSprite(bgMain3, [11500, 16000], [0, 0]);
scene1.addSprite(heliWestboundE, [9000, 10000], [400, 300]);
scene1.addSprite(heliWestboundE, [10000, 11000], [300, 300]);
scene1.addSprite(heliWestboundE, [11000, 12000], [200, 300]);
scene1.addSprite(heliWestboundE, [12000, 13000], [100, 300]);
scene1.addSprite(heliWestbound, [13000, 15000], [100, 300]);
scene1.addSprite(heliWestbound, [15000, 16000], [0, 300]);
scene1.addSprite(gidgetConfidentSmall, [13000, 13500], [155, 330]);
scene1.addSprite(gidgetConfidentSmall, [13500, 14000], [157, 340]);
scene1.addSprite(gidgetSurprisedSmall, [14000, 14500], [160, 350]);
scene1.addSprite(gidgetSurprisedSmall, [14500, 15000], [160, 360]);
scene1.addSprite(gidgetSurprisedSmall, [15000, 15500], [160, 365]);
scene1.addSprite(gidgetSurprisedSmall, [15500, 16000], [160, 365]);
scene1.addSprite(bgSky, [16000,21000], [0, 0]);
scene1.addSprite(gidgetSurprised, [16000, 16500], [150, 0]);
scene1.addSprite(gidgetSurprised, [16500, 17000], [150, 75]);
scene1.addSprite(gidgetSurprised, [17000, 17500], [150, 150]);
scene1.addSprite(gidgetSurprised, [17500, 18000], [150, 225]);
scene1.addSprite(gidgetSurprised, [18000, 18500], [150, 300]);
scene1.addSprite(gidgetSurprised, [18500, 19000], [150, 375]);
scene1.addSprite(gidgetSurprised, [19000, 19500], [150, 450]);
scene1.addSprite(ground, [19500, 27500], [0, 0]);
scene1.addSprite(rock, [19500, 27500], [65, 300]);
scene1.addSprite(gidgetSurprised, [19500, 20000], [150, 0]);
scene1.addSprite(gidgetSurprised, [20000, 20500], [150, 75]);
scene1.addSprite(gidgetSurprised, [20500, 21000], [150, 150]);
scene1.addSprite(gidgetSurprised, [21000, 21500], [150, 225]);
scene1.addSprite(gidgetSurprised, [21500, 22000], [150, 300]);
scene1.addSound("energyDown", 21750);
scene1.addSprite(gidgetSmashExp, [22000, 25000], [65, 300]);
scene1.addSprite(gidgetSad, [25000, 27500], [240, 315]);
scene1.addSprite(bgMain3, [27500, 31000], [0, 0]);
scene1.addSprite(gidgetSadSmall, [27500, 31000], [160, 455]);
// <animals>
scene1.addSprite(cat, [0, 16000], [440, 180]);
scene1.addSprite(dog, [0, 16000], [395, 400]);
scene1.addSprite(kitten, [0, 16000], [225, 420]);
scene1.addSprite(puppy, [0, 16000], [120, 410]);
scene1.addSprite(piglet, [0, 16000], [60, 200]);
scene1.addSprite(bird, [0, 16000], [35, 275]);
// round 2
scene1.addSprite(cat, [27500, 31000], [440, 180]);
scene1.addSprite(dog, [27500, 31000], [395, 400]);
scene1.addSprite(kitten, [27500, 31000], [225, 420]);
scene1.addSprite(puppy, [27500, 31000], [120, 410]);
scene1.addSprite(piglet, [27500, 31000], [60, 200]);
scene1.addSprite(bird, [27500, 31000], [35, 275]);
// </animals>
// <goops>
scene1.addSprite(goop, [7000, 16000], [190, 200]);
scene1.addSprite(goop, [7000, 16000], [230, 225]);
scene1.addSprite(goop, [7000, 16000], [225, 135]);
scene1.addSprite(goop, [7000, 16000], [70, 120]);
scene1.addSprite(goop, [7000, 16000], [200, 100]);
scene1.addSprite(goop, [7000, 16000], [240, 90]);
scene1.addSprite(goop, [7000, 16000], [235, 85]);
scene1.addSprite(goop, [7000, 16000], [150, 150]);
scene1.addSprite(goop, [7050, 16000], [200, 188]);
scene1.addSprite(goop, [7100, 16000], [44, 240]);
scene1.addSprite(goop, [7150, 16000], [49, 58]);
scene1.addSprite(goop, [7200, 16000], [315, 412]);
scene1.addSprite(goop, [7250, 16000], [251, 421]);
scene1.addSprite(goop, [7300, 16000], [139, 257]);
scene1.addSprite(goop, [7350, 16000], [411, 180]);
scene1.addSprite(goop, [7400, 16000], [213, 8]);
scene1.addSprite(goop, [7450, 16000], [231, 175]);
// round 2
scene1.addSprite(goop, [27500, 31000], [190, 200]);
scene1.addSprite(goop, [27500, 31000], [230, 225]);
scene1.addSprite(goop, [27500, 31000], [225, 135]);
scene1.addSprite(goop, [27500, 31000], [70, 120]);
scene1.addSprite(goop, [27500, 31000], [200, 100]);
scene1.addSprite(goop, [27500, 31000], [240, 90]);
scene1.addSprite(goop, [27500, 31000], [235, 85]);
scene1.addSprite(goop, [27500, 31000], [150, 150]);
scene1.addSprite(goop, [27500, 31000], [200, 188]);
scene1.addSprite(goop, [27500, 31000], [44, 240]);
scene1.addSprite(goop, [27500, 31000], [49, 58]);
scene1.addSprite(goop, [27500, 31000], [315, 412]);
scene1.addSprite(goop, [27500, 31000], [251, 421]);
scene1.addSprite(goop, [27500, 31000], [139, 257]);
scene1.addSprite(goop, [27500, 31000], [411, 180]);
scene1.addSprite(goop, [27500, 31000], [213, 8]);
scene1.addSprite(goop, [27500, 31000], [231, 175]);
// </goops>
*/
//intro.addScene(scene1);
return intro;
};
/*
var bg = new SCENES.Sprite("media/scene/bg.png", 20, 20, 640, 480);
var gidget = new SCENES.Sprite("media/gidget.sad.png", 20, 20, 200, 200);
var gidget2 = new SCENES.Sprite("media/gidget.default.png", 320, 250, 100, 100);
var scene1 = new SCENES.Scene(3000);
scene1.addSprite(bg, 0,3000);
scene1.addSprite(gidget, 500, 1500);
scene1.addSprite(gidget2, 2000, 2500);
intro.addScene(scene1);
var frame01 = new SCENES.Sprite("media/scene/frame01.png", 0, 0, 640, 480);
var frame02 = new SCENES.Sprite("media/scene/frame02.png", 0, 0, 640, 480);
scene1.addSprite(frame01, 0,1000);
scene1.addSprite(frame02, 1000, 2000);
scene1.addSprite(frame08, 7000, 8000);
scene1.addSprite(frame09, 8000, 9000);
scene1.addSprite(frame10, 9000, 10000);
scene1.addSprite(frame11, 10000, 11000);
scene1.addSound("error", 10000);
scene1.addSprite(frame12, 11000, 12000);
scene1.addSprite(frame13, 12000, 13000);
scene1.addSprite(frame36, 35000, 36000);
*/