|
1
|
var shakeamt = 0;
|
|
2
|
var xoff = 0;
|
|
3
|
var yoff = 0;
|
|
4
|
if (drawshake == 4)
|
|
5
|
shakeamt = 4;
|
|
6
|
if (drawshake == 3)
|
|
7
|
shakeamt = -4;
|
|
8
|
if (drawshake == 2)
|
|
9
|
shakeamt = 2;
|
|
10
|
if (drawshake == 1)
|
|
11
|
shakeamt = -2;
|
|
12
|
drawshake--;
|
|
13
|
draw_set_alpha(0.5);
|
|
14
|
draw_set_color(c_black);
|
|
15
|
if (fakeheight < -3)
|
|
16
|
draw_sprite_ext(spr_susiezilla_shadow, 0, x, y, min(0.25 + abs(fakeheight / 40), 1), 1, 0, image_blend, (0.25 * abs(fakeheight / 28)) + 0.25);
|
|
17
|
draw_set_color(c_white);
|
|
18
|
draw_set_alpha(1);
|
|
19
|
if (state == states.dead)
|
|
20
|
{
|
|
21
|
xoff = -16 * facing;
|
|
22
|
yoff = -24;
|
|
23
|
}
|
|
24
|
draw_set_color(#5F3417);
|
|
25
|
draw_line_width(x - (16 * facing), 0, x - (16 * facing), (y - 16) + ropeheight, 4);
|
|
26
|
if (facing)
|
|
27
|
draw_sprite_ext(sprite_index, image_index, round(x) + shakeamt + xoff, round(y) + fakeheight + ropeheight + yoff, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
28
|
else
|
|
29
|
draw_sprite_ext(sprite_index, image_index, (round(x) - 6) + shakeamt + xoff, round(y) + fakeheight + ropeheight + yoff, -image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
30
|
if (flash)
|
|
31
|
{
|
|
32
|
d3d_set_fog(true, c_white, 0, 0);
|
|
33
|
if (facing)
|
|
34
|
draw_sprite_ext(spr_susiezilla_dogdozer_shield, 0, round(x) + shakeamt + xoff, round(y) + fakeheight + ropeheight + yoff, image_xscale, image_yscale, image_angle, image_blend, flash / 10);
|
|
35
|
else
|
|
36
|
draw_sprite_ext(spr_susiezilla_dogdozer_shield, 0, (round(x) - 6) + shakeamt + xoff, round(y) + fakeheight + ropeheight + yoff, -image_xscale, image_yscale, image_angle, image_blend, flash / 10);
|
|
37
|
d3d_set_fog(false, c_white, 0, 0);
|
|
38
|
}
|
|
39
|
flash = scr_approachscr_approach
function scr_approach(arg0, arg1, arg2)
{
if (arg0 < arg1)
{
arg0 += arg2;
if (arg0 > arg1)
return arg1;
}
else
{
arg0 -= arg2;
if (arg0 < arg1)
return arg1;
}
return arg0;
} (flash, 0, 1);
|
|
40
|
draw_set_color(c_white);
|
|
41
|
draw_set_alpha(1);
|