O'Reilly logo

Sams Teach Yourself, Godot Engine Game Development in 24 Hours: The Official Guide to Godot 3.0 by George Marques, Ariel Manzur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 21. Viewports and Canvas

What You’ll Learn in This Hour:

• Viewport and it use cases

• Managing your rendering through Canvas Layers

• Mixing 2D and 3D scenes

• Adding a split-screen feature to a game

In this hour, we start playing with viewports. So far, we talked a lot about how to assemble different nodes types into a Scene Tree that represent our world. However, given we are not building a weather forecast simulation, we want to render things by displaying images on the user’s screen. This is what the viewport is about: opening a window into our world to the user.

While this seems a very generic role, this also means viewports allow us to implement a wide range of features:

• Create advanced GUI

• Mix multiple scenes into one

• Take ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required