1 |
depth = 99000; |
2 |
if (i_ex(obj_encounterbasic)) |
3 |
fightmode = 1; |
4 |
if (drawblack == 1 && fightmode == 0) |
5 |
{ |
6 |
draw_set_color(c_black); |
7 |
draw_rectangle(1630, -10, 2500, 500, false); |
8 |
} |
9 |
if (drawtrack == 1) |
10 |
{ |
11 |
trackx += trackspeed; |
12 |
if ((trackx + 640) < camerax()) |
13 |
trackx += 640; |
14 |
if ((trackx - 640) > camerax()) |
15 |
trackx -= 640; |
16 |
draw_sprite_ext(spr_sneo_track, 0, trackx - 640, tracky0, 2, 2, 0, c_white, image_alpha); |
17 |
draw_sprite_ext(spr_sneo_track, 0, trackx, tracky0, 2, 2, 0, c_white, image_alpha); |
18 |
draw_sprite_ext(spr_sneo_track, 0, trackx + 640, tracky0, 2, 2, 0, c_white, image_alpha); |
19 |
draw_sprite_ext(spr_sneo_track, 0, trackx - 640, tracky1, 2, 2, 0, c_white, image_alpha); |
20 |
draw_sprite_ext(spr_sneo_track, 0, trackx, tracky1, 2, 2, 0, c_white, image_alpha); |
21 |
draw_sprite_ext(spr_sneo_track, 0, trackx + 640, tracky1, 2, 2, 0, c_white, image_alpha); |
22 |
draw_sprite_ext(spr_sneo_track, 0, trackx - 640, tracky2, 2, 2, 0, c_white, image_alpha); |
23 |
draw_sprite_ext(spr_sneo_track, 0, trackx, tracky2, 2, 2, 0, c_white, image_alpha); |
24 |
draw_sprite_ext(spr_sneo_track, 0, trackx + 640, tracky2, 2, 2, 0, c_white, image_alpha); |
25 |
if (scr_debug()) |
26 |
{ |
27 |
} |
28 |
draw_set_color(c_black); |
29 |
draw_rectangle(0, 200, 80, 420, false); |
30 |
} |
31 |
if (drawblack == 2 && fightmode == 0) |
32 |
{ |
33 |
draw_set_color(c_black); |
34 |
draw_rectangle(1640, -10, 2500, 500, false); |
35 |
} |
36 |
if (cityscape_active) |
37 |
{ |
38 |
if (cityscape_alpha < 1) |
39 |
cityscape_alpha = lerp(cityscape_alpha, 1, 0.2); |
40 |
if (cityscapefade == 1) |
41 |
cityscape_alpha = 0; |
42 |
cityscape_speed -= cityscape_speed_max; |
43 |
if (cityscape_speed_max < 0 && cityscape_speed > -398) |
44 |
cityscape_speed -= 398; |
45 |
scr_draw_sprite_tiled_areascr_draw_sprite_tiled_areafunction scr_draw_sprite_tiled_area()
{
var sprite = argument[0];
var subimg = argument[1];
var xx = argument[2];
var yy = argument[3];
var x1 = argument[4];
var y1 = argument[5];
var x2 = argument[6];
var y2 = argument[7];
var xscale = argument[8];
var yscale = argument[9];
var col = (argument_count > 10) ? argument[10] : 16777215;
var alpha = (argument_count > 11) ? argument[11] : 1;
var sw = sprite_get_width(sprite) * xscale;
var sh = sprite_get_height(sprite) * yscale;
var i = x1 - ((x1 % sw) - (xx % sw)) - (sw * ((x1 % sw) < (xx % sw)));
var j = y1 - ((y1 % sh) - (yy % sh)) - (sh * ((y1 % sh) < (yy % sh)));
var jj = j;
while (i <= x2)
{
while (j <= y2)
{
var left;
if (i <= x1)
left = x1 - i;
else
left = 0;
var X = i + left;
var top;
if (j <= y1)
top = y1 - j;
else
top = 0;
var Y = j + top;
var width;
if (x2 <= (i + sw))
width = ((sw - ((i + sw) - x2)) + 1) - left;
else
width = sw - left;
var height;
if (y2 <= (j + sh))
height = ((sh - ((j + sh) - y2)) + 1) - top;
else
height = sh - top;
draw_sprite_part_ext(sprite, subimg, left, top, width, height, X, Y, xscale, yscale, col, alpha);
j += sh;
}
j = jj;
i += sw;
}
return 0;
} (bg_dw_mansion_basement_cityscape_background, 0, camerax() + cityscape_speed, cameray(), camerax() + cityscape_speed, cameray(), camerax() + view_wport[0], cameray() + (sprite_get_height(bg_dw_mansion_basement_cityscape_background) * 2), 2, 2, c_white, cityscape_alpha); |
46 |
scr_draw_sprite_tiled_areascr_draw_sprite_tiled_areafunction scr_draw_sprite_tiled_area()
{
var sprite = argument[0];
var subimg = argument[1];
var xx = argument[2];
var yy = argument[3];
var x1 = argument[4];
var y1 = argument[5];
var x2 = argument[6];
var y2 = argument[7];
var xscale = argument[8];
var yscale = argument[9];
var col = (argument_count > 10) ? argument[10] : 16777215;
var alpha = (argument_count > 11) ? argument[11] : 1;
var sw = sprite_get_width(sprite) * xscale;
var sh = sprite_get_height(sprite) * yscale;
var i = x1 - ((x1 % sw) - (xx % sw)) - (sw * ((x1 % sw) < (xx % sw)));
var j = y1 - ((y1 % sh) - (yy % sh)) - (sh * ((y1 % sh) < (yy % sh)));
var jj = j;
while (i <= x2)
{
while (j <= y2)
{
var left;
if (i <= x1)
left = x1 - i;
else
left = 0;
var X = i + left;
var top;
if (j <= y1)
top = y1 - j;
else
top = 0;
var Y = j + top;
var width;
if (x2 <= (i + sw))
width = ((sw - ((i + sw) - x2)) + 1) - left;
else
width = sw - left;
var height;
if (y2 <= (j + sh))
height = ((sh - ((j + sh) - y2)) + 1) - top;
else
height = sh - top;
draw_sprite_part_ext(sprite, subimg, left, top, width, height, X, Y, xscale, yscale, col, alpha);
j += sh;
}
j = jj;
i += sw;
}
return 0;
} (bg_dw_mansion_basement_cityscape_midground, 0, camerax() + (cityscape_speed * 1.1), cameray(), camerax() + (cityscape_speed * 1.1), cameray(), camerax() + view_wport[0], cameray() + (sprite_get_height(bg_dw_mansion_basement_cityscape_midground) * 2), 2, 2, c_white, cityscape_alpha); |
47 |
scr_draw_sprite_tiled_areascr_draw_sprite_tiled_areafunction scr_draw_sprite_tiled_area()
{
var sprite = argument[0];
var subimg = argument[1];
var xx = argument[2];
var yy = argument[3];
var x1 = argument[4];
var y1 = argument[5];
var x2 = argument[6];
var y2 = argument[7];
var xscale = argument[8];
var yscale = argument[9];
var col = (argument_count > 10) ? argument[10] : 16777215;
var alpha = (argument_count > 11) ? argument[11] : 1;
var sw = sprite_get_width(sprite) * xscale;
var sh = sprite_get_height(sprite) * yscale;
var i = x1 - ((x1 % sw) - (xx % sw)) - (sw * ((x1 % sw) < (xx % sw)));
var j = y1 - ((y1 % sh) - (yy % sh)) - (sh * ((y1 % sh) < (yy % sh)));
var jj = j;
while (i <= x2)
{
while (j <= y2)
{
var left;
if (i <= x1)
left = x1 - i;
else
left = 0;
var X = i + left;
var top;
if (j <= y1)
top = y1 - j;
else
top = 0;
var Y = j + top;
var width;
if (x2 <= (i + sw))
width = ((sw - ((i + sw) - x2)) + 1) - left;
else
width = sw - left;
var height;
if (y2 <= (j + sh))
height = ((sh - ((j + sh) - y2)) + 1) - top;
else
height = sh - top;
draw_sprite_part_ext(sprite, subimg, left, top, width, height, X, Y, xscale, yscale, col, alpha);
j += sh;
}
j = jj;
i += sw;
}
return 0;
} (bg_dw_mansion_basement_cityscape_foreground, 0, camerax() + (cityscape_speed * 1.2), cameray(), camerax() + (cityscape_speed * 1.2), cameray(), camerax() + view_wport[0], cameray() + (sprite_get_height(bg_dw_mansion_basement_cityscape_foreground) * 2), 2, 2, c_white, cityscape_alpha); |
48 |
if (shop_spamton_bg_con > 1) |
49 |
{ |
50 |
if (cityscapefade == 1) |
51 |
cityscape_alpha = 0.15; |
52 |
scr_draw_sprite_tiled_areascr_draw_sprite_tiled_areafunction scr_draw_sprite_tiled_area()
{
var sprite = argument[0];
var subimg = argument[1];
var xx = argument[2];
var yy = argument[3];
var x1 = argument[4];
var y1 = argument[5];
var x2 = argument[6];
var y2 = argument[7];
var xscale = argument[8];
var yscale = argument[9];
var col = (argument_count > 10) ? argument[10] : 16777215;
var alpha = (argument_count > 11) ? argument[11] : 1;
var sw = sprite_get_width(sprite) * xscale;
var sh = sprite_get_height(sprite) * yscale;
var i = x1 - ((x1 % sw) - (xx % sw)) - (sw * ((x1 % sw) < (xx % sw)));
var j = y1 - ((y1 % sh) - (yy % sh)) - (sh * ((y1 % sh) < (yy % sh)));
var jj = j;
while (i <= x2)
{
while (j <= y2)
{
var left;
if (i <= x1)
left = x1 - i;
else
left = 0;
var X = i + left;
var top;
if (j <= y1)
top = y1 - j;
else
top = 0;
var Y = j + top;
var width;
if (x2 <= (i + sw))
width = ((sw - ((i + sw) - x2)) + 1) - left;
else
width = sw - left;
var height;
if (y2 <= (j + sh))
height = ((sh - ((j + sh) - y2)) + 1) - top;
else
height = sh - top;
draw_sprite_part_ext(sprite, subimg, left, top, width, height, X, Y, xscale, yscale, col, alpha);
j += sh;
}
j = jj;
i += sw;
}
return 0;
} (spr_shop_spamton_bg_battle, 0, camerax() + cityscape_speed, cameray(), camerax() + cityscape_speed, cameray(), camerax() + view_wport[0], cameray() + (sprite_get_height(bg_dw_mansion_basement_cityscape) * 2), 1.6708, 1.195, c_white, cityscape_alpha); |
53 |
} |
54 |
if (shop_spamton_bg_con == 1 && !i_ex(obj_writer) && !i_ex(obj_battleblcon)) |
55 |
{ |
56 |
shop_spamton_bg_timer++; |
57 |
if (shop_spamton_bg_timer == 1) |
58 |
snd_play(snd_petrify); |
59 |
if (shop_spamton_bg_timer == 23) |
60 |
shop_spamton_bg_con = 2; |
61 |
} |
62 |
if (shop_spamton_bg_con == 2) |
63 |
{ |
64 |
shop_spamton_bg_timer--; |
65 |
if (shop_spamton_bg_timer == 0) |
66 |
{ |
67 |
shop_spamton_bg_con = 3; |
68 |
with (obj_spamton_neo_enemy) |
69 |
targetbgspeed = 5; |
70 |
} |
71 |
} |
72 |
if (shop_spamton_bg_con > 0 && shop_spamton_bg_con < 3) |
73 |
scr_draw_sprite_tiled_areascr_draw_sprite_tiled_areafunction scr_draw_sprite_tiled_area()
{
var sprite = argument[0];
var subimg = argument[1];
var xx = argument[2];
var yy = argument[3];
var x1 = argument[4];
var y1 = argument[5];
var x2 = argument[6];
var y2 = argument[7];
var xscale = argument[8];
var yscale = argument[9];
var col = (argument_count > 10) ? argument[10] : 16777215;
var alpha = (argument_count > 11) ? argument[11] : 1;
var sw = sprite_get_width(sprite) * xscale;
var sh = sprite_get_height(sprite) * yscale;
var i = x1 - ((x1 % sw) - (xx % sw)) - (sw * ((x1 % sw) < (xx % sw)));
var j = y1 - ((y1 % sh) - (yy % sh)) - (sh * ((y1 % sh) < (yy % sh)));
var jj = j;
while (i <= x2)
{
while (j <= y2)
{
var left;
if (i <= x1)
left = x1 - i;
else
left = 0;
var X = i + left;
var top;
if (j <= y1)
top = y1 - j;
else
top = 0;
var Y = j + top;
var width;
if (x2 <= (i + sw))
width = ((sw - ((i + sw) - x2)) + 1) - left;
else
width = sw - left;
var height;
if (y2 <= (j + sh))
height = ((sh - ((j + sh) - y2)) + 1) - top;
else
height = sh - top;
draw_sprite_part_ext(sprite, subimg, left, top, width, height, X, Y, xscale, yscale, col, alpha);
j += sh;
}
j = jj;
i += sw;
}
return 0;
} (spr_whitepixel, 0, camerax() + cityscape_speed, cameray(), camerax() + cityscape_speed, cameray() - 2, camerax() + view_wport[0], (cameray() - 2) + (sprite_get_height(bg_dw_mansion_basement_cityscape) * 2), 396, 8, c_white, shop_spamton_bg_timer / 20); |
74 |
} |