/// @description Insert description here
// You can write your code in this editor
draw_set_halign(fa_left)
for(i=0;i<48;i++)
{
draw_sprite_ext(spr_tile,0,i mod 8*128,i div 8*128,2,2,0,c_white,1)	
if mouse_x>=i mod 8*128 and mouse_x<i mod 8*128+128 and mouse_y>=i div 8*128 and mouse_y<i div 8*128+128 then draw_sprite_ext(spr_tile,1,i mod 8*128,i div 8*128,2,2,0,c_white,1)	
}
draw_set_font(font_normal)
draw_set_color(c_white)
draw_text_transformed(30,50,"Planet of bandits",6,6,0)
draw_set_alpha(0.3)
if selected=0 then draw_rectangle(60,200,60+4*string_width("Играть"),260,0)
if selected=1 then draw_rectangle(60,280,60+4*string_width("Настройки"),340,0) 
if selected=2 then draw_rectangle(60,360,60+4*string_width("Выход"),420,0)
draw_set_alpha(1)
draw_text_transformed(60,200,"Играть",4,4,0)
draw_text_transformed(60,280,"Настройки",4,4,0)
draw_text_transformed(60,360,"Выход",4,4,0)
if section="hero_select" then
{
draw_set_color(c_black)
draw_set_alpha(0.6)
draw_rectangle(650,170,930,470,0)
draw_set_color(c_white)
draw_set_alpha(1)
if mouse_x>680 and mouse_x<780 and mouse_y>250 and mouse_y<350 then {draw_rectangle(680,250,780,350,1) draw_text(670,420,"Особое умение: граната")}
if mouse_x>800 and mouse_x<900 and mouse_y>250 and mouse_y<350 then {draw_rectangle(800,250,900,350,1) draw_text(670,420,"Особое умение: рывок")}
draw_text(700,200,"Выбери персонажа")
draw_sprite(spr_portrait_2,0,850,300)	
draw_sprite(spr_portrait,0,730,300)	
}
if section="settings" then
{
	draw_set_color(c_black)
draw_set_alpha(0.6)
draw_rectangle(650,170,930,470,0)
draw_set_color(c_white)
draw_set_alpha(1)
draw_text(700,220,"Настройки")	
draw_text(651,250,"Громкость звука: <A "+string(round(100*sound_volume))+"% D>")
}
draw_text(30,700,"Игра сделана для конкурса IGDC №151 \"Garbage game\"")