audio manager, moved stuff from (removed) enums into animations, tiledata. new sfx and music enum files
This commit is contained in:
20
main.lua
20
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user