naming conventions act 2: the end
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
function stepGame()
|
||||
setCollisionFlags()
|
||||
if menu_type == "no" then
|
||||
for _, particle in pairs(LoadedParticles) do
|
||||
for _, particle in pairs(LoadedObjects.Particles) do
|
||||
particle:doLogic()
|
||||
end
|
||||
for _, enty in pairs(LoadedObjects.Entities) do
|
||||
@@ -16,12 +16,12 @@ function stepGame()
|
||||
enty:doPhysics()
|
||||
end
|
||||
|
||||
AnimateTiles()
|
||||
Camera:followPlayer(main_Player)
|
||||
--Camera:positionCenterAt(main_Player.pos.x, main_Player.pos.y)
|
||||
--camera:positionAt(main_Player.pos.x, main_Player.pos.y,game.width,game.height)
|
||||
animateTiles()
|
||||
Camera:followPlayer(main_player)
|
||||
--Camera:positionCenterAt(main_player.pos.x, main_player.pos.y)
|
||||
--camera:positionAt(main_player.pos.x, main_player.pos.y,game.width,game.height)
|
||||
|
||||
if Keybind:CheckPressed(Keybind.debug.debug) then
|
||||
if Keybind:checkPressed(Keybind.debug.debug) then
|
||||
if debug then
|
||||
debug = false
|
||||
debug_collision = true
|
||||
@@ -32,23 +32,23 @@ function stepGame()
|
||||
end
|
||||
end
|
||||
|
||||
if Keybind:CheckPressed(Keybind.debug.reposition) then
|
||||
if Keybind:checkPressed(Keybind.debug.reposition) then
|
||||
if not editor_mode then
|
||||
main_Player.pos.x, main_Player.pos.y = 16,-10
|
||||
main_player.pos.x, main_player.pos.y = 16,-10
|
||||
end
|
||||
end
|
||||
|
||||
if Keybind:CheckPressed(Keybind.debug.reload) then
|
||||
if Keybind:checkPressed(Keybind.debug.reload) then
|
||||
MenuClear()
|
||||
menu_type = "dialog"
|
||||
MenuInit("dialog",DialogSequence.Example)
|
||||
end
|
||||
|
||||
if Keybind:CheckPressed(Keybind.debug.editor) then
|
||||
if Keybind:checkPressed(Keybind.debug.editor) then
|
||||
editor_mode = true
|
||||
end
|
||||
|
||||
if Keybind:CheckPressed(Keybind.debug.recording) then
|
||||
if Keybind:checkPressed(Keybind.debug.recording) then
|
||||
if DemoRecording then
|
||||
Demo:endRecord()
|
||||
else
|
||||
@@ -56,7 +56,7 @@ function stepGame()
|
||||
end
|
||||
end
|
||||
|
||||
if Keybind:CheckPressed(Keybind.debug.playback) then
|
||||
if Keybind:checkPressed(Keybind.debug.playback) then
|
||||
if DemoPlayback then
|
||||
Demo:endPlayback()
|
||||
else
|
||||
@@ -88,7 +88,7 @@ function drawGame()
|
||||
endGameworldDraw()
|
||||
|
||||
-- hud
|
||||
textScale = 1
|
||||
text_size = 1
|
||||
|
||||
-- debug
|
||||
if debug then debugUI() end
|
||||
|
||||
Reference in New Issue
Block a user