mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 07:21:54 +08:00
3171c39915
实现游戏开始界面,包含难度选择滑块和开始按钮 修改游戏规则初始难度为10并调整掉落物品数量计算 添加游戏开始条件检查,确保运行时间超过3秒且没有敌人时显示制作饲料界面
18 lines
368 B
GDScript
18 lines
368 B
GDScript
extends Node2D
|
|
class_name WorldManager
|
|
|
|
static var rootNode: Node2D
|
|
static var tree: SceneTree
|
|
static var runningTime: int = 0
|
|
|
|
func _ready():
|
|
tree = get_tree()
|
|
rootNode = self
|
|
func _physics_process(delta):
|
|
runningTime += delta * 1000
|
|
if EntityBase.mobCount() == 0 and runningTime > 3000:
|
|
UIState.setPanel("MakeFeed")
|
|
|
|
static func getTime():
|
|
return runningTime
|