Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_interstitial_room_bg_fx_Draw_0

(view raw script w/o annotations or w/e)
1
ossafe_fill_rectangle_color(0, 80, room_width, 240, wall_dark, wall_dark, wall_light, wall_light, 0);
2
timer++;
3
xadj -= 1;
4
if (xadj < -80)
5
    xadj = 0;
6
yadj += 1;
7
if (yadj > 88)
8
    yadj = 0;
9
for (var i = 0; i < 11; i++)
10
{
11
    var __x = (xadj + (i * 40)) - 80 - 120;
12
    var __y = -40 + yadj + (44 * i);
13
    var amt = __y / 220;
14
    amt = clamp(amt, 0, 1);
15
    var colorSet = merge_color(#66839D, #8CB497, amt);
16
    var alph = 1 - (__y / 500);
17
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x, __y, 2, 2, 0, colorSet, alph);
18
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 720, __y, 2, 2, 0, colorSet, alph);
19
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 1440, __y, 2, 2, 0, colorSet, alph);
20
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 40, __y, 2, 2, 0, colorSet, alph * 0.25);
21
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 40 + 720, __y, 2, 2, 0, colorSet, alph * 0.25);
22
    draw_sprite_ext(spr_dw_green_room_bg_fx_wallrow, 0, __x + 40 + 1440, __y, 2, 2, 0, colorSet, alph * 0.25);
23
}
24
draw_set_color(c_black);
25
ossafe_fill_rectangle(0, 240, room_width, room_height, 0);
26
draw_set_color(c_white);
27
draw_set_color(#F4B688);
28
ossafe_fill_rectangle(0, 240, room_width, room_height, 0);
29
draw_set_color(c_white);
30
gpu_set_blendenable(false);
31
gpu_set_colorwriteenable(false, false, false, true);
32
draw_set_alpha(0);
33
ossafe_fill_rectangle(0, 0, room_width, 239, 0);
34
draw_set_alpha(1);
35
gpu_set_blendenable(true);
36
gpu_set_colorwriteenable(true, true, true, true);
37
gpu_set_blendmode_ext(bm_dest_alpha, bm_inv_dest_alpha);
38
gpu_set_alphatestenable(true);
39
var base_x = camerax() / 2;
40
var base_y = (cameray() / 2) + 42;
41
var _angle = 40;
42
var _x_offset = -100;
43
var _y_offset = -140;
44
draw_sprite_ext(spr_pixel_white, 0, base_x + 60 + _x_offset, base_y + 540 + _y_offset, 150, 50, _angle, grad_a, 1);
45
draw_sprite_ext(spr_pixel_white, 0, base_x + 660 + _x_offset, base_y + 540 + _y_offset, 120, 50, _angle, grad_a, 1);
46
draw_sprite_ext(spr_pixel_white, 0, base_x + 164 + _x_offset, base_y + 550 + _y_offset, 150, 14, _angle, grad_b, 1);
47
gpu_set_alphatestenable(false);
48
gpu_set_blendmode(bm_normal);
49
draw_sprite_ext(spr_pixel_white, 0, base_x + 195 + _x_offset, base_y + 422 + _y_offset, 34, 2, _angle, blend_a, 0.5);
50
draw_sprite_ext(spr_pixel_white, 0, base_x + 237 + _x_offset, base_y + 646 + _y_offset, 122, 2, _angle, blend_a, 0.5);
51
draw_sprite_ext(spr_pixel_white, 0, base_x + 171 + _x_offset, base_y + 542 + _y_offset, 90, 1, _angle, blend_b, 0.5);
52
draw_sprite_ext(spr_pixel_white, 0, base_x + 251 + _x_offset, base_y + 548 + _y_offset, 86, 1, _angle, blend_b, 0.5);
53
draw_set_color(c_black);
54
ossafe_fill_rectangle(0, 0, room_width, 80, 0);
55
ossafe_fill_rectangle(0, 360, room_width, room_height, 0);
56
draw_set_color(c_white);