Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_ch3_PGS01D_Draw_0

(view raw script w/o annotations or w/e)
1
draw_sprite_ext(spr_nondescript_room, 0, 0, 0, 2, 2, 0, c_white, normal_alpha);
2
var room_x_a, dark_color;
3
if (dark_alpha > 0)
4
{
5
    dark_color = merge_color(c_white, c_black, 0.4);
6
    room_x_x += 0.2;
7
    room_x_a = sin(room_x_x) * 0.025;
8
    draw_sprite_ext(spr_nondescript_room_dark, 0, room_x_a * 20, room_x_a * 20, 2, 2, 0, dark_color, (dark_alpha * 0.3) + room_x_a);
9
    draw_sprite_ext(spr_nondescript_room_dark, 0, 2 + (room_x_a * 15), 2 + (room_x_a * 15), 2, 2, 0, dark_color, (dark_alpha * 0.3) + room_x_a);
10
    draw_sprite_ext(spr_nondescript_room_chair_dark, 0, 272 + (room_x_a * 20), 218 + (room_x_a * 20), 2, 2, 0, dark_color, chair_alpha * ((dark_alpha * 0.3) + room_x_a));
11
    draw_sprite_ext(spr_nondescript_room_chair_dark, 0, 272 + (room_x_a * 15), 218 + (room_x_a * 15), 2, 2, 0, dark_color, chair_alpha * ((dark_alpha * 0.3) + room_x_a));
12
    draw_sprite_ext(spr_nondescript_room_poster_dark, 0, 162 + (room_x_a * 20), 90 + (room_x_a * 20), 2, 2, 0, dark_color, chair_alpha * ((dark_alpha * 0.3) + room_x_a));
13
    draw_sprite_ext(spr_nondescript_room_poster_dark, 0, 162 + (room_x_a * 15), 90 + (room_x_a * 15), 2, 2, 0, dark_color, chair_alpha * ((dark_alpha * 0.3) + room_x_a));
14
}
15
if (distort_alpha > 0)
16
{
17
    anim_timer++;
18
    if ((anim_timer % 8) == 1)
19
        distort_index = 0;
20
    if ((anim_timer % 16) == 1)
21
        distort_index = 1;
22
    draw_sprite_ext(spr_nondescript_room_chair_distort, distort_index, 267 + (room_x_a * 20), 212 + (room_x_a * 20), 2, 2, 0, dark_color, (distort_alpha * 0.3) + room_x_a);
23
    draw_sprite_ext(spr_nondescript_room_chair_distort, distort_index, 267 + (room_x_a * 15), 212 + (room_x_a * 15), 2, 2, 0, dark_color, (distort_alpha * 0.3) + room_x_a);
24
    draw_sprite_ext(spr_nondescript_room_poster_distort, distort_index, 162 + (room_x_a * 20), 90 + (room_x_a * 20), 2, 2, 0, dark_color, (distort_alpha * 0.3) + room_x_a);
25
    draw_sprite_ext(spr_nondescript_room_poster_distort, distort_index, 162 + (room_x_a * 15), 90 + (room_x_a * 15), 2, 2, 0, dark_color, (distort_alpha * 0.3) + room_x_a);
26
}
27
draw_sprite_ext(spr_pixel_white, 0, -10, -10, 999, 999, 0, c_black, overlay_alpha_a);
28
if (darker____alpha > 0)
29
{
30
    anim_timer++;
31
    draw_sprite_ext(spr_nondescript_room_darkworld, 0, 0, 0, 2, 2, 0, c_white, darker_alpha);
32
    draw_sprite_ext(spr_nondescript_room_river, anim_timer * 0.15, 136, 144, 2, 2, 0, c_white, darker_river_alpha);
33
    draw_sprite_ext(spr_nondescript_room_eye_small, anim_timer * 0.15, 240, 90, 2, 2, 0, #B5E61D, darker_door_alpha);
34
    draw_sprite_ext(spr_nondescript_room_eye_small, anim_timer * 0.15, 272, 102, 2, 2, 0, #B5E61D, darker_door_alpha);
35
    draw_sprite_ext(spr_nondescript_room_eye_small, anim_timer * 0.1, 350, 120, 2, 2, 0, #B5E61D, darker_door_alpha);
36
    draw_sprite_ext(spr_nondescript_room_eye, anim_timer * 0.15, 380, 80, 2, 2, 0, c_white, darker_eye_alpha);
37
    draw_sprite_ext(spr_nondescript_room_hands, anim_timer * 0.15, 136, 80, 2, 2, 0, c_white, darker_hands_alpha);
38
    if (darker_zoom_timer < 2)
39
    {
40
        draw_sprite_ext(spr_nondescript_room___, anim_timer * 0.15, 320, 240, 2, 2, 0, c_white, darker____alpha);
41
        draw_sprite_ext(spr_nondescript_room____face, anim_timer * 0.15, 320, 240, 2, 2, 0, c_white, darker____face_alpha);
42
    }
43
}
44
draw_sprite_ext(spr_pixel_white, 0, -10, -10, 999, 999, 0, c_black, overlay_alpha_b);
45
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
46
{
47
    if (keyboard_check_pressed(ord("R")))
48
        room_restart();
49
}