Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Godot Engine Game Development Projects

You're reading from   Godot Engine Game Development Projects Build five cross-platform 2D and 3D games with Godot 3.0

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher Packt
ISBN-13 9781788831505
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Chris Bradfield Chris Bradfield
Author Profile Icon Chris Bradfield
Chris Bradfield
Arrow right icon
View More author details
Toc

Title screen

The title screen is the first scene the player will see. When the player dies, the game will return to this scene and allow you to restart.

Scene setup

Start with a Control node and set the Layout to Full Rect.

Add a TextureRect. Set its Texture to res://assets/environment/layers/back.png, Layout to Full Rect, and Stretch Mode to Keep Aspect Covered.

Add another TextureRect, this time with the Texture using res://assets/environment/layers/middle.png and the Stretch Mode set to Tile. Drag the width of the rectangle until it's wider than the screen and arrange it so it covers the bottom half of the screen.

Next, add two Label nodes (Title and Message) and set their Custom Font settings using the same options...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image