User Tools

Site Tools


en:guides:beginners:viewport_and_camera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:guides:beginners:viewport_and_camera [2018/06/27 04:55 (6 years ago)] – Rejigged to match init projects sausageen:guides:beginners:viewport_and_camera [2018/06/27 05:21 (6 years ago)] sausage
Line 50: Line 50:
 ScreenWidth     = @MainCamera.FrustumWidth ScreenWidth     = @MainCamera.FrustumWidth
 ScreenHeight    = @MainCamera.FrustumHeight ScreenHeight    = @MainCamera.FrustumHeight
 +...
 </code> </code>
  
Line 68: Line 69:
 Because the camera was specified in the ''[Viewport]'' section, we do not need to create a camera in code. Because the camera was specified in the ''[Viewport]'' section, we do not need to create a camera in code.
  
-Final thing for this step is to name our game. This name will show in the window title. Set this with the Title property in the ''[Display]'' section:+Final thing for this step is to name our game. This name will show in the window title. Set this with the ''Title'' property in the ''[Display]'' section. Also while you are here, set the ''Smoothing'' to false:
  
 <code=ini> <code=ini>
Line 76: Line 77:
 Title           = Platform Hero Title           = Platform Hero
 FullScreen      = false FullScreen      = false
-Smoothing       true+Smoothing       false
 VSync           = true VSync           = true
 +</code>
 +
 +This will change the name in the window title, but only if you are compiling in Release mode. You'll most likely be compiling in Debug mode right now. So you'll also need to change the title in the ''MyGamed.ini'' file:
 +
 +<code ini>
 +[Display]
 +Title           = Platform Hero (Debug)
 +ShowFPS         = true
 </code> </code>
  
en/guides/beginners/viewport_and_camera.txt · Last modified: 2020/08/19 12:15 (4 years ago) by iarwain