mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(多人游戏): 添加多人游戏功能及相关UI组件
- 在WorldManager中初始化ENetMultiplayerPeer - 移除EntityBase中冗余的peer初始化 - 添加多人游戏面板及相关输入控件 - 更新难度显示格式为范围表示 - 为主题添加LineEdit字体大小设置
This commit is contained in:
@@ -4,11 +4,13 @@ class_name WorldManager
|
||||
static var rootNode: Node2D
|
||||
static var tree: SceneTree
|
||||
static var runningTime: int = 0
|
||||
static var peer: ENetMultiplayerPeer
|
||||
|
||||
func _ready():
|
||||
tree = get_tree()
|
||||
rootNode = self
|
||||
ComponentManager.init()
|
||||
peer = ENetMultiplayerPeer.new()
|
||||
func _physics_process(delta):
|
||||
runningTime += delta * 1000
|
||||
if EntityBase.mobCount() == 0 and runningTime > 3000:
|
||||
|
||||
Reference in New Issue
Block a user