1 |
if (global.mnfight != 2) |
2 |
{ |
3 |
timer++; |
4 |
if (timer >= 2) |
5 |
{ |
6 |
global.mnfight = 2; |
7 |
global.myfight = -1; |
8 |
if (!instance_exists(obj_growtangle)) |
9 |
instance_create(__view_get(e__VW.XView, 0) + 320, __view_get(e__VW.YView, 0) + 170, obj_growtangle); |
10 |
if (!instance_exists(obj_heart)) |
11 |
scr_moveheartscr_moveheartfunction scr_moveheart()
{
global.inv = 0;
if (global.chapter == 2 && instance_exists(obj_gigaqueen_enemy))
return instance_create(o_boxingcontroller.x + 4, o_boxingcontroller.y - 120, obj_moveheart);
else
return instance_create(obj_herokris.x + 10, obj_herokris.y + 40, obj_moveheart);
} (); |
12 |
for (i = 1; i < 5; i++) |
13 |
global.hp[i] = global.maxhp[i]; |
14 |
timer = 0; |
15 |
} |
16 |
} |
17 |
if (keyboard_check_pressed(vk_tab)) |
18 |
window_set_size(640, 480); |
19 |
if (keyboard_check_pressed(ord("1"))) |
20 |
{ |
21 |
if (global.monster[0] == 0) |
22 |
global.monster[0] = 1; |
23 |
else if (scr_monsterpop() > 1) |
24 |
global.monster[0] = 0; |
25 |
} |
26 |
if (keyboard_check_pressed(ord("2"))) |
27 |
{ |
28 |
if (global.monster[1] == 0) |
29 |
global.monster[1] = 1; |
30 |
else if (scr_monsterpop() > 1) |
31 |
global.monster[1] = 0; |
32 |
} |
33 |
if (keyboard_check_pressed(ord("3"))) |
34 |
{ |
35 |
if (global.monster[2] == 0) |
36 |
global.monster[2] = 1; |
37 |
else if (scr_monsterpop() > 1) |
38 |
global.monster[2] = 0; |
39 |
} |
40 |
change = 1; |
41 |
if (keyboard_check_direct(vk_shift)) |
42 |
change = 10; |
43 |
if (keyboard_check_pressed(ord("Q"))) |
44 |
{ |
45 |
if (global.tempflag[23] > 0) |
46 |
global.monsterinstance[0].spawntype -= change; |
47 |
} |
48 |
if (keyboard_check_pressed(ord("E"))) |
49 |
{ |
50 |
if (global.tempflag[24] > 0) |
51 |
global.monsterinstance[1].spawntype -= change; |
52 |
} |
53 |
if (keyboard_check_pressed(ord("T"))) |
54 |
{ |
55 |
if (global.tempflag[25] > 0) |
56 |
global.monsterinstance[2].spawntype -= change; |
57 |
} |
58 |
if (keyboard_check_pressed(ord("W"))) |
59 |
global.monsterinstance[0].spawntype += change; |
60 |
if (keyboard_check_pressed(ord("R"))) |
61 |
global.monsterinstance[1].spawntype += change; |
62 |
if (keyboard_check_pressed(ord("Y"))) |
63 |
global.monsterinstance[2].spawntype += change; |
64 |
if (keyboard_check_pressed(ord("4"))) |
65 |
global.turntimer = 99999; |
66 |
if (keyboard_check_pressed(vk_space)) |
67 |
{ |
68 |
snd_free_all(); |
69 |
room_restart(); |
70 |
} |
71 |
if (keyboard_check_pressed(ord("I"))) |
72 |
global.tempflag[27]++; |
73 |
else if (keyboard_check_pressed(ord("U")) && global.tempflag[27] > 0) |
74 |
global.tempflag[27]--; |
75 |
global.tempflag[20] = global.monster[0]; |
76 |
global.tempflag[21] = global.monster[1]; |
77 |
global.tempflag[22] = global.monster[2]; |
78 |
global.tempflag[23] = global.monsterinstance[0].spawntype; |
79 |
global.tempflag[24] = global.monsterinstance[1].spawntype; |
80 |
global.tempflag[25] = global.monsterinstance[2].spawntype; |
81 |
|
82 |
enum e__VW |
83 |
{ |
84 |
XView, |
85 |
YView, |
86 |
WView, |
87 |
HView, |
88 |
Angle, |
89 |
HBorder, |
90 |
VBorder, |
91 |
HSpeed, |
92 |
VSpeed, |
93 |
Object, |
94 |
Visible, |
95 |
XPort, |
96 |
YPort, |
97 |
WPort, |
98 |
HPort, |
99 |
Camera, |
100 |
SurfaceID |
101 |
} |