网络基础
权限(谁决定什么?)
本地与服务器检查
Player :: class : Player_Base {
ao_late_update :: method(dt: float) {
// 用于 gameplay UI 和输入(在服务器 + 本地客户端上运行)
if is_local_or_server() {
// draw_ability_button(this, Shoot_Ability, 0);
// 处理影响游戏状态的输入
// 移动由系统自动处理
}
// 用于纯粹的外观效果(仅在本地客户端上运行)
if is_local() {
// UI.text(..., "Waiting for host to start the game...");
// 粒子效果、装饰性 UI 等。
}
}
}客户端特有状态
多人游戏安全规则
调试网络问题
相关文档
最后更新于