- Godot Engine Game Development Projects
- Chris Bradfield
- 190字
- 2021-06-18 18:51:29
Node setup
Create a new scene and add a node named Main. To add the player to the scene, click the Instance button and select your saved Player.tscn:

Now, add the following nodes as children of Main, naming them as follows:
- TextureRect (named Background)—for the background image
- Node (named CoinContainer)—to hold all the coins
- Position2D (named PlayerStart)—to mark the starting position of the Player
- Timer (named GameTimer)—to track the time limit
Make sure Background is the first child node. Nodes are drawn in the order shown, so the background will be behind the player in this case. Add an image to the Background node by dragging the grass.jpg image from the assets folder into the Texture property. Change the Stretch Mode to Tile and then click Layout | Full Rect to size the frame to the size of the screen, as shown in the following screenshot:

Set the Position of the PlayerStart node to (240, 350).
Your scene layout should look like this:

推薦閱讀
- Oracle SOA Governance 11g Implementation
- Go Machine Learning Projects
- 程序設(shè)計缺陷分析與實踐
- Effective DevOps with AWS
- 離散事件系統(tǒng)建模與仿真
- 工業(yè)機(jī)器人現(xiàn)場編程(FANUC)
- AutoCAD 2012中文版繪圖設(shè)計高手速成
- C語言寶典
- 嵌入式操作系統(tǒng)
- 運動控制系統(tǒng)應(yīng)用與實踐
- 面向?qū)ο蟪绦蛟O(shè)計綜合實踐
- 計算機(jī)組成與操作系統(tǒng)
- Mastering Text Mining with R
- 21天學(xué)通Linux嵌入式開發(fā)
- AVR單片機(jī)工程師是怎樣煉成的