- Godot Engine Game Development Projects
- Chris Bradfield
- 97字
- 2021-06-18 18:51:29
Main script
Add a script to the Main node (use the Empty template) and add the following variables:
extends Node
export (PackedScene) var Coin
export (int) var playtime
var level
var score
var time_left
var screensize
var playing = false
The Coin and Playtime properties will now appear in the Inspector when you click on Main. Drag Coin.tscn from the FileSystem panel and drop it in the Coin property. Set Playtime to 30 (this is the amount of time the game will last). The remaining variables will be used later in the code.
推薦閱讀
- Microsoft Dynamics CRM Customization Essentials
- R Data Mining
- 來吧!帶你玩轉Excel VBA
- 現代機械運動控制技術
- 大數據處理平臺
- 傳感器與物聯網技術
- 統計學習理論與方法:R語言版
- INSTANT Heat Maps in R:How-to
- 零起點學西門子S7-200 PLC
- Linux Shell編程從初學到精通
- Hands-On Business Intelligence with Qlik Sense
- Deep Learning Essentials
- 新世紀Photoshop CS6中文版應用教程
- 傳感技術基礎與技能實訓
- Java Deep Learning Projects