mirror of
https://gitlab.com/MaddoScientisto/cirnofarm.git
synced 2026-06-14 21:03:48 +00:00
Camera refactor
This commit is contained in:
parent
2507ba301c
commit
56fa9bce02
3 changed files with 102 additions and 88 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue