var _x = 480
var _y = 100

var _xx = 480
var _yy = 400

if (global.death_message != ""){
	draw_set_text(c_white, fnt_m5x7_60, fa_center, fa_middle)
	draw_text(_x, _y, "GAME OVER")
	
	draw_sprite_ext(spr_lose, 0, _x, _y + 150, 2, 2, 0, c_white, 1)
	
	draw_set_font(fnt_m5x7_24)
	draw_text(_xx, _yy, global.death_message + "\nThank you for taking your own time to play our game!\n" + "Press ENTER to play again")
}
else if (global.death_message == ""){
	draw_set_text(c_white, fnt_m5x7_60, fa_center, fa_middle)
	draw_text(_x, _y, "YOU WIN")
	
	draw_sprite_ext(spr_win, 0, _x, _y + 150, 2, 2, 0, c_white, 1)
	draw_text(_xx, _yy, "Thank you for taking your own time to play our game!\nPress ENTER to play again")
}

if (keyboard_check(vk_enter)){
	global.death_message = ""
	global.floor_count = 0
	game_restart()
}


