Giter Site home page Giter Site logo

fpsgame's Introduction

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

fpsgame's People

Contributors

kailinymq avatar

Stargazers

Rework avatar Niuzetong avatar avocadomiss avatar  avatar  avatar

Watchers

 avatar

Forkers

littlesan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.