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 revision Previous revision
en:guides:beginners:viewport_and_camera [2018/06/27 11:55 (15 months ago)]
sausage Rejigged to match init projects
en:guides:beginners:viewport_and_camera [2018/06/27 12:21 (15 months ago)] (current)
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: 2018/06/27 12:21 (15 months ago) by sausage