From 291e9ffce1151be503f1c4550e6f4ff3230960b9 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 13 Sep 2017 04:07:16 +0200 Subject: CloudGenerator's atlas and quads are loaded from map config --- config/animations/default-clouds.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config/animations/default-clouds.lua (limited to 'config/animations') diff --git a/config/animations/default-clouds.lua b/config/animations/default-clouds.lua new file mode 100644 index 0000000..bbf8a28 --- /dev/null +++ b/config/animations/default-clouds.lua @@ -0,0 +1,18 @@ +return +{ + default = { + [1] = love.graphics.newQuad( 1, 1, 158,47, 478,49), + frames = 1, + repeated = true + }, + default2 = { + [1] = love.graphics.newQuad(160, 1, 158,47, 478,49), + frames = 1, + repeated = true + }, + default3 = { + [1] = love.graphics.newQuad(319, 1, 158,47, 478,49), + frames = 1, + repeated = true + } +} -- cgit v1.1 From 8285dc2b0cb5eae93e9532d9a6c4c75f3dcaafab Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 13 Sep 2017 04:09:08 +0200 Subject: Renamed clouds animation file as animations aren't only for maps --- config/animations/clouds-default.lua | 18 ++++++++++++++++++ config/animations/default-clouds.lua | 18 ------------------ 2 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 config/animations/clouds-default.lua delete mode 100644 config/animations/default-clouds.lua (limited to 'config/animations') diff --git a/config/animations/clouds-default.lua b/config/animations/clouds-default.lua new file mode 100644 index 0000000..bbf8a28 --- /dev/null +++ b/config/animations/clouds-default.lua @@ -0,0 +1,18 @@ +return +{ + default = { + [1] = love.graphics.newQuad( 1, 1, 158,47, 478,49), + frames = 1, + repeated = true + }, + default2 = { + [1] = love.graphics.newQuad(160, 1, 158,47, 478,49), + frames = 1, + repeated = true + }, + default3 = { + [1] = love.graphics.newQuad(319, 1, 158,47, 478,49), + frames = 1, + repeated = true + } +} diff --git a/config/animations/default-clouds.lua b/config/animations/default-clouds.lua deleted file mode 100644 index bbf8a28..0000000 --- a/config/animations/default-clouds.lua +++ /dev/null @@ -1,18 +0,0 @@ -return -{ - default = { - [1] = love.graphics.newQuad( 1, 1, 158,47, 478,49), - frames = 1, - repeated = true - }, - default2 = { - [1] = love.graphics.newQuad(160, 1, 158,47, 478,49), - frames = 1, - repeated = true - }, - default3 = { - [1] = love.graphics.newQuad(319, 1, 158,47, 478,49), - frames = 1, - repeated = true - } -} -- cgit v1.1 From 453095b2e0b34cc4bd24671bc8abe6ff9279a318 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 21 Sep 2017 16:06:53 +0200 Subject: Flames animations moved to separate config file --- config/animations/flames.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 config/animations/flames.lua (limited to 'config/animations') diff --git a/config/animations/flames.lua b/config/animations/flames.lua new file mode 100644 index 0000000..62ecbb1 --- /dev/null +++ b/config/animations/flames.lua @@ -0,0 +1,21 @@ +return +{ + default = { + [1] = love.graphics.newQuad(0, 0, 42, 19, 168, 19), + [2] = love.graphics.newQuad(42, 0, 42, 19, 168, 19), + frames = 2, + repeated = true + }, + fadein = { + [1] = love.graphics.newQuad(84, 0, 42, 19, 168, 19), + [2] = love.graphics.newQuad(126, 0, 42, 19, 168, 19), + frames = 2, + repeated = false + }, + fadeout = { + [1] = love.graphics.newQuad(126, 0, 42, 19, 168, 19), + [2] = love.graphics.newQuad(84, 0, 42, 19, 168, 19), + frames = 2, + repeated = false + } +} -- cgit v1.1