diff options
author | Aki <nthirtyone@gmail.com> | 2017-02-08 19:18:25 +0100 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-02-08 19:18:25 +0100 |
commit | a7b1bcc6872579b0ed8dbce399352d3afca1a80f (patch) | |
tree | cad837f35cc495d42385c3238de06804e8d68d07 /maps/alpha abyss.lua | |
parent | 939ef3d25ec3dadba9e86b04ae1e294e789175d0 (diff) | |
parent | f44ce392bc511fdfd24c54a5ee24b09f8ff6836f (diff) | |
download | roflnauts-a7b1bcc6872579b0ed8dbce399352d3afca1a80f.zip roflnauts-a7b1bcc6872579b0ed8dbce399352d3afca1a80f.tar.gz roflnauts-a7b1bcc6872579b0ed8dbce399352d3afca1a80f.tar.bz2 |
Merge branch 'animations'
Diffstat (limited to 'maps/alpha abyss.lua')
-rw-r--r-- | maps/alpha abyss.lua | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/maps/alpha abyss.lua b/maps/alpha abyss.lua index a3b6153..0dd2c61 100644 --- a/maps/alpha abyss.lua +++ b/maps/alpha abyss.lua @@ -1,4 +1,26 @@ -- The abyss of the alpha. +-- Animations +local animations_small = { + default = { + frames = 20, + repeated = true + } +} +local animations_big = { + default = { + frames = 20, + repeated = true + } +} +for i=1,10 do + local a = love.graphics.newQuad(i*118-118, 0, 118,51, 1180,51) + animations_big.default[i*2-1] = a + animations_big.default[i*2] = a + local a = love.graphics.newQuad(i*60-60, 0, 60,20, 600,20) + animations_small.default[i*2-1] = a + animations_small.default[i*2] = a +end +-- Map data return { -- GENERAL name = "alpha abyss", @@ -24,25 +46,29 @@ return { x = -60, y = 0, shape = {0,0, 117,0, 101,50, 16,50}, - sprite = "assets/platforms/alpha-big-1.png" + sprite = "assets/platforms/alpha-big.png", + animations = animations_big }, { x = -145, y = -50, shape = {0,0, 59,0, 59,19, 0,19}, - sprite = "assets/platforms/alpha-small-1.png" + sprite = "assets/platforms/alpha-small.png", + animations = animations_small }, { x = 85, y = -50, shape = {0,0, 59,0, 59,19, 0,19}, - sprite = "assets/platforms/alpha-small-1.png" + sprite = "assets/platforms/alpha-small.png", + animations = animations_small }, { x = -30, y = -80, shape = {0,0, 59,0, 59,19, 0,19}, - sprite = "assets/platforms/alpha-small-1.png" + sprite = "assets/platforms/alpha-small.png", + animations = animations_small } }, decorations = {} |