Skip to content

开源FPS游戏项目,unity3D客户端,golang服务端

Notifications You must be signed in to change notification settings

KAILINYmq/FPSGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FPSGame v1.0

  • 通过Unity3D开发了TPS游戏,TPS游戏分为客户端和服务器两部分,客户端实现从UI登录界面到游戏大厅的创建,以及多名玩家同时进入到一个房间开始同一局游戏,游戏所有的连接方式均为TCP连接,一些玩家通过UI做出的操作均使用RPC调用服务端(比如登录注册)。服务器部分使用Golang语言进行开发,主要包含了连接的管理,以及对客户端发送过来的数据包进行处理比如是否进行转发操作,游戏逻辑的处理主要包含了玩家的登录注册请求和一些攻击伤害的服务端处理,数据持久化使用MongoDB数据库。

  • 目录

    • MyFPS 游戏客户端资源代码
    • goworld golang服务端代码
  • 调试运行 image image image

  • 游戏流程

image

  • c/s实现功能

image

Client unity3D(>=2020版本)

Server goworld

go install
goworld build examples/unity_demo
goworld start examples/unity_demo 
goworld status examples/unity_demo 
goworld stop examples/unity_demo

后端基于框架goworld开发:https://github.com/xiaonanln/goworld

About

开源FPS游戏项目,unity3D客户端,golang服务端

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published