2021-11-28 02:38:30 +00:00
|
|
|
-- animationsç
|
|
|
|
-- all these are linear animations, maybe in the future make proper animations?
|
2021-10-16 23:06:11 +00:00
|
|
|
animation = {
|
2021-10-22 16:23:05 +00:00
|
|
|
kupo = {
|
|
|
|
body = {
|
|
|
|
path = "assets/characters/kupo/kupo",
|
|
|
|
frames = 4,
|
|
|
|
speed = 1/8
|
|
|
|
},
|
|
|
|
bow = {
|
|
|
|
path = "assets/characters/kupo/kupo_bow",
|
|
|
|
frames = 6,
|
2021-10-24 23:41:40 +00:00
|
|
|
speed = 1/10
|
|
|
|
},
|
|
|
|
arrow = {
|
|
|
|
path = "assets/characters/kupo/kupo_arrow",
|
|
|
|
frames = 1,
|
|
|
|
speed = 1
|
2021-10-22 16:23:05 +00:00
|
|
|
}
|
|
|
|
},
|
2021-10-29 02:15:53 +00:00
|
|
|
moth_mask = {
|
2021-10-29 00:17:18 +00:00
|
|
|
idle = {
|
|
|
|
path = "assets/characters/nancy/moth_mask/idle",
|
|
|
|
frames = 4,
|
|
|
|
speed = 1/8
|
|
|
|
},
|
|
|
|
run = {
|
|
|
|
path = "assets/characters/nancy/moth_mask/run",
|
|
|
|
frames = 6,
|
|
|
|
speed = 1/8
|
|
|
|
},
|
|
|
|
fall = {
|
|
|
|
path = "assets/characters/nancy/moth_mask/fall",
|
|
|
|
frames = 3,
|
|
|
|
speed = 1/8
|
|
|
|
},
|
|
|
|
jump = {
|
|
|
|
path = "assets/characters/nancy/moth_mask/jump",
|
|
|
|
frames = 3,
|
|
|
|
speed = 1/8
|
|
|
|
}
|
|
|
|
},
|
2021-10-16 23:06:11 +00:00
|
|
|
nancy = {
|
|
|
|
idle = {
|
|
|
|
path = "assets/characters/nancy/idle",
|
|
|
|
frames = 4,
|
2021-10-22 16:23:05 +00:00
|
|
|
speed = 1/8
|
2021-10-16 23:06:11 +00:00
|
|
|
},
|
|
|
|
run = {
|
|
|
|
path = "assets/characters/nancy/run",
|
|
|
|
frames = 6,
|
2021-10-22 16:23:05 +00:00
|
|
|
speed = 1/8
|
2021-10-16 23:06:11 +00:00
|
|
|
},
|
|
|
|
fall = {
|
|
|
|
path = "assets/characters/nancy/fall",
|
|
|
|
frames = 3,
|
2021-10-22 16:23:05 +00:00
|
|
|
speed = 1/8
|
2021-10-16 23:06:11 +00:00
|
|
|
},
|
|
|
|
jump = {
|
|
|
|
path = "assets/characters/nancy/jump",
|
|
|
|
frames = 3,
|
2021-10-22 16:23:05 +00:00
|
|
|
speed = 1/8
|
2021-10-16 23:06:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-28 02:38:30 +00:00
|
|
|
-- animation loader
|
|
|
|
-- im unsure if this is too memory expensive (probably)
|
|
|
|
-- this should go elsewhere, maybe
|
2021-10-16 23:06:11 +00:00
|
|
|
for _, object in pairs(animation) do
|
|
|
|
for _, anim in pairs(object) do
|
2021-10-22 16:23:05 +00:00
|
|
|
anim.imgs = {}
|
2021-10-16 23:06:11 +00:00
|
|
|
for i = 1, anim.frames do
|
|
|
|
table.insert(anim.imgs,love.graphics.newImage(anim.path..tostring(i)..".png"))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
levelProperties = {
|
|
|
|
pos = {
|
|
|
|
x = 0,
|
|
|
|
y = 0
|
|
|
|
},
|
2021-11-28 02:38:30 +00:00
|
|
|
-- im unsure why there's offset at all, here
|
2021-10-16 23:06:11 +00:00
|
|
|
offset = {
|
|
|
|
x = 0,
|
|
|
|
y = 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-28 02:38:30 +00:00
|
|
|
tileset = {
|
|
|
|
bricks = love.graphics.newImage("assets/tileset/bricks.png"),
|
|
|
|
books = love.graphics.newImage("assets/tileset/bricks.png"),
|
|
|
|
library = love.graphics.newImage("assets/tileset/library.png")
|
|
|
|
}
|
|
|
|
|
2021-10-16 23:06:11 +00:00
|
|
|
tileProperties = {
|
|
|
|
width = 16,
|
|
|
|
height = 16,
|
2021-10-25 00:00:21 +00:00
|
|
|
scale = 1,
|
2021-10-16 23:06:11 +00:00
|
|
|
}
|