|
1
|
dnty = sin(siner / 4) * 2 * size;
|
|
2
|
dntyx = cos(siner / 2) * 2 * size;
|
|
3
|
dnty2 = sin(siner / 3) * 4 * size;
|
|
4
|
rt = cos(siner / 4) * 5;
|
|
5
|
ssx = sin(siner / 3) * 3 * image_xscale;
|
|
6
|
ssy = cos(siner / 3) * 3;
|
|
7
|
if (halfsies == 0)
|
|
8
|
{
|
|
9
|
draw_sprite_ext(spr_dentata_none, 0, x + ssx, y + dnty + ssy, size, size, rt, c_gray, 1);
|
|
10
|
draw_sprite_ext(spr_dentata_tophalf, 0, (x - dntyx) + ssx, ((y + dnty2) - (4 * size)) + ssy, size, size, rt, c_white, 1);
|
|
11
|
draw_sprite_ext(spr_dentata_bottomhalf, 0, x + dntyx, (y - dnty2) + (4 * size), size, size, rt, c_white, 1);
|
|
12
|
}
|
|
13
|
if (halfsies == 1)
|
|
14
|
{
|
|
15
|
rt += 90;
|
|
16
|
draw_sprite_ext(spr_halfdentata_none, 0, x + dnty + ssx, y + ssy, size, size, rt, c_gray, 1);
|
|
17
|
draw_sprite_ext(spr_halfdentata_top, 0, ((x + dnty2) - (4 * size)) + ssx, (y - dntyx) + ssy, size, size, rt, c_white, 1);
|
|
18
|
draw_sprite_ext(spr_halfdentata_bottom, 0, (x - dnty2) + (4 * size) + ssx, y + dntyx + ssy, size, size, rt, c_white, 1);
|
|
19
|
}
|
|
20
|
if (halfsies == 2)
|
|
21
|
{
|
|
22
|
rt -= 90;
|
|
23
|
draw_sprite_ext(spr_halfdentata_none, 0, x + dnty + ssx, y + ssy, size, size, rt, c_gray, 1);
|
|
24
|
draw_sprite_ext(spr_halfdentata_top, 0, (x - dnty2) + (4 * size) + ssx, (y - dntyx) + ssy, size, size, rt, c_white, 1);
|
|
25
|
draw_sprite_ext(spr_halfdentata_bottom, 0, ((x + dnty2) - (4 * size)) + ssx, y + dntyx + ssy, size, size, rt, c_white, 1);
|
|
26
|
}
|
|
27
|
siner += 1;
|
|
28
|
if (maxer < 0.8)
|
|
29
|
maxer += 0.1;
|
|
30
|
size = maxer + (sin(siner / 2) * 0.02);
|