Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-Sonic-2-2013-Script-Decompilation
Path: blob/master/Sonic 2/Scripts/2PVS/2PVSMenu3.txt
1480 views
1
// ----------------------------------
2
// RSDK Project: Sonic 2
3
// Script Description: 2P VS Menu 3 Object
4
// Script Author: Christian Whitehead/Simon Thomley
5
// Unpacked by Rubberduckycooly's script unpacker
6
// ----------------------------------
7
8
// Slot 0 = 2PVSSetup
9
// Slot 1 = 2PVSMenu (should be this entity)
10
// Slot 2 = other 2PVSMenu (the other player's 2PVSMenu3 that we got from ReceiveEntity)
11
12
// ========================
13
// Aliases
14
// ========================
15
16
private alias object.value0 : object.timer
17
private alias object.value1 : object.iconSheet
18
private alias object.value2 : object.textSheet
19
private alias object.value3 : object.selection
20
private alias object.value4 : object.selectionTimer
21
private alias object.value5 : object.selectedCharacter
22
private alias object.value6 : object.vsSendReceieveValue
23
24
// States
25
private alias 0 : 2PVSMENU3_SETUP
26
private alias 1 : 2PVSMENU3_SETUPROOM
27
private alias 2 : 2PVSMENU3_FINISHROOMSETUP
28
private alias 3 : 2PVSMENU3_SELECTING
29
private alias 4 : 2PVSMENU3_STAGESELECTED
30
private alias 5 : 2PVSMENU3_SHOWSELSTAGE
31
private alias 6 : 2PVSMENU3_TOSELECTEDSTAGE
32
private alias 7 : 2PVSMENU3_TOMAINMENU
33
private alias 8 : 2PVSMENU3_NONE
34
35
// Selections
36
private alias 0 : 2PVSMENU3_SEL_NONE
37
private alias 1 : 2PVSMENU3_SEL_EHZ
38
private alias 2 : 2PVSMENU3_SEL_CPZ
39
private alias 3 : 2PVSMENU3_SEL_ARZ
40
private alias 4 : 2PVSMENU3_SEL_CNZ
41
private alias 5 : 2PVSMENU3_SEL_HTZ
42
private alias 6 : 2PVSMENU3_SEL_MCZ
43
private alias 7 : 2PVSMENU3_SEL_OOZ
44
private alias 8 : 2PVSMENU3_SEL_SS
45
46
// ZoneButton Aliases
47
private alias object.value1 : zoneButton.zoneDetailsWidth
48
private alias object.value2 : zoneButton.disabled
49
50
// 2PVSSetup States
51
private alias 3 : 2PVSSETUP_TOREGULARSTAGE
52
private alias 4 : 2PVSSETUP_TOSPECIALSTAGE
53
54
// Item Mode Aliases
55
private alias 0 : ITEMMODE_NOPREFERENCE
56
private alias 1 : ITEMMODE_RANDOM
57
58
59
// ========================
60
// Function Declarations
61
// ========================
62
63
reserve function 2PVSMenu3_SetupIcons
64
reserve function 2PVSMenu3_HandleIconMovement
65
66
67
// ========================
68
// Function Definitions
69
// ========================
70
71
private function 2PVSMenu3_SetupIcons
72
object[10].alpha = 256
73
object[11].alpha = 256
74
object[12].alpha = 256
75
object[13].alpha = 256
76
object[14].alpha = 256
77
object[15].alpha = 256
78
object[16].alpha = 256
79
object[17].alpha = 256
80
81
#platform: USE_ORIGINS
82
if vs.player2Type == PLAYER_AMY
83
object[+1].selectedCharacter = 5
84
else
85
object[+1].selectedCharacter = vs.player2Type
86
object[+1].selectedCharacter += 2
87
end if
88
#endplatform
89
90
#platform: USE_STANDALONE
91
object[+1].selectedCharacter = vs.player2Type
92
object[+1].selectedCharacter += 2
93
#endplatform
94
95
object.state = 2PVSMENU3_SELECTING
96
if options.physicalControls == false
97
object.selection = 2PVSMENU3_SEL_NONE
98
else
99
object.selection = 2PVSMENU3_SEL_EHZ
100
end if
101
end function
102
103
104
private function 2PVSMenu3_HandleIconMovement
105
object[10].xpos = -108
106
object[10].xpos *= object.scale
107
object[10].xpos >>= 8
108
object[14].xpos = object[10].xpos
109
110
object[11].xpos = -36
111
object[11].xpos *= object.scale
112
object[11].xpos >>= 8
113
object[15].xpos = object[11].xpos
114
115
object[12].xpos = 36
116
object[12].xpos *= object.scale
117
object[12].xpos >>= 8
118
object[16].xpos = object[12].xpos
119
120
object[13].xpos = 108
121
object[13].xpos *= object.scale
122
object[13].xpos >>= 8
123
object[17].xpos = object[13].xpos
124
125
object[10].ypos = -28
126
object[10].ypos *= object.scale
127
object[10].ypos >>= 8
128
object[11].ypos = object[10].ypos
129
object[12].ypos = object[10].ypos
130
object[13].ypos = object[10].ypos
131
132
object[14].ypos = 28
133
object[14].ypos *= object.scale
134
object[14].ypos >>= 8
135
object[15].ypos = object[14].ypos
136
object[16].ypos = object[14].ypos
137
object[17].ypos = object[14].ypos
138
end function
139
140
141
// ========================
142
// Events
143
// ========================
144
145
event ObjectUpdate
146
switch object.state
147
case 2PVSMENU3_SETUP
148
LoadSpriteSheet("LevelSelect/Icons.gif")
149
object.iconSheet = object.spriteSheet
150
151
LoadSpriteSheet("LevelSelect/Text.gif")
152
object.textSheet = object.spriteSheet
153
154
if engine.deviceType == STANDARD
155
options.physicalControls = true
156
end if
157
158
menu1.selection = -1
159
object.scale = 256
160
161
#platform: USE_ORIGINS
162
if stage.playerListPos == PLAYER_AMY
163
object.selectedCharacter = 5
164
else
165
object.selectedCharacter = stage.playerListPos
166
object.selectedCharacter += 2
167
end if
168
#endplatform
169
170
#platform: USE_STANDALONE
171
object.selectedCharacter = stage.playerListPos
172
object.selectedCharacter += 2
173
#endplatform
174
175
SetupMenu(MENU_1, 0, 3, 2)
176
AddMenuEntry(MENU_1, "MATCH:", true)
177
AddMenuEntry(MENU_1, "@", true)
178
AddMenuEntry(MENU_1, "OF", true)
179
180
arrayPos0 = 10
181
182
// EHZ
183
ResetObjectEntity(arrayPos0, TypeName[Zone Button], 1, -108, -28)
184
object[arrayPos0].priority = PRIORITY_ACTIVE
185
arrayPos0++
186
187
// CPZ
188
ResetObjectEntity(arrayPos0, TypeName[Zone Button], 2, -36, -28)
189
object[arrayPos0].priority = PRIORITY_ACTIVE
190
arrayPos0++
191
192
// ARZ
193
ResetObjectEntity(arrayPos0, TypeName[Zone Button], 3, 36, -28)
194
object[arrayPos0].priority = PRIORITY_ACTIVE
195
arrayPos0++
196
197
// CNZ
198
ResetObjectEntity(arrayPos0, TypeName[Zone Button], 4, 108, -28)
199
object[arrayPos0].priority = PRIORITY_ACTIVE
200
arrayPos0++
201
202
// HTZ
203
ResetObjectEntity(arrayPos0, TypeName[Zone Button], 5, -108, 28)
204
object[arrayPos0].priority = PRIORITY_ACTIVE
205
arrayPos0++
206
207
// MCZ
208
ResetObjectEntity(arrayPos0, TypeName[Zone Button], 6, -36, 28)
209
object[arrayPos0].priority = PRIORITY_ACTIVE
210
arrayPos0++
211
212
// OOZ
213
ResetObjectEntity(arrayPos0, TypeName[Zone Button], 7, 36, 28)
214
object[arrayPos0].priority = PRIORITY_ACTIVE
215
arrayPos0++
216
217
// Special Stage
218
ResetObjectEntity(arrayPos0, TypeName[Zone Button], 8, 108, 28)
219
object[arrayPos0].priority = PRIORITY_ACTIVE
220
221
object[2].state = 2PVSMENU3_SELECTING
222
223
#platform: USE_STANDALONE
224
if options.vsMode == true // we prolly got here from results screen
225
CallFunction(2PVSMenu3_SetupIcons)
226
else
227
object.state = 2PVSMENU3_SETUPROOM
228
object.vsSendReceieveValue = false
229
object.timer = 0
230
vs.randomValue = 313
231
end if
232
#endplatform
233
234
#platform: USE_ORIGINS
235
options.vsMode = true
236
vs.playerID = 0
237
CallFunction(2PVSMenu3_SetupIcons)
238
CallNativeFunction2(NotifyCallback, NOTIFY_1P_VS_SELECT, 1)
239
#endplatform
240
break
241
242
case 2PVSMENU3_SETUPROOM
243
// if ReceiveValue isn't set do some dummy stuff
244
if ReceiveValue == -1
245
options.vsMode = true
246
object.state = 2PVSMENU3_FINISHROOMSETUP
247
if vs.gameLength == 0
248
vs.gameLength = 4
249
end if
250
251
if vs.itemMode == ITEMMODE_NOPREFERENCE
252
vs.itemMode = ITEMMODE_RANDOM
253
end if
254
end if
255
256
CallNativeFunction2(ReceiveValue, object.vsSendReceieveValue, true)
257
if object.vsSendReceieveValue > 1
258
vs.gameLength = object.vsSendReceieveValue
259
vs.gameLength >>= 4
260
vs.gameLength &= 15
261
262
vs.itemMode = object.vsSendReceieveValue
263
vs.itemMode >>= 8
264
vs.itemMode &= 15
265
266
vs.playerID = object.vsSendReceieveValue
267
vs.playerID >>= 12
268
vs.playerID &= 15
269
270
options.vsMode = true
271
object.state = 2PVSMENU3_FINISHROOMSETUP
272
end if
273
274
if object.vsSendReceieveValue == true
275
object.state = 2PVSMENU3_TOMAINMENU
276
end if
277
break
278
279
case 2PVSMENU3_FINISHROOMSETUP
280
object.animationTimer++
281
object.animationTimer &= 15
282
if object.timer < 120
283
object.timer++
284
if object.timer == 60
285
CallNativeFunction2(TransmitGlobal, "vs.player2Type", stage.playerListPos)
286
end if
287
else
288
// if ReceiveValue isn't set do some dummy stuff
289
if ReceiveValue == -1
290
if keyPress[0].buttonC == true
291
#platform: USE_STANDALONE
292
Rand(vs.player2Type, 3)
293
#endplatform
294
#platform: USE_ORIGINS
295
vs.player2Type = 2
296
#endplatform
297
end if
298
end if
299
300
if vs.player2Type > -1
301
#platform: USE_ORIGINS
302
if vs.player2Type > 2
303
vs.player2Type = stage.playerListPos
304
end if
305
#endplatform
306
PlaySfx(SfxName[Star Post], false)
307
object.timer = 0
308
CallFunction(2PVSMenu3_SetupIcons)
309
end if
310
end if
311
break
312
313
case 2PVSMENU3_SELECTING
314
CallNativeFunction2(ReceiveEntity, 2, true)
315
if object[2].type != TypeName[Blank Object]
316
if object[2].type != TypeName[2P VS Menu 3]
317
ResetObjectEntity(2, TypeName[Blank Object], 0, 0, 0)
318
end if
319
end if
320
321
object[2].type = TypeName[Blank Object]
322
if object[2].state == 2PVSMENU3_SELECTING
323
if options.physicalControls == false
324
CheckTouchRect(0, 0, screen.xsize, screen.ysize)
325
if checkResult == -1
326
if object.selection > 2PVSMENU3_SEL_NONE
327
arrayPos0 = object.selection
328
arrayPos0 += 9
329
if zoneButton[arrayPos0].disabled == false
330
object.state = 2PVSMENU3_STAGESELECTED
331
PlaySfx(SfxName[Menu Select], false)
332
CallNativeFunction2(SendEntity, 1, true)
333
else
334
PlaySfx(SfxName[Fail], false)
335
end if
336
end if
337
end if
338
339
if object.state != 2PVSMENU3_STAGESELECTED
340
object.selection = 2PVSMENU3_SEL_NONE
341
if keyPress[0].left == true
342
options.physicalControls = true
343
object.selection = 2PVSMENU3_SEL_SS
344
end if
345
346
if keyPress[0].right == true
347
options.physicalControls = true
348
object.selection = 2PVSMENU3_SEL_EHZ
349
end if
350
351
if keyPress[0].up == 1
352
options.physicalControls = true
353
object.selection = 2PVSMENU3_SEL_HTZ
354
end if
355
356
if keyPress[0].down == true
357
options.physicalControls = true
358
object.selection = 2PVSMENU3_SEL_EHZ
359
end if
360
end if
361
else
362
if keyPress[0].left == true
363
object.selection--
364
if object.selection < 2PVSMENU3_SEL_EHZ
365
object.selection = 2PVSMENU3_SEL_SS
366
end if
367
PlaySfx(SfxName[Menu Move], false)
368
end if
369
370
if keyPress[0].right == true
371
object.selection++
372
if object.selection > 2PVSMENU3_SEL_SS
373
object.selection = 2PVSMENU3_SEL_EHZ
374
end if
375
PlaySfx(SfxName[Menu Move], false)
376
end if
377
378
if keyPress[0].up == true
379
object.selection -= 4
380
if object.selection < 2PVSMENU3_SEL_EHZ
381
object.selection += 2PVSMENU3_SEL_SS
382
end if
383
PlaySfx(SfxName[Menu Move], false)
384
end if
385
386
if keyPress[0].down == true
387
object.selection += 4
388
if object.selection > 2PVSMENU3_SEL_SS
389
object.selection -= 2PVSMENU3_SEL_SS
390
end if
391
PlaySfx(SfxName[Menu Move], false)
392
end if
393
394
if keyPress[0].start == true
395
arrayPos0 = object.selection
396
arrayPos0 += 9
397
if zoneButton[arrayPos0].disabled == false
398
object.state = 2PVSMENU3_STAGESELECTED
399
PlaySfx(SfxName[Menu Select], false)
400
CallNativeFunction2(SendEntity, 1, true)
401
else
402
PlaySfx(SfxName[Fail], false)
403
end if
404
end if
405
406
if keyPress[0].buttonA == true
407
arrayPos0 = object.selection
408
arrayPos0 += 9
409
if zoneButton[arrayPos0].disabled == false
410
object.state = 2PVSMENU3_STAGESELECTED
411
PlaySfx(SfxName[Menu Select], false)
412
CallNativeFunction2(SendEntity, 1, true)
413
else
414
PlaySfx(SfxName[Fail], false)
415
end if
416
end if
417
418
if object.state != 2PVSMENU3_STAGESELECTED
419
CheckTouchRect(0, 0, screen.xsize, screen.ysize)
420
if checkResult > -1
421
options.physicalControls = false
422
object.selection = 2PVSMENU3_SEL_MCZ
423
end if
424
end if
425
end if
426
else
427
object.state = 2PVSMENU3_STAGESELECTED
428
object.selection = object[2].selection
429
PlaySfx(SfxName[Menu Select], false)
430
end if
431
break
432
433
case 2PVSMENU3_STAGESELECTED
434
if object.scale > 0
435
object.scale -= 8
436
end if
437
object[10].alpha = object.scale
438
object[11].alpha = object.scale
439
object[12].alpha = object.scale
440
object[13].alpha = object.scale
441
object[14].alpha = object.scale
442
object[15].alpha = object.scale
443
object[16].alpha = object.scale
444
object[17].alpha = object.scale
445
446
object[10].drawOrder = 3
447
object[11].drawOrder = 3
448
object[12].drawOrder = 3
449
object[13].drawOrder = 3
450
object[14].drawOrder = 3
451
object[15].drawOrder = 3
452
object[16].drawOrder = 3
453
object[17].drawOrder = 3
454
455
arrayPos0 = object.selection
456
arrayPos0 += 9
457
object[arrayPos0].alpha = 0x100
458
object[arrayPos0].drawOrder = 4
459
460
arrayPos0 = object.selection
461
arrayPos0 += 9
462
CallFunction(2PVSMenu3_HandleIconMovement)
463
if object.selectionTimer < 32
464
object.selectionTimer++
465
else
466
object.selectionTimer = 0
467
object.state = 2PVSMENU3_SHOWSELSTAGE
468
end if
469
break
470
471
case 2PVSMENU3_SHOWSELSTAGE
472
arrayPos0 = object.selection
473
arrayPos0 += 9
474
if zoneButton[arrayPos0].zoneDetailsWidth < 224
475
zoneButton[arrayPos0].zoneDetailsWidth += 8
476
else
477
if object.selection < 2PVSMENU3_SEL_SS
478
temp0 = object.selection
479
temp0--
480
temp0 <<= 1
481
vs.listPos = temp0
482
vs.activeList = REGULAR_STAGE
483
else
484
vs.listPos = 4
485
vs.activeList = SPECIAL_STAGE
486
end if
487
488
489
// We selected this stage, so lets remember that for next time we come back here
490
SetBit(vs.stageMask, object[arrayPos0].propertyValue, true)
491
492
object.state = 2PVSMENU3_TOSELECTEDSTAGE
493
if vs.playerID == 0
494
object.vsSendReceieveValue = vs.listPos
495
object.vsSendReceieveValue <<= 4
496
object.vsSendReceieveValue += vs.activeList
497
CallNativeFunction2(SendValue, object.vsSendReceieveValue, true)
498
else
499
object.vsSendReceieveValue = 0
500
end if
501
end if
502
break
503
504
case 2PVSMENU3_TOSELECTEDSTAGE
505
object.timer++
506
if object.timer >= 60
507
if vs.playerID == 0
508
stage.activeList = vs.activeList
509
stage.listPos = vs.listPos
510
if stage.activeList == REGULAR_STAGE
511
object[0].state = 2PVSSETUP_TOREGULARSTAGE
512
else
513
PlaySfx(SfxName[Warp], false)
514
object[0].state = 2PVSSETUP_TOSPECIALSTAGE
515
end if
516
object.state = 2PVSMENU3_NONE
517
else
518
CallNativeFunction2(ReceiveValue, object.vsSendReceieveValue, true)
519
if object.vsSendReceieveValue > 0
520
vs.activeList = object.vsSendReceieveValue
521
vs.activeList &= 0x0F
522
523
vs.listPos = object.vsSendReceieveValue
524
vs.listPos >>= 4
525
526
stage.activeList = vs.activeList
527
stage.listPos = vs.listPos
528
if stage.activeList == REGULAR_STAGE
529
object[0].state = 2PVSSETUP_TOREGULARSTAGE
530
else
531
PlaySfx(SfxName[Warp], false)
532
object[0].state = 2PVSSETUP_TOSPECIALSTAGE
533
end if
534
object.state = 2PVSMENU3_NONE
535
end if
536
end if
537
end if
538
break
539
540
case 2PVSMENU3_TOMAINMENU
541
StopMusic()
542
options.vsMode = false
543
#platform: USE_STANDALONE
544
engine.state = 8
545
#endplatform
546
#platform: USE_ORIGINS
547
stage.activeList = PRESENTATION_STAGE
548
stage.listPos = 0
549
LoadStage()
550
#endplatform
551
SetScreenFade(0x00, 0x00, 0x00, 0xFF)
552
break
553
end switch
554
end event
555
556
557
event ObjectDraw
558
// STAGE SELECT
559
object.spriteSheet = object.iconSheet
560
561
DrawSpriteScreenXY(0, screen.xcenter, 17)
562
DrawSpriteScreenXY(1, screen.xcenter, 17)
563
564
temp0 = screen.xcenter
565
temp0 -= 64
566
567
#platform: USE_STANDALONE
568
if vs.playerID == 0
569
DrawSpriteScreenXY(object.selectedCharacter, temp0, 56)
570
DrawSpriteScreenXY(7, temp0, 56)
571
else
572
if object.state > 2PVSMENU3_FINISHROOMSETUP
573
// Player 1 Character
574
DrawSpriteScreenXY(object[+1].selectedCharacter, temp0, 56)
575
else
576
// Waiting For...
577
if object.animationTimer < 8
578
DrawSpriteScreenXY(19, temp0, 56)
579
end if
580
end if
581
// 1P
582
DrawSpriteScreenXY(5, temp0, 56)
583
end if
584
#endplatform
585
586
#platform: USE_ORIGINS
587
DrawSpriteScreenXY(object.selectedCharacter, temp0, 56)
588
DrawSpriteScreenXY(6, temp0, 56)
589
#endplatform
590
591
temp0 = screen.xcenter
592
temp0 += 64
593
594
#platform: USE_STANDALONE
595
if vs.playerID == 1
596
DrawSpriteScreenXY(object.selectedCharacter, temp0, 56)
597
DrawSpriteScreenXY(8, temp0, 56)
598
else
599
if object.state > 2PVSMENU3_FINISHROOMSETUP
600
// Player 2 Character
601
DrawSpriteScreenXY(object[+1].selectedCharacter, temp0, 56)
602
else
603
// Waiting For...
604
if object.animationTimer < 8
605
DrawSpriteScreenXY(19, temp0, 56)
606
end if
607
end if
608
// 2P
609
DrawSpriteScreenXY(6, temp0, 56)
610
end if
611
#endplatform
612
613
#platform: USE_ORIGINS
614
DrawSpriteScreenXY(object[+1].selectedCharacter, temp0, 56)
615
DrawSpriteScreenXY(7, temp0, 56)
616
#endplatform
617
618
// MATCH x of y
619
temp0 = screen.xcenter
620
temp0 -= 24
621
temp2 = vs.match
622
temp2++
623
#platform: USE_STANDALONE
624
DrawNumbers(9, temp0, 69, temp2, 6, 8, false)
625
#endplatform
626
#platform: USE_ORIGINS
627
DrawNumbers(10, temp0, 69, temp2, 6, 8, false)
628
#endplatform
629
630
temp0 += 40
631
#platform: USE_STANDALONE
632
DrawNumbers(9, temp0, 69, vs.gameLength, 6, 8, false)
633
#endplatform
634
#platform: USE_ORIGINS
635
DrawNumbers(10, temp0, 69, vs.gameLength, 6, 8, false)
636
#endplatform
637
638
object.spriteSheet = object.textSheet
639
DrawMenu(MENU_1, screen.xcenter, 52)
640
end event
641
642
643
event ObjectStartup
644
LoadSpriteSheet("LevelSelect/Icons.gif")
645
LoadSpriteSheet("LevelSelect/Text.gif")
646
647
SpriteFrame(-96, 0, 80, 14, 83, 335) // STAGE text - # 0/ 0
648
SpriteFrame(0, 0, 96, 14, 1, 264) // SELECT text - # 1/ 1
649
SpriteFrame(-12, -20, 24, 40, 1, 279) // Sonic - # 2/ 2
650
SpriteFrame(-16, -20, 32, 40, 54, 279) // Tails - # 3/ 3
651
SpriteFrame(-14, -20, 27, 40, 26, 279) // Knuckles - # 4/ 4
652
#platform: USE_ORIGINS
653
SpriteFrame(-10, -15, 21, 35, 1, 453) // Amy - # / 5
654
#endplatform
655
SpriteFrame(-8, 24, 16, 7, 218, 124) // 1P - # 5/ 6
656
SpriteFrame(-8, 24, 16, 7, 218, 132) // 2P - # 6/ 7
657
SpriteFrame(-8, 24, 16, 7, 98, 136) // 1P (Selected) - # 7/ 8
658
SpriteFrame(-8, 24, 16, 7, 115, 136) // 2P (Selected) - # 8/ 9
659
SpriteFrame(0, 0, 8, 7, 175, 140) // 0 - # 9/10
660
SpriteFrame(0, 0, 8, 7, 183, 140) // 1 - #10/11
661
SpriteFrame(0, 0, 8, 7, 191, 140) // 2 - #11/12
662
SpriteFrame(0, 0, 8, 7, 199, 140) // 3 - #12/13
663
SpriteFrame(0, 0, 8, 7, 207, 140) // 4 - #13/14
664
SpriteFrame(0, 0, 8, 7, 215, 140) // 5 - #14/15
665
SpriteFrame(0, 0, 8, 7, 223, 140) // 6 - #15/16
666
SpriteFrame(0, 0, 8, 7, 231, 140) // 7 - #16/17
667
SpriteFrame(0, 0, 8, 7, 239, 140) // 8 - #17/18
668
SpriteFrame(0, 0, 8, 7, 247, 140) // 9 - #18/19
669
SpriteFrame(-28, -3, 56, 15, 44, 362) // WAITING FOR text - #19/20
670
671
foreach (TypeName[2P VS Menu 3], arrayPos0, ALL_ENTITIES)
672
object[arrayPos0].priority = PRIORITY_ACTIVE
673
next
674
end event
675
676
677
// ========================
678
// Editor Events
679
// ========================
680
681
event RSDKDraw
682
DrawSprite(0)
683
DrawSprite(1)
684
end event
685
686
687
event RSDKLoad
688
LoadSpriteSheet("LevelSelect/Icons.gif")
689
SpriteFrame(-96, 0, 80, 14, 83, 335) // STAGE text - #0
690
SpriteFrame(0, 0, 96, 14, 1, 264) // SELECT text - #1
691
692
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
693
end event
694
695