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 --- assets/backgrounds/alpha.png | Bin 3708 -> 18668 bytes assets/dust.png | Bin 0 -> 570 bytes config/animations/background-alpha.lua | 17 ++++++ config/maps/alpha.lua | 94 ++++++++++++++++++--------------- 4 files changed, 67 insertions(+), 44 deletions(-) create mode 100644 assets/dust.png create mode 100644 config/animations/background-alpha.lua diff --git a/assets/backgrounds/alpha.png b/assets/backgrounds/alpha.png index d897910..39bc44d 100644 Binary files a/assets/backgrounds/alpha.png and b/assets/backgrounds/alpha.png differ diff --git a/assets/dust.png b/assets/dust.png new file mode 100644 index 0000000..4023f1f Binary files /dev/null and b/assets/dust.png differ 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