Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_rotating_bg_controller_new_Draw_0

(view raw script w/o annotations or w/e)
1
if (room == room_dw_3d_tower_test)
2
    exit;
3
if (obj_rotating_tower_controller_new.use_background_map)
4
    exit;
5
if (!surface_exists(surf_tunnel))
6
    surf_tunnel = surface_create(camerawidth(), 680);
7
surface_set_target(surf_tunnel);
8
draw_sprite_tiled_ext(spr_bookshelves_bgnew1, 0, tunnel_offset_x, tunnel_offset_y, 1.3, 1.3, c_white, 1);
9
surface_reset_target();
10
shader_set(shd_tunnel);
11
shader_set_uniform_f(uni_distort_amount, 3);
12
draw_surface(surf_tunnel, camerax(), cameray());
13
shader_reset();