官术网_书友最值得收藏!

Node setup

Create a new scene and add a CanvasLayer node named HUD. A CanvasLayer node allows you to draw your UI elements on a layer above the rest of the game, so that the information it displays doesn't get covered up by any game elements like the player or the coins.

Godot provides a wide variety of UI elements that may be used to create anything from indicators such as health bars to complex interfaces such as inventories. In fact, the Godot editor that you are using to make this game is built in Godot using these elements. The basic nodes for UI elements are extended from Control, and appear with green icons in the node list. To create your UI, you'll use various Control nodes to position, format, and display information. Here is what the HUD will look like when complete:

主站蜘蛛池模板: 乐亭县| 隆尧县| 乐山市| 枣庄市| 克什克腾旗| 潼关县| 巴彦淖尔市| 商水县| 城口县| 平塘县| 洱源县| 仪陇县| 修水县| 高清| 台中县| 逊克县| 巴林左旗| 炉霍县| 治县。| 涟源市| 大连市| 体育| 青神县| 清水河县| 桑日县| 乌兰察布市| 读书| 郧西县| 凉山| 清丰县| 乌什县| 苏尼特右旗| 昆山市| 彰化市| 卢湾区| 沂南县| 沙田区| 连城县| 都江堰市| 微博| 凌源市|