- 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
- Practical Ansible 2
- 傳感器技術(shù)實(shí)驗(yàn)教程
- Dreamweaver CS3網(wǎng)頁(yè)設(shè)計(jì)50例
- Expert AWS Development
- 電腦上網(wǎng)直通車
- Visual C# 2008開發(fā)技術(shù)詳解
- iClone 4.31 3D Animation Beginner's Guide
- OpenStack Cloud Computing Cookbook(Second Edition)
- Visual C++編程全能詞典
- 工業(yè)機(jī)器人應(yīng)用案例集錦
- Excel 2010函數(shù)與公式速查手冊(cè)
- C#求職寶典
- 工業(yè)機(jī)器人操作
- 算法設(shè)計(jì)與分析