Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mountain_top_background_dunes_25_Draw_0

(view raw script w/o annotations or w/e)
1
var yy = (__view_get((1 << 0), 0)) / 1.2 - 100
2
for (var i = 0; i <= room_width; i += background_get_width(mountain_bg2_layer1))
3
    draw_background(mountain_bg2_layer1, ((__view_get((0 << 0), 0)) + i), yy)
4
for (i = -200; i <= room_width; i += background_get_width(mountain_bg2_layer2))
5
    draw_background(mountain_bg2_layer2, (((__view_get((0 << 0), 0)) + i) / 1.05), (120 + yy))
6
var mountain_offset = -200
7
for (i = mountain_offset; i <= room_width; i += background_get_width(mountain_bg_layer4))
8
    draw_background(mountain_bg_layer4, ((__view_get((0 << 0), 0)) / 1.3 + i), (150 + yy))
9
for (i = 0; i <= room_width; i += background_get_width(mountain_bg2_layer3))
10
    draw_background(mountain_bg2_layer3, ((__view_get((0 << 0), 0)) / 1.07 + i), (118 + yy))
11
for (i = 0; i <= room_width; i += background_get_width(mountain_bg2_layer4))
12
    draw_background(mountain_bg2_layer4, ((__view_get((0 << 0), 0)) / 1.1 + i), (114 + yy))
13
for (i = 0; i <= room_width; i += sprite_get_width(spr_mountain_bg_layer7))
14
    draw_sprite(spr_mountain_bg_layer7, -1, ((__view_get((0 << 0), 0)) / 1.1 + i), (68 + yy))