diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-17 14:13:35 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-17 14:13:35 +0200 |
commit | 4d2c7c76dfd99dd488edcb162fc6e6bd1f08b7ac (patch) | |
tree | 202cc25dff5bd56d4a86242fe1f7830472d97fa3 /effect.lua | |
parent | 9b831dab5afb0ee831a8fc0d7f626f1c8b326f6b (diff) | |
download | roflnauts-4d2c7c76dfd99dd488edcb162fc6e6bd1f08b7ac.zip roflnauts-4d2c7c76dfd99dd488edcb162fc6e6bd1f08b7ac.tar.gz roflnauts-4d2c7c76dfd99dd488edcb162fc6e6bd1f08b7ac.tar.bz2 |
Moved quads to new file
Diffstat (limited to 'effect.lua')
-rw-r--r-- | effect.lua | 38 |
1 files changed, 1 insertions, 37 deletions
@@ -11,45 +11,9 @@ Effect = { frame = 1, animation = nil, sprite = love.graphics.newImage("assets/effects.png"), - quads = { - jump = { - [1] = love.graphics.newQuad( 0, 0, 24,24, 168,120), - [2] = love.graphics.newQuad( 24, 0, 24,24, 168,120), - [3] = love.graphics.newQuad( 48, 0, 24,24, 168,120), - [4] = love.graphics.newQuad( 72, 0, 24,24, 168,120), - frames = 4 - }, - doublejump = { - [1] = love.graphics.newQuad( 0, 24, 24,24, 168,120), - [2] = love.graphics.newQuad( 24, 24, 24,24, 168,120), - [3] = love.graphics.newQuad( 48, 24, 24,24, 168,120), - [4] = love.graphics.newQuad( 72, 24, 24,24, 168,120), - frames = 4 - }, - land = { - [1] = love.graphics.newQuad( 0, 48, 24,24, 168,120), - [2] = love.graphics.newQuad( 24, 48, 24,24, 168,120), - [3] = love.graphics.newQuad( 48, 48, 24,24, 168,120), - [4] = love.graphics.newQuad( 72, 48, 24,24, 168,120), - [5] = love.graphics.newQuad( 96, 48, 24,24, 168,120), - frames = 5 - }, - respawn = {}, - clash = {}, - trail = {}, - hit = {} - } + quads = require "effects" } --- NAME :POSITION :SIZE :FRAMES --- jump :x 0 y 0: 24px: 4 --- doublejump:x 0 y 24: 24px: 4 --- land :x 0 y 48: 24px: 5 --- respawn :x 0 y 72: 24px: 7 --- clash :x 0 y 96: 24px: 6 --- trail :x104 y 0: 16px: 4 --- hit :x106 y 18: 16px: 3 - -- Construct of `Effect` function Effect:new(name, x, y) -- Meta |