Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_beams_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var y_original = 0
4
var y_max = room_height
5
var x_original = 0
6
var x_max = room_width
7
draw_set_color(attack_beam_draw_color)
8
draw_rectangle((x - attack_beam_width_current / 2), y_original, (x + attack_beam_width_current / 2), y_max, false)
9
draw_rectangle((x - attack_beam_width_current / 2), y_original, (x + attack_beam_width_current / 2), y_max, true)
10
draw_rectangle(x_original, (y - attack_beam_width_current / 2), x_max, (y + attack_beam_width_current / 2), false)
11
draw_rectangle(x_original, (y - attack_beam_width_current / 2), x_max, (y + attack_beam_width_current / 2), true)