summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-04-09 22:07:04 +0200
committerAki <nthirtyone@gmail.com>2017-04-09 22:07:04 +0200
commit0dd01913fe0eefc7ba4bc0797877f40fdedf9315 (patch)
tree8d270eb07f589d2487b3ce66d4865e5a4718042a /config
parent55b0cf1a22e4a7e41fe00aa693445d6c4bd0652d (diff)
parenta03c1125f10fbbad253a0efc4727072fcbd55345 (diff)
downloadroflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.zip
roflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.tar.gz
roflnauts-0dd01913fe0eefc7ba4bc0797877f40fdedf9315.tar.bz2
Merge branch 'com'
Diffstat (limited to 'config')
-rw-r--r--config/animations/effects.lua76
-rw-r--r--config/animations/hero.lua48
-rw-r--r--config/maps.lua9
-rw-r--r--config/maps/aiguillon.lua58
-rw-r--r--config/maps/alpha abyss.lua75
-rw-r--r--config/maps/default.lua47
-rw-r--r--config/maps/readme.md82
-rw-r--r--config/maps/ribbit.lua46
-rw-r--r--config/maps/rill.lua73
-rw-r--r--config/maps/sorona.lua53
-rw-r--r--config/maps/starstorm.lua93
-rw-r--r--config/menus/credits.lua (renamed from config/menucredits.lua)6
-rw-r--r--config/menus/host.lua (renamed from config/menuhost.lua)15
-rw-r--r--config/menus/main.lua (renamed from config/menumain.lua)12
-rw-r--r--config/menus/select.lua (renamed from config/menuselect.lua)15
-rw-r--r--config/menus/settings.lua (renamed from config/menusettings.lua)8
-rw-r--r--config/nauts.lua40
-rw-r--r--config/sounds.lua9
18 files changed, 740 insertions, 25 deletions
diff --git a/config/animations/effects.lua b/config/animations/effects.lua
new file mode 100644
index 0000000..dd6d55e
--- /dev/null
+++ b/config/animations/effects.lua
@@ -0,0 +1,76 @@
+-- Animations spritesheet array for `Effect`
+-- Size of sprie atlas is 168px x 120px
+
+-- 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
+
+local 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,
+ repeated = false
+ },
+ 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,
+ repeated = false
+ },
+ 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,
+ repeated = false
+ },
+ respawn = {
+ [1] = love.graphics.newQuad( 0, 72, 24,24, 168,120),
+ [2] = love.graphics.newQuad( 24, 72, 24,24, 168,120),
+ [3] = love.graphics.newQuad( 48, 72, 24,24, 168,120),
+ [4] = love.graphics.newQuad( 72, 72, 24,24, 168,120),
+ [5] = love.graphics.newQuad( 96, 72, 24,24, 168,120),
+ [6] = love.graphics.newQuad(120, 72, 24,24, 168,120),
+ [7] = love.graphics.newQuad(144, 72, 24,24, 168,120),
+ frames = 7,
+ repeated = false
+ },
+ clash = {
+ [1] = love.graphics.newQuad( 0, 96, 24,24, 168,120),
+ [2] = love.graphics.newQuad( 24, 96, 24,24, 168,120),
+ [3] = love.graphics.newQuad( 48, 96, 24,24, 168,120),
+ [4] = love.graphics.newQuad( 72, 96, 24,24, 168,120),
+ [5] = love.graphics.newQuad( 96, 96, 24,24, 168,120),
+ [6] = love.graphics.newQuad(120, 96, 24,24, 168,120),
+ frames = 6,
+ repeated = false
+ },
+ trail = {
+ [1] = love.graphics.newQuad(104, 0, 16,16, 168,120),
+ [2] = love.graphics.newQuad(120, 0, 16,16, 168,120),
+ [3] = love.graphics.newQuad(136, 0, 16,16, 168,120),
+ [4] = love.graphics.newQuad(152, 0, 16,16, 168,120),
+ frames = 4,
+ repeated = false
+ },
+ hit = {
+ [1] = love.graphics.newQuad(106, 18, 16,16, 168,120),
+ [2] = love.graphics.newQuad(122, 18, 16,16, 168,120),
+ [3] = love.graphics.newQuad(138, 18, 16,16, 168,120),
+ frames = 3,
+ repeated = false
+ }
+}
+return quads \ No newline at end of file
diff --git a/config/animations/hero.lua b/config/animations/hero.lua
new file mode 100644
index 0000000..881da49
--- /dev/null
+++ b/config/animations/hero.lua
@@ -0,0 +1,48 @@
+-- Animations spritesheet array for `Player`
+-- Basic spritesheet size is 376x26. Each frame is 24x24 and has 1px border around it.
+-- From the left: default (walk0), walk1, walk2, walk3, attack0, attack1, attack3, attack_up0, attack_up1, attack_up2, attack_down0, attack_down1, attack_down2, damage0, damage1
+local animations = {
+ default = {
+ [1] = love.graphics.newQuad( 1, 1, 24,24, 376,26),
+ frames = 1,
+ repeated = true
+ },
+ walk = {
+ [1] = love.graphics.newQuad( 1, 1, 24,24, 376,26),
+ [2] = love.graphics.newQuad( 26, 1, 24,24, 376,26),
+ [3] = love.graphics.newQuad( 51, 1, 24,24, 376,26),
+ [4] = love.graphics.newQuad( 76, 1, 24,24, 376,26),
+ frames = 4,
+ repeated = true
+ },
+ attack = {
+ [1] = love.graphics.newQuad(101, 1, 24,24, 376,26),
+ [2] = love.graphics.newQuad(126, 1, 24,24, 376,26),
+ [3] = love.graphics.newQuad(151, 1, 24,24, 376,26),
+ frames = 3,
+ repeated = false
+ },
+ attack_up = {
+ [1] = love.graphics.newQuad(176, 1, 24,24, 376,26),
+ [2] = love.graphics.newQuad(201, 1, 24,24, 376,26),
+ [3] = love.graphics.newQuad(226, 1, 24,24, 376,26),
+ frames = 3,
+ repeated = false
+ },
+ attack_down = {
+ [1] = love.graphics.newQuad(251, 1, 24,24, 376,26),
+ [2] = love.graphics.newQuad(276, 1, 24,24, 376,26),
+ [3] = love.graphics.newQuad(301, 1, 24,24, 376,26),
+ frames = 3,
+ repeated = false
+ },
+ damage = {
+ [1] = love.graphics.newQuad(326, 1, 24,24, 376,26),
+ [2] = love.graphics.newQuad(351, 1, 24,24, 376,26),
+ [3] = love.graphics.newQuad(326, 1, 24,24, 376,26),
+ [4] = love.graphics.newQuad(351, 1, 24,24, 376,26),
+ frames = 4,
+ repeated = false
+ },
+}
+return animations \ No newline at end of file
diff --git a/config/maps.lua b/config/maps.lua
new file mode 100644
index 0000000..32e89a5
--- /dev/null
+++ b/config/maps.lua
@@ -0,0 +1,9 @@
+return {
+ "default",
+ "rill",
+ "ribbit",
+ "starstorm",
+ "aiguillon",
+ "sorona",
+ "alpha abyss"
+}
diff --git a/config/maps/aiguillon.lua b/config/maps/aiguillon.lua
new file mode 100644
index 0000000..40d3928
--- /dev/null
+++ b/config/maps/aiguillon.lua
@@ -0,0 +1,58 @@
+return {
+ -- CENTER AND SIZE
+ name = "aiguillon",
+ theme = "aiguillon.ogg",
+ center_x = 0,
+ center_y = 10,
+ width = 370,
+ height = 290,
+ -- RESPAWN POINTS
+ respawns = {
+ {x = 0, y = -80},
+ {x = 0, y = -80},
+ {x = 0, y = -80},
+ {x = 0, y = -80},
+ },
+ -- GRAPHICS
+ clouds = false,
+ background = "assets/backgrounds/aiguillon.png",
+ platforms = {
+ {
+ x = -108,
+ y = 22,
+ shape = {1,0, 212,0, 212,12, 206,18, 14,18, 1,12},
+ sprite = "assets/platforms/aiguillon-wide.png"
+ },
+ {
+ x = -46,
+ y = -19,
+ shape = {1,0, 87,0, 87,18, 14,18, 1,12},
+ sprite = "assets/platforms/aiguillon-middle.png"
+ },
+ {
+ x = -141,
+ y = -57,
+ shape = {1,0, 50,0, 50,18, 5,18, 1,13},
+ sprite = "assets/platforms/aiguillon-left-big.png"
+ },
+ {
+ x = -132,
+ y = 84,
+ shape = {1,0, 25,0, 25,18, 1,18},
+ sprite = "assets/platforms/aiguillon-left-small.png"
+ },
+ {
+ x = 77,
+ y = -57,
+ shape = {1,0, 50,0, 50,12, 37,18, 1,18},
+ sprite = "assets/platforms/aiguillon-right-big.png"
+ },
+ {
+ x = 103,
+ y = 84,
+ shape = {1,0, 25,0, 25,18, 1,18},
+ sprite = "assets/platforms/aiguillon-right-small.png"
+ }
+ },
+ decorations = {}
+}
diff --git a/config/maps/alpha abyss.lua b/config/maps/alpha abyss.lua
new file mode 100644
index 0000000..0dd2c61
--- /dev/null
+++ b/config/maps/alpha abyss.lua
@@ -0,0 +1,75 @@
+-- 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",
+ theme = "alpha.ogg",
+ center_x = 0,
+ center_y = -80,
+ width = 360,
+ height = 240,
+ -- RESPAWN POINTS
+ 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}
+ },
+ -- GRAPHICS
+ clouds = false,
+ background = "assets/backgrounds/alpha-1.png",
+ platforms = {
+ {
+ x = -60,
+ y = 0,
+ shape = {0,0, 117,0, 101,50, 16,50},
+ 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.png",
+ animations = animations_small
+ },
+ {
+ x = 85,
+ y = -50,
+ shape = {0,0, 59,0, 59,19, 0,19},
+ 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.png",
+ animations = animations_small
+ }
+ },
+ decorations = {}
+}
diff --git a/config/maps/default.lua b/config/maps/default.lua
new file mode 100644
index 0000000..05b8dc9
--- /dev/null
+++ b/config/maps/default.lua
@@ -0,0 +1,47 @@
+-- Default map from original roflnauts
+return {
+ -- GENERAL
+ name = "default",
+ theme = "default.ogg",
+ center_x = 0,
+ center_y = 0,
+ width = 360,
+ height = 240,
+ -- RESPAWN POINTS
+ respawns = {
+ {x = -15, y = -80},
+ {x = -5, y = -80},
+ {x = 5, y = -80},
+ {x = 15, y = -80}
+ },
+ -- GRAPHICS
+ clouds = true,
+ background = "assets/backgrounds/default.png",
+ platforms = {
+ {
+ x = -91,
+ y = 0,
+ shape = {0,1, 180,1, 180,10, 95,76, 86,76, 0,10},
+ sprite = "assets/platforms/default-big.png"
+ },
+ {
+ x = 114,
+ y = 50,
+ shape = {0,1, 51,1, 51,18, 0,18},
+ sprite = "assets/platforms/default-side.png"
+ },
+ {
+ x = -166,
+ y = 50,
+ shape = {0,1, 51,1, 51,18, 0,18},
+ sprite = "assets/platforms/default-side.png"
+ },
+ {
+ x = -17,
+ y = -50,
+ shape = {0,1, 33,1, 33,14, 0,14},
+ sprite = "assets/platforms/default-top.png"
+ }
+ },
+ decorations = {}
+}
diff --git a/config/maps/readme.md b/config/maps/readme.md
new file mode 100644
index 0000000..dc139ad
--- /dev/null
+++ b/config/maps/readme.md
@@ -0,0 +1,82 @@
+# Mapmaking
+*Hugs Emo*
+
+### Name (string)
+Name of the map. Should be same as the filename. *I think*.
+```lua
+name = "default"
+```
+
+### Center (int)
+Coordinates of center of the map. Camera zone and death zone are placed relative to it.
+```lua
+center_x = 0,
+center_y = 0
+```
+
+### Size (int)
+Width and height of playground. Camera zone and death zone sizes are calculated based on map size.
+```lua
+width = 360,
+height = 240
+```
+
+### Respawns (table, int)
+Table of possible respawn points. Players will randomly spawn on one of these points.
+```lua
+respawns = {
+ {x = -15, y = -80},
+ {x = -5, y = -80},
+ {x = 5, y = -80},
+ {x = 15, y = -80}
+}
+```
+
+### Clouds (bool)
+Presence of clouds. Clouds will spawn if set to **true**.
+```lua
+clouds = true
+```
+
+### Background (string)
+Path to background image in the game structure. It will be used as fixed background.
+```lua
+background = "assets/background-default.png"
+```
+
+### Platforms (table, int, string)
+Platforms on which player can stand. They will be placed on given coordinates with given sprite and shape.
+Shape are points placed relatively to platform's coordinates. Shape points are connected in given order. On top of that last point is connected with first one.
+```lua
+platforms = {
+ {
+ x = -91,
+ y = 0,
+ shape = {0,1, 181,1, 181,10, 96,76, 86,76, 0,10},
+ sprite = "assets/platform_big.png"
+ },
+ {
+ x = 114,
+ y = 50,
+ shape = {0,1, 52,1, 52,30, 0,30},
+ sprite = "assets/platform_small.png"
+ }
+}
+```
+
+### Decoration (table, int, string)
+Decorations are objects in the background which are not fixed but move alongside with foreground objects (platforms, players, clouds). They do not have physical body.
+```lua
+decorations = {
+ {
+ x = -80,
+ y = 10,
+ sprite = "assets/decoration_big.png"
+ },
+ {
+ x = 50,
+ y = 50,
+ sprite = "assets/decoration_small.png"
+ }
+}
+``` \ No newline at end of file
diff --git a/config/maps/ribbit.lua b/config/maps/ribbit.lua
new file mode 100644
index 0000000..c3f5c78
--- /dev/null
+++ b/config/maps/ribbit.lua
@@ -0,0 +1,46 @@
+return {
+ -- GENERAL
+ name = "ribbit",
+ theme = "ribbit.ogg",
+ center_x = 0,
+ center_y = 50,
+ width = 360,
+ height = 240,
+ -- RESPAWN POINTS
+ respawns = {
+ {x = -15, y = -80},
+ {x = -5, y = -80},
+ {x = 5, y = -80},
+ {x = 15, y = -80}
+ },
+ -- GRAPHICS
+ clouds = false,
+ background = "assets/backgrounds/ribbit.png",
+ platforms = {
+ {
+ x = -154,
+ y = 10,
+ shape = {1,12, 48,12, 48,32, 1,32},
+ sprite = "assets/platforms/ribbit-left.png"
+ },
+ {
+ x = 67,
+ y = 7,
+ shape = {36,14, 83,14, 83,29, 36,29},
+ sprite = "assets/platforms/ribbit-right.png"
+ },
+ {
+ x = -70,
+ y = -5,
+ shape = {0,3, 139,3, 134,24, 5,24},
+ sprite = "assets/platforms/ribbit-top.png"
+ },
+ {
+ x = -54,
+ y = 63,
+ shape = {0,3, 107,3, 75,44, 32,44},
+ sprite = "assets/platforms/ribbit-bottom.png"
+ }
+ },
+ decorations = {}
+} \ No newline at end of file
diff --git a/config/maps/rill.lua b/config/maps/rill.lua
new file mode 100644
index 0000000..83c02f2
--- /dev/null
+++ b/config/maps/rill.lua
@@ -0,0 +1,73 @@
+return {
+ -- CENTER AND SIZE
+ name = "rill",
+ theme = "rill.ogg",
+ center_x = 0,
+ center_y = 75,
+ width = 400,
+ height = 260,
+ -- RESPAWN POINTS
+ respawns = {
+ {x = -135, y = 10},
+ {x = -135, y = 10},
+ {x = 135, y = 10},
+ {x = 135, y = 10}
+ },
+ -- GRAPHICS
+ clouds = false,
+ background = "assets/backgrounds/rill.png",
+ platforms = {
+ {
+ x = -151,
+ y = 25,
+ shape = {0,0, 55,0, 55,11, 0,11},
+ sprite = "assets/platforms/rill-flat-left.png"
+ },
+ {
+ x = 93,
+ y = 25,
+ shape = {0,0, 55,0, 55,11, 0,11},
+ sprite = "assets/platforms/rill-flat-right.png"
+ },
+ {
+ x = -24,
+ y = 55,
+ shape = {0,0, 48,0, 47,15, 1,15},
+ sprite = "assets/platforms/rill-center.png"
+ },
+ {
+ x = -112,
+ y = 80,
+ shape = {77,30, 17,0, 0,0, 0,7, 77,44},
+ sprite = "assets/platforms/rill-slope-left.png"
+ },
+ {
+ x = 35,
+ y = 80,
+ shape = {0,30, 60,0, 77,0, 77,7, 0,44},
+ sprite = "assets/platforms/rill-slope-right.png"
+ }
+ },
+ decorations = {
+ {
+ x = 98,
+ y = -20,
+ sprite = "assets/decorations/rill-lollipop-big-purple.png"
+ },
+ {
+ x = 127,
+ y = 4,
+ sprite = "assets/decorations/rill-lollipop-small-green.png"
+ },
+ {
+ x = -152,
+ y = -20,
+ sprite = "assets/decorations/rill-lollipop-big-orange.png"
+ },
+ {
+ x = -121,
+ y = 4,
+ sprite = "assets/decorations/rill-lollipop-small-blue.png"
+ },
+ }
+}
diff --git a/config/maps/sorona.lua b/config/maps/sorona.lua
new file mode 100644
index 0000000..8ec4727
--- /dev/null
+++ b/config/maps/sorona.lua
@@ -0,0 +1,53 @@
+-- Sorona, but with the worms and such.
+return {
+ -- GENERAL
+ name = "sorona",
+ theme = "sorona.ogg",
+ center_x = 0,
+ center_y = 0,
+ width = 360,
+ height = 240,
+ -- RESPAWN POINTS
+ respawns = {
+ {x = -98, y = -70},
+ {x = 70, y = -70},
+ {x = -30, y = -20},
+ {x = -90, y = 40},
+ },
+ -- GRAPHICS
+ clouds = false,
+ background = "assets/backgrounds/sorona.png",
+ platforms = {
+ {
+ x = -60,
+ y = 0,
+ shape = {0,1, 59,1, 59,17, 0,17},
+ sprite = "assets/platforms/sorona-center.png"
+ },
+ {
+ x = -40,
+ y = 55,
+ shape = {3,0, 180,0, 180,20, 3,20},
+ sprite = "assets/platforms/sorona-right-bottom.png"
+ },
+ {
+ x = -120,
+ y = 55,
+ shape = {3,0, 62,0, 62,23, 3,23},
+ sprite = "assets/platforms/sorona-left-bottom.png"
+ },
+ {
+ x = 0,
+ y = -50,
+ shape = {1,1, 140,1, 1,17, 140,17},
+ sprite = "assets/platforms/sorona-right-top.png"
+ },
+ {
+ x = -150,
+ y = -55,
+ shape = {1,9, 106,9, 40,27, 1,27},
+ sprite = "assets/platforms/sorona-left-top.png"
+ }
+ },
+ decorations = {}
+}
diff --git a/config/maps/starstorm.lua b/config/maps/starstorm.lua
new file mode 100644
index 0000000..7f00633
--- /dev/null
+++ b/config/maps/starstorm.lua
@@ -0,0 +1,93 @@
+return {
+ -- CENTER AND SIZE
+ name = "starstorm",
+ theme = "starstorm.ogg",
+ center_x = 0,
+ center_y = -20,
+ width = 400,
+ height = 260,
+ -- RESPAWN POINTS
+ respawns = {
+ {x = 100, y = 45},
+ {x = -100, y = 45},
+ {x = -90, y = -25},
+ {x = 90, y = -25},
+ {x = -110, y = -70},
+ {x = 110, y = -70}
+ },
+ -- GRAPHICS
+ clouds = false,
+ background = "assets/backgrounds/starstorm.png",
+ platforms = {
+ {
+ x = -170,
+ y = -55,
+ shape = {
+ {0,1, 33,1, 39,6, 39,21, 31,21, 0,21},
+ {40,6, 115,6, 115,14, 40,14}
+ },
+ sprite = "assets/platforms/starstorm-left-top.png"
+ },
+ {
+ x = -156,
+ y = -2,
+ shape = {0,0, 109,0, 109,20, 0,20},
+ sprite = "assets/platforms/starstorm-left-middle.png"
+ },
+ {
+ x = -160,
+ y = 69,
+ shape = {0,4, 8,4, 13,1, 102,1, 102,16, 19,16, 0,11},
+ sprite = "assets/platforms/starstorm-left-bottom.png"
+ },
+ {
+ x = 52,
+ y = -55,
+ shape = {
+ {115,1, 82,1, 76,6, 76,21, 84,21, 115,21},
+ {75,6, 0,6, 0,14, 75,14}
+ },
+ sprite = "assets/platforms/starstorm-right-top.png"
+ },
+ {
+ x = 44,
+ y = -2,
+ shape = {109,0, 0,0, 0,20, 109,20},
+ sprite = "assets/platforms/starstorm-right-middle.png"
+ },
+ {
+ x = 55,
+ y = 69,
+ shape = {102,4, 94,4, 89,1, 0,1, 0,16, 83,16, 102,11},
+ sprite = "assets/platforms/starstorm-right-bottom.png"
+ },
+ {
+ x = -27,
+ y = 40,
+ shape = {0,6, 53,6, 53,14, 0,14},
+ sprite = "assets/platforms/starstorm-center.png"
+ }
+ },
+ decorations = {
+ {
+ x = -166,
+ y = -37,
+ sprite = "assets/decorations/starstorm-left-top.png"
+ },
+ {
+ x = -163,
+ y = 19,
+ sprite = "assets/decorations/starstorm-left-bottom.png"
+ },
+ {
+ x = 119,
+ y = -37,
+ sprite = "assets/decorations/starstorm-right-top.png"
+ },
+ {
+ x = 52+77,
+ y = 19,
+ sprite = "assets/decorations/starstorm-right-bottom.png"
+ }
+ }
+}
diff --git a/config/menucredits.lua b/config/menus/credits.lua
index 9d38da4..77cba62 100644
--- a/config/menucredits.lua
+++ b/config/menus/credits.lua
@@ -1,7 +1,7 @@
local menu = ...
-local button = require "button"
-local element = require "element"
+local button = require "not.Button"
+local element = require "not.Element"
local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()
local bx = width/2-29
@@ -11,7 +11,7 @@ return {
:setText("Go back")
:setPosition(bx,144)
:set("active", function (self)
- self.parent:load("menumain")
+ self.parent:open("main")
end)
,
element:new(menu)
diff --git a/config/menuhost.lua b/config/menus/host.lua
index 64ce0e7..b318a5b 100644
--- a/config/menuhost.lua
+++ b/config/menus/host.lua
@@ -1,13 +1,16 @@
local menu = ...
-local button = require "button"
-local selector = require "selector"
+local button = require "not.Button"
+local selector = require "not.Selector"
local width, height = love.graphics.getWidth()/getScale(), love.graphics.getHeight()/getScale()
local bx = width/2-29
local map_selector = selector:new(menu)
+require "iconsList"
+local icons, maps = getMapsIconsList()
+
return {
map_selector
:setPosition(width/2, 40)
@@ -15,9 +18,9 @@ return {
:setMargin(0)
:set("global", true)
:set("first", true)
- :set("list", require "maplist")
+ :set("list", maps)
:set("icons_i", love.graphics.newImage("assets/maps.png"))
- :set("icons_q", require "mapicons")
+ :set("icons_q", icons)
:set("shape", "panorama")
:init()
,
@@ -29,14 +32,14 @@ return {
end)
:set("active", function (self)
MAP = map_selector:getFullSelection(true)[1][1] -- please, don't kill me for this, kek
- self.parent:load("menuselect")
+ self.parent:open("select")
end)
,
button:new(menu)
:setText("Go back")
:setPosition(bx,117)
:set("active", function (self)
- self.parent:load("menumain")
+ self.parent:open("main")
end)
,
} \ No newline at end of file
diff --git a/config/menumain.lua b/config/menus/main.lua
index 50b3d56..236c011 100644
--- a/config/menumain.lua
+++ b/config/menus/main.lua
@@ -1,8 +1,8 @@
local menu = ...
-local button = require "button"
-local header = require "header"
-local element = require "element"
+local button = require "not.Button"
+local header = require "not.Header"
+local element = require "not.Element"
local width, height = love.graphics.getWidth()/getScale(), love.graphics.getHeight()/getScale()
local bx = width/2-29
@@ -14,7 +14,7 @@ return {
:setText("Start")
:setPosition(bx, 80)
:set("active", function (self)
- self.parent:load("menuhost")
+ self.parent:open("host")
end)
,
button:new(menu)
@@ -28,14 +28,14 @@ return {
:setText("Settings")
:setPosition(bx, 112)
:set("active", function (self)
- self.parent:load("menusettings")
+ self.parent:open("settings")
end)
,
button:new(menu)
:setText("Credits")
:setPosition(bx, 128)
:set("active", function (self)
- self.parent:load("menucredits")
+ self.parent:open("credits")
end)
,
button:new(menu)
diff --git a/config/menuselect.lua b/config/menus/select.lua
index 19f46ab..804b4eb 100644
--- a/config/menuselect.lua
+++ b/config/menus/select.lua
@@ -1,8 +1,8 @@
local menu = ...
-local button = require "button"
-local selector = require "selector"
-local element = require "element"
+local button = require "not.Button"
+local selector = require "not.Selector"
+local element = require "not.Element"
local width, height = love.graphics.getWidth()/getScale(), love.graphics.getHeight()/getScale()
local bx = width/2-29
@@ -10,15 +10,18 @@ local bx = width/2-29
local naut_selector = selector:new(menu)
local start_button = button:new(menu)
+require "iconsList"
+local nautsIcons, nautsList = getNautsIconsList()
+
return {
naut_selector
:setPosition(width/2,60)
:setMargin(8)
:setSize(32, 32)
- :set("list", require "nautslist")
+ :set("list", nautsList)
:set("global", false)
:set("icons_i", love.graphics.newImage("assets/portraits.png"))
- :set("icons_q", require "nautsicons")
+ :set("icons_q", nautsIcons)
:init()
,
start_button
@@ -41,7 +44,7 @@ return {
:setText("Go back")
:setPosition(bx,150)
:set("active", function (self)
- self.parent:load("menuhost")
+ self.parent:open("host")
end)
,
element:new(menu)
diff --git a/config/menusettings.lua b/config/menus/settings.lua
index 1631e4f..ae0403d 100644
--- a/config/menusettings.lua
+++ b/config/menus/settings.lua
@@ -1,8 +1,8 @@
local menu = ...
-local button = require "button"
-local selector = require "selector"
-local element = require "element"
+local button = require "not.Button"
+local selector = require "not.Selector"
+local element = require "not.Element"
local width, height = love.graphics.getWidth()/getRealScale(), love.graphics.getHeight()/getRealScale()
local bx = width/2-29
@@ -105,7 +105,7 @@ local a = {
:setText("Go back")
:setPosition(bx,144)
:set("active", function (self)
- self.parent:load("menumain")
+ self.parent:open("main")
end)
,
dimmer
diff --git a/config/nauts.lua b/config/nauts.lua
new file mode 100644
index 0000000..2eea71a
--- /dev/null
+++ b/config/nauts.lua
@@ -0,0 +1,40 @@
+-- List of characters with empty character included
+-- icons list is generated from this file
+return {
+ "empty", -- empty
+ "random", --random
+ "froggo", -- froggy
+ "cowboy", -- lonestar
+ "honic", -- leon
+ "gelato", -- scoop
+ "veno", -- gnaw
+ "lady", -- raelynn
+ "girl", -- ayla
+ "megoman", -- clunk
+ "brainos", -- voltar
+ "woman", -- coco
+ "bison", -- skolldir
+ "bobito", -- yuri
+ "slugzor", -- derpl
+ "capone", -- vinnie
+ "nemo", -- spike
+ "bug", -- genji
+ "calamari", -- swiggins
+ "quack", -- rocco
+ "scissors", -- ksenia
+ "link", -- ix
+ "marine", -- ted
+ "scooter", -- penny
+ "phonebooth", -- sentry
+ "weed", -- skree
+ "gummybear", -- nibbs
+ "gramps", -- yoolip
+ "biker", -- chucho
+ "vrooom", -- lux
+ "shutter", -- max
+ "disco", -- esc rocco
+ "yarr", -- ted pirate
+ "blblal", -- blabl zork
+ "kong", -- ronimo
+ "rock", -- rock
+}
diff --git a/config/sounds.lua b/config/sounds.lua
new file mode 100644
index 0000000..c30af16
--- /dev/null
+++ b/config/sounds.lua
@@ -0,0 +1,9 @@
+return {
+ love.sound.newSoundData("assets/sounds/death.ogg"),
+ love.sound.newSoundData("assets/sounds/hit.ogg"),
+ love.sound.newSoundData("assets/sounds/step.ogg"),
+ love.sound.newSoundData("assets/sounds/attack.ogg"),
+ love.sound.newSoundData("assets/sounds/cheer.ogg"),
+ love.sound.newSoundData("assets/sounds/jump.ogg"),
+ love.sound.newSoundData("assets/sounds/spawn.ogg"),
+} \ No newline at end of file