Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mountain_top_background_dunes_25b_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 = 0; 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
for (i = 0; i <= room_width; i += background_get_width(mountain_bg2_layer3))
7
    draw_background(mountain_bg2_layer3, ((__view_get((0 << 0), 0)) / 1.07 + i), (118 + yy))
8
for (i = 0; i <= room_width; i += background_get_width(mountain_bg2_layer4))
9
    draw_background(mountain_bg2_layer4, ((__view_get((0 << 0), 0)) / 1.1 + i), (114 + yy))
10
for (i = 0; i <= room_width; i += sprite_get_width(spr_mountain_bg_layer7))
11
    draw_sprite(spr_mountain_bg_layer7, -1, ((__view_get((0 << 0), 0)) / 1.1 + i), (68 + yy))