Camera refactor

This commit is contained in:
MaddoScientisto 2024-04-26 14:00:34 +02:00
commit 56fa9bce02
3 changed files with 102 additions and 88 deletions

View file

@ -62,7 +62,7 @@ tile_height = 16
function _init()
spawn_objects()
cirno.init()
cirnoInstance = cirno.init()
end
function _update()
@ -97,10 +97,15 @@ particles = {}
function _draw()
cls(0)
camera(cirnoInstance.x - 240, cirnoInstance.y - 135)
foreach(LAYERS, render_layer)
mouse_debug.draw(4, tile_width, tile_height)
weapons_manager.debug_draw()
end
function spawn_objects()