- Godot Engine Game Development Projects
- Chris Bradfield
- 215字
- 2021-06-18 18:51:30
Message label
Add a Label node to the scene and change its name to MessageLabel. This label will display the game's title, as well as Game Over when the game ends. This label should be centered on the game screen. You could drag it with the mouse, but to place UI elements precisely, you should use the Anchor properties.
Select View | Show Helpers to display pins that will help you see the anchor positions, then click on the Layout menu and select HCenter Wide:

The MessageLabel now spans the width of the screen and is centered vertically. The Text property in the Inspector sets what text the label displays. Set it to Coin Dash! and set Align and Valign to Center.
The default font for Label nodes is very small, so the next step is to assign a custom font. Scroll down to the Custom Fonts section in the Inspector and select New DynamicFont, as shown in the following screenshot:

Now, click on DynamicFont and you can adjust the font settings. From the FileSystem dock, drag the Kenney Bold.ttf font and drop it in the Font Data property. Set Size to 48, as shown in the following screenshot:

- Hands-On Deep Learning with Apache Spark
- 實時流計算系統設計與實現
- 數控銑削(加工中心)編程與加工
- 系統安裝與重裝
- 項目管理成功利器Project 2007全程解析
- 基于單片機的嵌入式工程開發詳解
- Learn CloudFormation
- Lightning Fast Animation in Element 3D
- 網絡布線與小型局域網搭建
- 西門子變頻器技術入門及實踐
- 工業機器人運動仿真編程實踐:基于Android和OpenGL
- MCGS嵌入版組態軟件應用教程
- 新編計算機圖形學
- R Machine Learning Projects
- 樂高創意機器人教程(中級 上冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)