public void render(Graphics g)
    {
        if(health > 0)
        {
        g.drawImage(Images.player[walkFrame][skin],(int)x,(int)y, null);
        if(gunLevel > 0)
        {
            g.drawImage(Images.gun[walkFrame][gunLevel - 1], (int)x,(int)y, null);
        }

            if(level.debug)
            {
                int firstbx = ((int)x - ((int)x % 16))/16-1;
                int lastbx = ((int)(x + sx) -   ((int)(x + sx) % 16))/16+1;
                int middlebx1 = firstbx+1;
                int middlebx2 = lastbx-1;
                int firstby = ((int) y -   ((int)y  % 16))/16 - 1;
                int lastby = ((int)(y + sy) -   ((int)(y + sy) % 16))/16;
                int middleby1 =  firstby + 1;
                int middleby2 = lastby - 1 ;

                g.setColor(Color.GREEN);
                g.fillRect(middlebx1*16,firstby*16,16,16);
                g.fillRect(middlebx2*16,firstby*16,16,16);
                g.fillRect(middlebx1*16,lastby*16,16,16);
                g.fillRect(middlebx2*16,lastby*16,16,16);
                g.fillRect(firstbx*16,middleby1*16,16,16);
                g.fillRect(firstbx*16,middleby2*16,16,16);
                g.fillRect(lastbx*16,middleby1*16,16,16);
                g.fillRect(lastbx*16,middleby2*16,16,16);
            }
        }
        for(int i = 0; i < maxHealth;i++)
        {
            if(i < this.health)
            {
                g.drawImage(Images.items[0][1],i*20,0,null);
            }
            else
            {
                g.drawImage(Images.items[1][1],i*20,0,null);
            }
        }

        for(int i = 0; i < keys;i++)
        {
            g.drawImage(Images.items[0][2],380 -(i*20),0,null);
        }
        for(int i = 0; i < blueKeys;i++)
        {
            g.drawImage(Images.items[1][2],380 -(i*20),20,null);
        }
        for(int i = 0; i < partyKeys;i++)
        {
            g.drawImage(Images.items[2][2],380 -(i*20),40,null);
        }
    }