Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_rotating_bg_controller_Draw_0

(view raw script w/o annotations or w/e)
1
if (room == room_dw_3d_tower_test)
2
    exit;
3
if (room == room_dw_churchc_titanclimb1)
4
    exit;
5
if (obj_mainchara.y >= 220 && obj_mainchara.y < 1500 && obj_rotating_tower_controller.yoffset <= 820 && (obj_rotating_tower_controller.tower_angle < 18 || obj_rotating_tower_controller.tower_angle > 340))
6
    tunnel_offset_x = 0;
7
if (!surface_exists(surf_tunnel))
8
    surf_tunnel = surface_create(room_width, 680);
9
surface_set_target(surf_tunnel);
10
draw_sprite_tiled_ext(spr_rotating_tower_bg, 0, tunnel_offset_x, tunnel_offset_y, 1, 1, c_white, 1);
11
surface_reset_target();
12
shader_set(shd_tunnel);
13
shader_set_uniform_f(uni_distort_amount, 3);
14
draw_surface(surf_tunnel, 0, cameray());
15
shader_reset();