audio manager, moved stuff from (removed) enums into animations, tiledata. new sfx and music enum files

This commit is contained in:
lustlion
2022-02-08 17:04:36 +01:00
parent cbcf90de2d
commit 2ce41d541f
9 changed files with 215 additions and 152 deletions

View File

@@ -50,21 +50,25 @@ function love.load()
language = "ENG"
LocaleLoad(language)
main_Player = Player:New(75,50)
--Kupo:New(100,150)
--Kupo:New(300,150)
Decoration:New(200,89,animation.decoration.candelabra,80)
Fairy:New(200,88)
--CursedBook:New(180,68)
gravity = 0.2
-- Debug and log stuff
memoryUsage, dtcount = 0, 0
logPrint("mothback: "..collectgarbage("count").." kB, Loading time: "..os.clock().." seconds")
main_Player = Player:New(75,50)
--Kupo:New(100,150)
--Kupo:New(300,150)
Decoration:New(200,89,animation.decoration.candelabra,80)
Fairy:New(200,88)
--CursedBook:New(180,68)
love.audio.play(music.placeholder)
end
function love.update(dt)
-- audio update
love.audio.update()
-- fps counter
if fps_second >= 1 then
fps_second = fps_second - 1