Releases: britzl/defold-orthographic
Orthographic Camera API 2.10.2
FIX: Handle when window width and height is zero
Orthographic Camera API 2.10.1
FIX: Improved handling of window resize
Orthographic Camera API 2.10.0
NEW: Added camera.follow_offset(camera_id, offset)
NEW: Added check that the follow target exists. The camera module will log if the target doesn't exist.
NEW: Added separate example of camera bounds
CHANGE: Removed support for old message signature of camera.follow()
Orthographic Camera API 2.9.2
FIX: Handle the case where two cameras with the same id are registered and unregistered at the same time
Orthographic Camera API 2.9.1
CHANGE: Using camera.set_zoom() will now immediately update the zoom level so that a call to for instance camera.screen_to_world_bounds() immediately after a zoom change will return the proper values.
Orthographic Camera API 2.9.0
NEW: The camera can now be configured to immediately position itself on the target it is assigned to follow even when lerp is enabled.
camera.follow("/camera", "/target", { lerp = 0.1, immediate = true })
Or:
msg.post("/camera", "follow", { target = "/target", lerp = 0.1, immediate = true })
Orthographic Camera API 2.8.0
NEW: camera.world_to_screen() now takes an optional adjust mode. Useful when positioning gui nodes on world coordinates.
FIX: camera.project() didn't use current window dimensions
Orthographic Camera API 2.7.3
FIX: Removed deprecated call to render.draw_debug2d()
Orthographic Camera API 2.7.2
FIX: Don't require a callback function to be specified when calling camera.shake()
Orthographic Camera API 2.7.1
FIX: camera.follow() didn't work properly after changing from explicit arguments to options table