Advertisement
Guest User

Untitled

a guest
Jul 28th, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.33 KB | None | 0 0
  1. --rainbow dash
  2. if true then
  3.     characters.awesome = {}
  4.     local temp = characters.awesome
  5.    
  6.     temp.name = "rainbow dash"
  7.     temp.defaultcolors = {}
  8.     temp.pony = true
  9.  
  10.     temp.smalloffsetX = 6
  11.     temp.smalloffsetY = 17
  12.     temp.smallquadcenterX = 26
  13.     temp.smallquadcenterY = 24
  14.  
  15.     temp.shrinkquadcenterX = 26
  16.     temp.shrinkquadcenterY = 24
  17.     temp.shrinkoffsetY = 17
  18.     temp.shrinkquadcenterY2 = 24
  19.  
  20.     temp.growquadcenterY = 12
  21.     temp.growquadcenterY2 = 12
  22.  
  23.     temp.duckquadcenterY = 24
  24.     temp.duckoffsetY = 17
  25.  
  26.     temp.bigoffsetX = 6
  27.     temp.bigoffsetY = 5
  28.     temp.bigquadcenterX = 26
  29.     temp.bigquadcenterY = 24
  30.  
  31.     temp.customscale = 1
  32.     temp.nopointing = true
  33.  
  34.     --players
  35.     temp.animations = love.graphics.newImage("graphics/player/awesome/animations.png")
  36.  
  37.     temp.idle = {}
  38.     temp.run = {}
  39.     temp.slide = {}
  40.     temp.jump = {}
  41.     temp.die = {}
  42.     temp.climb = {}
  43.     temp.swim = {}
  44.     temp.grow = {}
  45.  
  46.     local quadwidth = 53
  47.     local quadheight = 48
  48.     local imgwidth = 2067
  49.     local imgheight = 48
  50.  
  51.     temp.runframes = 16
  52.     temp.jumpframes = 16
  53.  
  54.     for i = 1, 5 do
  55.         local add = 0
  56.         temp.idle[i] = love.graphics.newQuad(0, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  57.        
  58.         temp.run[i] = {}
  59.         for j = 1, temp.runframes do
  60.             temp.run[i][j] = love.graphics.newQuad(j*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  61.         end
  62.         add = add + temp.runframes
  63.        
  64.         temp.slide[i] = love.graphics.newQuad((add+1)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  65.        
  66.         temp.jump[i] = {}
  67.         for j = 1, temp.jumpframes do
  68.             temp.jump[i][j] = love.graphics.newQuad((add+1+j)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  69.         end
  70.         add = add + temp.jumpframes
  71.        
  72.         temp.die[i] = love.graphics.newQuad((add+2)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  73.        
  74.         temp.climb[i] = {}
  75.         temp.climb[i][1] = love.graphics.newQuad((add+3)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  76.         temp.climb[i][2] = love.graphics.newQuad((add+4)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  77.        
  78.         temp.swim[i] = {}
  79.         temp.swim[i][1] = love.graphics.newQuad((add+5)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  80.         temp.swim[i][2] = love.graphics.newQuad((add+6)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  81.        
  82.         temp.grow[i] = love.graphics.newQuad((add+9)*quadwidth, 0, quadwidth, imgheight, imgwidth, imgheight)
  83.     end
  84.  
  85.     temp.biganimations = love.graphics.newImage("graphics/player/awesome/biganimations.png")
  86.  
  87.     local quadwidth = 53
  88.     local quadheight = 48
  89.     local imgwidth = 2226
  90.     local imgheight = 48
  91.    
  92.     temp.bigidle = {}
  93.     temp.bigrun = {}
  94.     temp.bigslide = {}
  95.     temp.bigjump = {}
  96.     temp.bigfire = {}
  97.     temp.bigclimb = {}
  98.     temp.bigswim = {}
  99.     temp.bigduck = {} --hehe duck.
  100.  
  101.     for i = 1, 5 do
  102.         local add = 0
  103.         temp.bigidle[i] = love.graphics.newQuad(0, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  104.        
  105.         temp.bigrun[i] = {}
  106.         for j = 1, temp.runframes do
  107.             temp.bigrun[i][j] = love.graphics.newQuad(j*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  108.         end
  109.         add = add + temp.runframes
  110.        
  111.         temp.bigslide[i] = love.graphics.newQuad((add+1)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  112.        
  113.         temp.bigjump[i] = {}
  114.         for j = 1, temp.jumpframes do
  115.             temp.bigjump[i][j] = love.graphics.newQuad((add+1+j)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  116.         end
  117.         add = add + temp.jumpframes
  118.        
  119.         temp.bigfire[i] = love.graphics.newQuad((add+2)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  120.        
  121.         temp.bigclimb[i] = {}
  122.         temp.bigclimb[i][1] = love.graphics.newQuad((add+3)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  123.         temp.bigclimb[i][2] = love.graphics.newQuad((add+4)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  124.        
  125.         temp.bigswim[i] = {}
  126.         temp.bigswim[i][1] = love.graphics.newQuad((add+5)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  127.         temp.bigswim[i][2] = love.graphics.newQuad((add+6)*quadwidth, (i-1)*quadheight, quadwidth, quadheight, imgwidth, imgheight)
  128.        
  129.         temp.bigduck[i] = love.graphics.newQuad((add+9)*quadwidth, 0, quadwidth, imgheight, imgwidth, imgheight)
  130.     end
  131. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement