Function playdate_graphics::set_draw_offset
source · pub fn set_draw_offset(dx: c_int, dy: c_int)
Expand description
Offsets the origin point for all drawing calls to x, y
(can be negative).
This is useful, for example, for centering a “camera” on a sprite that is moving around a world larger than the screen.
This function is shorthand for Graphics::set_draw_offset
,
using default ZST end-point.
Equivalent to sys::ffi::playdate_graphics::setDrawOffset
.