Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mountain_top_background_dunes_26_Draw_0

(view raw script w/o annotations or w/e)
1
for (var i = 0; i <= room_width; i += background_get_width(mountain_bg_layer2))
2
    draw_background(mountain_bg_layer2, (((__view_get((0 << 0), 0)) + i) / 1.05), 109)
3
draw_background(mountain_bg_layer3, (((__view_get((0 << 0), 0)) + 180) / 1.05), 106)
4
var mountain_offset = -400
5
for (i = mountain_offset; i <= room_width; i += background_get_width(mountain_bg_layer4))
6
    draw_background(mountain_bg_layer4, ((__view_get((0 << 0), 0)) / 1.3 + i), 100)
7
for (i = 0; i <= room_width; i += background_get_width(mountain_bg_layer6))
8
    draw_background(mountain_bg_layer6, ((__view_get((0 << 0), 0)) / 1.07 + i), 102)
9
for (i = 0; i <= room_width; i += background_get_width(mountain_bg_layer5))
10
    draw_background(mountain_bg_layer5, ((__view_get((0 << 0), 0)) / 1.1 + i), 92)
11
for (i = 0; i <= room_width; i += sprite_get_width(spr_mountain_bg_layer7))
12
    draw_sprite(spr_mountain_bg_layer7, -1, ((__view_get((0 << 0), 0)) / 1.1 + i), 42)
13
for (i = 0; i <= room_width; i += sprite_get_width(mountain_bg_layer8))
14
    draw_background(mountain_bg_layer8, ((__view_get((0 << 0), 0)) / 1.15 + i), 40)