function init_credits_screen()
{

    switch_bgm(SONG_ENUM.BGM_TITLE);
}

var ava = new Image();
ava.src = "img/ava.png";
var pat = new Image();

pat.src = "img/Patreon_White.png";

var big_list = ["Oweroftea   HPab   Callum H.   Erill",
                "Cynical Cy   Mari F.   Scryer   Lady Alarune",
            "Happensmaker   Slammy Down   Dude McDuder  Revolvio"];

var small_list = 
   ["Magnum   Gigglebluncky   RaZor   Cheryl Zant/Glitterpistol     Nicholas B.     translov1   Josefino   Joshua H.   Hayabusa1988   ManiacMcNulty", 
    "Expandingthoughts     TDG     bob j   RatMan   TheLatiKing   MaddeningChaos   KymerionVesh   Alec J.    Carey W.    Aerel E   nicNac500",
    "My Dude   Jango756   Aaron G.   AP38040   Aske V.     Kafiran     Jamie S.   Cameron J.   MrBen     William M.     R     Ross T.",
    "CallMeAHero     Olivier   Connor Z.   Pingasranger   Pip_Squeak   Luckylad7   WannaHide   asdf    CREALAND L.   Bryan   deamonnet156", 
    "Kestrel  Alzeon   Mims   Robbie W.   Callum D.   Alex W.   Aiden L.   Jesse M     Viewtiful Roy     CoastalScreen   Jordan W.   Derpbeard",
    "snilloc422   jollypiratedonuts   alf v   Choc0719   Troubled Perv   Jeremy   dragonboy   Troubled Perv   Jeremy   dragonboy200117",
    "Carvhana   Nolan H   ga da   Cobalt_589   Connor   Cotton   Josh   VladKuroNeko   Mark F.   dashawn   Lostminded Fool   Mike   Snut   Brad S",
    "Ahsasin8   Inlata Guy     temi_san     FanaticXenophile   ThomasThePencil   BootScoot   TheWickerMan   smeg   Gewentor   Nicholas   Futomaki Warrior",
    "Bill H   Generell   Thunderclese   Megatron1997   Joshua F   RIKIYAMA   Christia J.   Kumabear   evbot1121   VIDGAP BAKER   Dandorian   Kirin",
    "uberfallen   Sartana G   Gorlois   Chris L   Patrick C   -   BoggyT   That1superguy   Fishingman   Histroei239   Jorpando   armandpr   AA   James B.",
    "Low   tro roto   Yandel P   Jim F   T-Boi   L3gacyHeart   Alex B.   Thomas S.   Plush Pillows   Joebama Joebama   Devdyl   Jasen M.   shuichin742",
        "Twilight   meta   Axel   Crocuta Crocuta   Might_I_ak_why   SomeGuy   Ethrias M.   bloodrain327   Funny_name_here   Koronokai   Cercle1600   Zura",
        "Potato   Monogimp   burners"
];

function update_credits_screen()
{

    var str = "Eat The Dungeon is made by:";
    draw_text(str, .5 * CANVAS_WIDTH -  str.length * .2 * 25 * frame_scale, 50 * frame_scale, 25 * frame_scale);

    str = "Bewildered Angel";
    draw_text(str, .5 * CANVAS_WIDTH -  str.length * .2 * 50 * frame_scale, 100 * frame_scale, 50 * frame_scale);
    draw_center(ava, .5 * CANVAS_WIDTH -  str.length * .2 * 60 * frame_scale - 25 * frame_scale, 100 * frame_scale, 75 * frame_scale, 75 * frame_scale);

    str = "With generous support from:";
    draw_text(str, .5 * CANVAS_WIDTH -  str.length * .2 * 25 * frame_scale, 150 * frame_scale, 25 * frame_scale);

    for(var i in big_list)
    {
        draw_text(big_list[i], 
            .5 * CANVAS_WIDTH -  big_list[i].length * .2 * 40 * frame_scale, 
            195 * frame_scale + i * 35 * frame_scale, 
            35 * frame_scale);

    }
    
    for(var i in small_list)
    {
        draw_text(small_list[i], 
            .5 * CANVAS_WIDTH -  small_list[i].length * .2 * 12 * frame_scale, 
            280 * frame_scale+ i * 12 * frame_scale, 12 * frame_scale);

    }
    
    str = "any many others, via";
    draw_text(str, .5 * CANVAS_WIDTH -  str.length * .2 * 25 * frame_scale, 450 * frame_scale, 25 * frame_scale);
    draw_center(pat, .5 * CANVAS_WIDTH, 500 * frame_scale, (1080.0 / 440.0) * 75 * frame_scale, 75 * frame_scale);


    if(INPUT.left_triggered && INPUT.mouse_screen.x > 0 && INPUT.mouse_screen.y > 0 &&
    INPUT.mouse_screen.x < CANVAS_WIDTH && INPUT.mouse_screen.y < CANVAS_HEIGHT)
    {
                //console.log("click");
        next_gamestate = GAMESTATE_ENUM.TITLE_SCREEN;
    }
}


function exit_credits_screen()
{

}