This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:guides:beginners:viewport_and_camera [2020/08/19 12:15 (5 years ago)] – Viewport -> MainViewport to match the changes in init's template iarwain | en:guides:beginners:viewport_and_camera [2024/11/17 02:31 (5 months ago)] (current) – Fixes and alignment to newer orx. sausage | ||
---|---|---|---|
Line 14: | Line 14: | ||
Let's give our game a blue sky as a background, by adding the '' | Let's give our game a blue sky as a background, by adding the '' | ||
- | < | + | < |
[MainViewport] | [MainViewport] | ||
Camera | Camera | ||
Line 35: | Line 35: | ||
Let's change the screen width and height so that it makes working through the tutorial easier (and easier to take screenshots :) ): | Let's change the screen width and height so that it makes working through the tutorial easier (and easier to take screenshots :) ): | ||
- | < | + | < |
[MainCamera] | [MainCamera] | ||
FrustumWidth | FrustumWidth | ||
Line 44: | Line 44: | ||
</ | </ | ||
- | A frustum width and height does not have to be the same size as your screen, but for our game, we want it to be. So the '' | + | A frustum width and height does not have to be the same size as your screen, but for our game, we want it to be. So the '' |
<code ini> | <code ini> | ||
Line 69: | Line 69: | ||
Because the camera was specified in the '' | Because the camera was specified in the '' | ||
- | Final thing for this step is to name our game. This name will show in the window title. Set this with the '' | + | Final thing for this step is to name our game. This name will show in the window title. Set this with the '' |
- | < | + | < |
[Display] | [Display] | ||
ScreenWidth | ScreenWidth | ||
Line 77: | Line 77: | ||
Title = Platform Hero | Title = Platform Hero | ||
FullScreen | FullScreen | ||
+ | Decoration | ||
Smoothing | Smoothing | ||
VSync = true | VSync = true | ||
Line 86: | Line 87: | ||
[Display] | [Display] | ||
Title = Platform Hero (Debug) | Title = Platform Hero (Debug) | ||
- | ShowFPS | ||
</ | </ | ||