Skip to content

Instantly share code, notes, and snippets.

@kilbith
Created October 31, 2022 15:23
Show Gist options
  • Save kilbith/c58232fee8e3886fdf0c10c911701f4d to your computer and use it in GitHub Desktop.
Save kilbith/c58232fee8e3886fdf0c10c911701f4d to your computer and use it in GitHub Desktop.
cam1:set_viewport{x = 100, y = 50, w = 800, h = 600}
cam2:set_viewport{x = 2700, y = 1500, w = 800, h = 600}
player:attach_camera(cam1:get_id())
player:set_active_camera(cam1:get_id())
player:set_active_camera(cam2:get_id())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment