naming convention for most stuff but not all
This commit is contained in:
32
main.lua
32
main.lua
@@ -26,7 +26,7 @@ function love.load()
|
||||
|
||||
require "code/require"
|
||||
|
||||
fps_history = AvgQueue:New(30,60)
|
||||
fps_history = AvgQueue:new(30,60)
|
||||
|
||||
|
||||
logPrint(loveInitLog)
|
||||
@@ -50,14 +50,14 @@ function love.load()
|
||||
memoryUsage, dtcount = 0, 0
|
||||
logPrint("mothback: "..collectgarbage("count").." kB, Loading time: "..os.clock().." seconds")
|
||||
|
||||
main_Player = Player:New(75,50)
|
||||
main_Player = Player:new(75,50)
|
||||
|
||||
--Kupo:New(100,150)
|
||||
--Kupo:New(300,150)
|
||||
HookAnchor:New(200,89)
|
||||
HookAnchor:New(400,89)
|
||||
Fairy:New(200,88)
|
||||
--CursedBook:New(180,68)
|
||||
--Kupo:new(100,150)
|
||||
--Kupo:new(300,150)
|
||||
HookAnchor:new(200,89)
|
||||
HookAnchor:new(400,89)
|
||||
Fairy:new(200,88)
|
||||
--CursedBook:new(180,68)
|
||||
|
||||
--love.audio.play(music.placeholder)
|
||||
end
|
||||
@@ -71,7 +71,7 @@ function love.update(dt)
|
||||
current_dt = dt
|
||||
game.secondsSinceStart = game.secondsSinceStart + dt
|
||||
|
||||
if DemoRecording or DemoPlayback then Demo:Step() end
|
||||
if DemoRecording or DemoPlayback then Demo:step() end
|
||||
|
||||
-- things per second
|
||||
dtcount = dtcount + dt
|
||||
@@ -100,16 +100,16 @@ function love.update(dt)
|
||||
|
||||
--editor
|
||||
if editor_mode then
|
||||
EditorStep()
|
||||
stepEditor()
|
||||
else
|
||||
GameStep()
|
||||
stepGame()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function love.wheelmoved(_, y)
|
||||
if editor_mode then
|
||||
EditorScroll(y)
|
||||
scrollEditor(y)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -123,16 +123,16 @@ function love.draw()
|
||||
end
|
||||
|
||||
if editor_mode then
|
||||
EditorDraw()
|
||||
drawEditor()
|
||||
else
|
||||
GameDraw()
|
||||
drawGame()
|
||||
end
|
||||
|
||||
if menu_type ~= nil then MenuDraw(menu_type) end
|
||||
|
||||
love.graphics.print(game.scale,10,40)
|
||||
|
||||
if DemoRecording or DemoPlayback then Demo:Draw() end
|
||||
|
||||
if DemoRecording or DemoPlayback then Demo:draw() end
|
||||
|
||||
frameDebugFlush()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user