This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ixe:irpl:game:setcamerazoom [2025/01/07 17:58] – created - external edit 127.0.0.1 | ixe:irpl:game:setcamerazoom [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Description ===== | ===== Description ===== | ||
- | Sets the camera zoom. The zoom is the orthographic | + | Sets the camera zoom. The zoom is equal to half the vertical |
===== Examples ===== | ===== Examples ===== | ||
- | < | + | < |
+ | |||
+ | SetCameraZoom(256) | ||
+ | # This sets the viewport' | ||
+ | |||
+ | GetScreenSize -> | ||
+ | SetCameraZoom(< | ||
+ | # This sets the camera to a fixed resolution of 4 screen pixels per world pixel regardless of screen size | ||
</ | </ |