
require "scripts/style"

function MakeMaggie(xpos, ypos)
       return AnimSprite
        {
          name='drd',
          x=xpos, y=ypos,
          w=130, h=260,
          
          xRef = 0, yRef = 0,
          animations={
          
-- legacy stuff          
            { key="murder", texture="characters/maggie/pleased", animation="main" },            
              
-- positive            
            { key="laugh1", texture="characters/maggie/laugh_01_a", animation="main", next="laugh1a", sound="MAGGIE-LAUGH" },
            { key="laugh1a", texture="characters/maggie/laugh_01_b", animation="main" },
            { key="laugh2", texture="characters/maggie/laugh_02_a", animation="main", next="laugh2a", sound="MAGGIE-LAUGH" },
            { key="laugh2a", texture="characters/maggie/laugh_02_b", animation="main" },
            
            { key="hooray", texture="characters/maggie/hooray", animation="main"},            
            
            { key="happy1", texture="characters/maggie/happy_01", animation="main"},            
            { key="happy2", texture="characters/maggie/happy_02", animation="main"},            
            
            { key="pleased", texture="characters/maggie/pleased", animation="main" },                       
            
            { key="yay1", texture="characters/maggie/yay1", animation="main" },            
            { key="yay2", texture="characters/maggie/yay2", animation="main" },            
-- idle stuff            
            { key="idle1", texture="characters/maggie/idle/idle_01_a", animation="main", next="idle1a" },
            { key="idle1a", texture="characters/maggie/idle/idle_01_b", animation="main" },
            { key="idle2", texture="characters/maggie/idle/idle_02_a", animation="main", next="idle2a" },
            { key="idle2a", texture="characters/maggie/idle/idle_02_b", animation="main" },
            { key="idle3", texture="characters/maggie/idle/idle_03_a", animation="main", next="idle3a" },
            { key="idle3a", texture="characters/maggie/idle/idle_03_b", animation="main", next="idle3b" },
            { key="idle3b", texture="characters/maggie/idle/idle_03_c", animation="main", next="idle3c" },
            { key="idle3c", texture="characters/maggie/idle/idle_03_d", animation="main", next="idle3d" },
            { key="idle3d", texture="characters/maggie/idle/idle_03_e", animation="main" },
            { key="idle4", texture="characters/maggie/idle/idle_04_a", animation="main", next="idle4a" },
            { key="idle4a", texture="characters/maggie/idle/idle_04_b", animation="main" },
            { key="idle5", texture="characters/maggie/idle/idle_05_a", animation="main", next="idle5a" },
            { key="idle5a", texture="characters/maggie/idle/idle_05_b", animation="main" },
            { key="idleblink", texture="characters/maggie/idle/idle_blink", animation="main", default=1},

-- negative stuff
            { key="mad", texture="characters/maggie/negative/mad", animation="main"},
            { key="sad", texture="characters/maggie/negative/sad", animation="main"},            
            { key="oops", texture="characters/maggie/negative/oops", animation="main"},

                        
          },
        }

end
