
require "scripts/style"

-- this is a multi-layered composite sprite
function MakeDrD(xpos, ypos)
   return DrDCharacter
   {
        name="drdcharacter",
        x=xpos, y=ypos,
        w=400, h=520,
        AnimSprite
        {
          name='base',
          x=199, y=258,
          animations={          
            { key="front", texture="characters/drd/neutral_base", default=1},                                   
          }
        },
        AnimSprite
        {
          name='face',
          x=148, y=160,  
          animations={          
            { key="front", texture="characters/drd/face/face", animation="front", default=1},                                   
            { key="side", texture="characters/drd/face/face", animation="side"},                                   
          },
        },
        
        AnimSprite
        {
          name='eyebrows',
          x=153, y=185,  
          animations={          
            { key="raised", texture="characters/drd/eyebrows/eyebrows", animation="raised"},                                   
            { key="normal", texture="characters/drd/eyebrows/eyebrows", animation="normal"},                                   
            { key="off", texture="characters/drd/eyebrows/eyebrows", animation="off", default=1},                                   
          },
        },
        AnimSprite
        {
          name='eyes',
          x=153, y=185,  
          animations={          
            { key="idle", texture="characters/drd/eyes/eyes", animation="idle", default=1},                                   
            { key="blink", texture="characters/drd/eyes/eyes", animation="blink"},                                   
          },
        },
        
        AnimSprite
        {
          name='mouth',
          x=152, y=240,  
          animations={          
            { key="mmeeoo", texture="characters/drd/mouth/mouth", animation="main", default=1},            
          },
        },
        AnimSprite
        {
          name='hands',
          x=170, y=395,  
          animations={          
            { key="idle", texture="characters/drd/hands/hands", animation="idle", default=1},                                   
            { key="wiggle", texture="characters/drd/hands/hands", animation="tent" },                                   
          },
        },
        
        AnimSprite
        {
          name='glitch',
          x=190, y=100,  
          animations={          
            { key="idle", texture="characters/drd/glitch/glitch", animation="main", default=1},                                   
            { key="glitch", texture="characters/drd/glitch/glitch", animation="glitch"},                                   
            { key="glitch2", texture="characters/drd/glitch/glitch", animation="glitch2"},                                   
            { key="glitch3", texture="characters/drd/glitch/glitch", animation="glitch3"},                                   
            { key="glitch4", texture="characters/drd/glitch/glitch", animation="glitch4"},                                   
          },
        },

   }
end
