1 |
xx = __view_get(e__VW.XView, 0); |
2 |
yy = __view_get(e__VW.YView, 0); |
3 |
siner += 0.5; |
4 |
siner2 += 1; |
5 |
if (room == room_dw_castle_dojo) |
6 |
bgtype = 1; |
7 |
draw_set_alpha(image_alpha); |
8 |
draw_set_color(c_black); |
9 |
draw_rectangle(-10, -10, room_width + 10, room_height + 10, false); |
10 |
draw_set_alpha(1); |
11 |
if (destroy == 0) |
12 |
{ |
13 |
if (image_alpha <= 1) |
14 |
image_alpha += 0.1; |
15 |
} |
16 |
if (bgtype == 0) |
17 |
{ |
18 |
draw_background_tiled_ext(bg_battleback1, round(-100 + siner), round(-100 + siner), 1, 1, image_blend, image_alpha / 2); |
19 |
draw_background_tiled_ext(bg_battleback1, round(-200 - siner2), round(-210 - siner2), 1, 1, image_blend, image_alpha); |
20 |
} |
21 |
if (bgtype == 1) |
22 |
draw_sprite_ext(spr_dojo_battlebg, 0, xx + (camerawidth() / 2), yy + 340, 2 + (sin(siner / 2) * 0.008), 2 + (cos(siner / 2) * 0.008), 0, image_blend, image_alpha); |
23 |
if (siner >= 100) |
24 |
siner -= 100; |
25 |
if (siner2 >= 100) |
26 |
siner2 -= 100; |
27 |
if (destroy == 1) |
28 |
{ |
29 |
image_alpha -= 0.1; |
30 |
if (image_alpha <= 0) |
31 |
instance_destroy(); |
32 |
} |
33 |
|
34 |
enum e__VW |
35 |
{ |
36 |
XView, |
37 |
YView, |
38 |
WView, |
39 |
HView, |
40 |
Angle, |
41 |
HBorder, |
42 |
VBorder, |
43 |
HSpeed, |
44 |
VSpeed, |
45 |
Object, |
46 |
Visible, |
47 |
XPort, |
48 |
YPort, |
49 |
WPort, |
50 |
HPort, |
51 |
Camera, |
52 |
SurfaceID |
53 |
} |