From f67e67c50c85f943c032277e245e94b55be9ec1e Mon Sep 17 00:00:00 2001 From: MilkingChicken Date: Sun, 24 Sep 2017 19:42:22 +0200 Subject: Added animated background and clouds to Alpha Abyss --- config/animations/background-alpha.lua | 17 ++++++ config/maps/alpha.lua | 94 ++++++++++++++++++---------------- 2 files changed, 67 insertions(+), 44 deletions(-) create mode 100644 config/animations/background-alpha.lua (limited to 'config') diff --git a/config/animations/background-alpha.lua b/config/animations/background-alpha.lua new file mode 100644 index 0000000..019f661 --- /dev/null +++ b/config/animations/background-alpha.lua @@ -0,0 +1,17 @@ +return +{ + default = { + [1] = love.graphics.newQuad(0, 0, 320, 200, 3200, 200), + [2] = love.graphics.newQuad(320, 0, 320, 200, 3200, 200), + [3] = love.graphics.newQuad(640, 0, 320, 200, 3200, 200), + [4] = love.graphics.newQuad(960, 0, 320, 200, 3200, 200), + [5] = love.graphics.newQuad(1280, 0, 320, 200, 3200, 200), + [6] = love.graphics.newQuad(1600, 0, 320, 200, 3200, 200), + [7] = love.graphics.newQuad(1920, 0, 320, 200, 3200, 200), + [8] = love.graphics.newQuad(2240, 0, 320, 200, 3200, 200), + [9] = love.graphics.newQuad(2560, 0, 320, 200, 3200, 200), + [10] = love.graphics.newQuad(2880, 0, 320, 200, 3200, 200), + frames = 10, + repeated = true + } +} \ No newline at end of file diff --git a/config/maps/alpha.lua b/config/maps/alpha.lua index 43c12ee..b99adf3 100644 --- a/config/maps/alpha.lua +++ b/config/maps/alpha.lua @@ -1,44 +1,50 @@ -return -{ - name = "Alpha Abyss", - theme = "alpha.ogg", - portrait = "assets/maps/alpha.png", - available = true, - center = {x = 0, y = -80}, - width = 360, - height = 240, - respawns = { - {x = -30, y = 0}, - {x = 30, y = 0}, - {x = 0, y = 0}, - {x = -120, y = -50}, - {x = 120, y = -50}, - {x = 0, y = -75} - }, - create = { - { - ratio = 0, - background = "assets/backgrounds/alpha.png", - }, - { - x = -60, - y = 0, - platform = "alpha-big", - }, - { - x = -145, - y = -50, - platform = "alpha-small", - }, - { - x = 85, - y = -50, - platform = "alpha-small", - }, - { - x = -30, - y = -80, - platform = "alpha-small", - } - }, -} +return +{ + name = "Alpha Abyss", + theme = "alpha.ogg", + portrait = "assets/maps/alpha.png", + available = true, + center = {x = 0, y = -80}, + width = 360, + height = 240, + respawns = { + {x = -30, y = 0}, + {x = 30, y = 0}, + {x = 0, y = 0}, + {x = -120, y = -50}, + {x = 120, y = -50}, + {x = 0, y = -75} + }, + create = { + { + clouds = "assets/dust.png", + animations = "clouds-default", + count = 8, + }, + { + ratio = 0, + background = "assets/backgrounds/alpha.png", + animations = "background-alpha" + }, + { + x = -60, + y = 0, + platform = "alpha-big", + }, + { + x = -145, + y = -50, + platform = "alpha-small", + }, + { + x = 85, + y = -50, + platform = "alpha-small", + }, + { + x = -30, + y = -80, + platform = "alpha-small", + } + }, +} -- cgit v1.1