display_set_gui_size(960, 540)
draw_sprite(spr_heart, 0, 10, 10)

if (draw_objective){
	draw_set_text(c_white, fnt_m5x7_60, fa_center, fa_middle)
	draw_set_alpha(sin(t))
	draw_text(480, 270 - 180, "OBJECTIVE: " + global.objective)
	draw_set_alpha(1)
}

draw_set_font(-1)
draw_text(10, 10, string(global.floor_count))



//TOWER
draw_set_alpha(0.8)

var _x = 850
var _y = 485
var _buf = 43

draw_sprite(spr_tower_destr, 0, _x, _y - (global.total_floors - global.floor_count * _buf))

for (var _i = global.total_floors - global.floor_count; _i > 0; _i--){
	if (_i != global.total_floors - global.floor_count) draw_sprite(spr_tower_middle, 0, _x, _y - (_i * _buf))
	else if (_i == global.total_floors - global.floor_count){
		draw_sprite(spr_tower_destr, index, _x, _y - (_i * _buf))
		draw_sprite(spr_floor_indicator, 0, _x - 50, _y - (_i * _buf) + 45)
	}
}

draw_sprite(spr_tower_bottom, 0, _x, _y + (_i * _buf))

draw_set_alpha(1)




