1 |
if (swordmode == 0) |
2 |
draw_self(); |
3 |
if (button1_p() && scr_debug()) |
4 |
{ |
5 |
if (global.darkzone == 0) |
6 |
{ |
7 |
draw_set_color(c_red); |
8 |
if (global.facing == 1) |
9 |
draw_rectangle(x + (sprite_width / 2), y + 6 + (sprite_height / 2), x + sprite_width + 13, y + sprite_height, true); |
10 |
if (global.facing == 3) |
11 |
draw_rectangle(x + (sprite_width / 2), y + 6 + (sprite_height / 2), x - 13, y + sprite_height, true); |
12 |
if (global.facing == 0) |
13 |
draw_rectangle(x + 4, y + 28, (x + sprite_width) - 4, y + sprite_height + 15, true); |
14 |
if (global.facing == 2) |
15 |
draw_rectangle(x + 3, (y + sprite_height) - 5, (x + sprite_width) - 5, y + 5, true); |
16 |
} |
17 |
if (global.darkzone == 1) |
18 |
{ |
19 |
draw_set_color(c_red); |
20 |
if (global.facing == 1) |
21 |
draw_rectangle(x + (sprite_width / 2), y + 12 + (sprite_height / 2), x + sprite_width + 26, y + sprite_height, true); |
22 |
if (global.facing == 3) |
23 |
draw_rectangle(x + (sprite_width / 2), y + 12 + (sprite_height / 2), x - 26, y + sprite_height, true); |
24 |
if (global.facing == 0) |
25 |
draw_rectangle(x + 4, y + 56, (x + sprite_width) - 8, y + sprite_height + 30, true); |
26 |
if (global.facing == 2) |
27 |
draw_rectangle(x + 3, (y + sprite_height) - 10, (x + sprite_width) - 10, y + 10, true); |
28 |
} |
29 |
} |
30 |
if (battlemode == 1) |
31 |
{ |
32 |
becamebattle = 1; |
33 |
if (battlealpha < 0.8 && drawbattlemode) |
34 |
battlealpha += 0.04; |
35 |
global.heartx = (x + 12) - __view_get(e__VW.XView, 0); |
36 |
global.hearty = (y + 40) - __view_get(e__VW.YView, 0); |
37 |
} |
38 |
else if (battlealpha > 0) |
39 |
{ |
40 |
battlealpha -= 0.08; |
41 |
} |
42 |
battleheart.image_alpha = battlealpha; |
43 |
if (swordmode == 0) |
44 |
{ |
45 |
if (fun == 0) |
46 |
{ |
47 |
if (global.facing == 0) |
48 |
draw_sprite_ext(spr_krisd_heart, image_index, x, y, image_xscale, image_yscale, 0, image_blend, battlealpha); |
49 |
if (global.facing == 1) |
50 |
draw_sprite_ext(spr_krisr_heart, image_index, x, y, image_xscale, image_yscale, 0, image_blend, battlealpha); |
51 |
if (global.facing == 2) |
52 |
draw_sprite_ext(spr_krisu_heart, image_index, x, y, image_xscale, image_yscale, 0, image_blend, battlealpha); |
53 |
if (global.facing == 3) |
54 |
draw_sprite_ext(spr_krisl_heart, image_index, x, y, image_xscale, image_yscale, 0, image_blend, battlealpha); |
55 |
} |
56 |
else if (sprite_index == spr_krisd_slide) |
57 |
{ |
58 |
draw_sprite_ext(spr_krisd_slide_heart, image_index, x, y, image_xscale, image_yscale, 0, image_blend, battlealpha); |
59 |
} |
60 |
} |
61 |
draw_sprite_ext(spr_heart_outline2, 0, x + 12, y + 40, 1, 1, 0, c_white, battlealpha * 2); |
62 |
battleheart.x = x + 12; |
63 |
battleheart.y = y + 40; |
64 |
if (battlemode == 4) |
65 |
{ |
66 |
draw_set_color(c_lime); |
67 |
draw_set_alpha(0.5); |
68 |
draw_rectangle(x + 12, y + 40, x + 27, y + 49, 0); |
69 |
draw_line(x + 12, y + 49, x + 19, y + 57); |
70 |
draw_line(x + 26, y + 49, x + 19, y + 57); |
71 |
draw_set_alpha(1); |
72 |
} |
73 |
if (scr_debug()) |
74 |
draw_set_color(c_red); |
75 |
if (swordmode == 1) |
76 |
{ |
77 |
if (swordfacing == 1) |
78 |
draw_sprite_ext(swordsprite, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha); |
79 |
if (swordfacing == -1) |
80 |
draw_sprite_ext(swordsprite, image_index, x + sprite_width, y, -image_xscale, image_yscale, image_angle, image_blend, image_alpha); |
81 |
} |
82 |
|
83 |
enum e__VW |
84 |
{ |
85 |
XView, |
86 |
YView, |
87 |
WView, |
88 |
HView, |
89 |
Angle, |
90 |
HBorder, |
91 |
VBorder, |
92 |
HSpeed, |
93 |
VSpeed, |
94 |
Object, |
95 |
Visible, |
96 |
XPort, |
97 |
YPort, |
98 |
WPort, |
99 |
HPort, |
100 |
Camera, |
101 |
SurfaceID |
102 |
} |