Git Product home page Git Product logo

tank-game-server's Introduction

English | 简体中文

Ⅰ. The Fight of Tanks

  • zfoo demo project for the framework's game server
  • Single-server running code and distributed running code are almost identical
  • The upper can write games, the lower can write websites, single server, distributed, gateway, asynchronous call omnipotence, so it is called a universal RPC framework

Ⅱ. Environmental requirements

  • Project dependencies zfoo ,Use Maven install before running zfoo

  • JDK 11+

  • MongoDB 4.2

  • Zookeeper 3.6.1

Ⅲ. Single-server

  • admin provide game entry and background management system for web resource server

  • single for single-server game servers, single-boot is a single configured with spring boot automation, and the code is consistent

  • runs the test

1. Run the game in a browser using the server startup entry for websockets,ApplicationTest.startWebsocketApplication()
2. The server boot entry that uses TCP runs on the UNTIY species,ApplicationTest.startApplication()

Local game entry,http://localhost:9600/game/index.html
Local web management url,http://localhost:9600/

Ⅳ. Distributed servers

  • admin provide game entry and background management system for web resource server
  • gateway gateway
  • cache provides caching services
  • home provides basic business logic services
Local game entry,http://localhost:9600/game/index.html
Local web management url,http://localhost:9600/

Ⅴ. Deployment

Single-server deployment command:
sh /deploy.sh stopUpdateStart /usr/local/tank/admin/admin-1.0.jar /usr/local/tank/admin
sh /deploy.sh stopUpdateStart /usr/local/tank/single/single-1.0.jar /usr/local/tank/single


Distributed deployment commands:
sh /deploy.sh stopUpdateStart /usr/local/tank/admin/admin-1.0.jar /usr/local/tank/admin
sh /deploy.sh stopUpdateStart /usr/local/tank/cache/cache-1.0.jar /usr/local/tank/cache
sh /deploy.sh stopUpdateStart /usr/local/tank/gateway/gateway-1.0.jar /usr/local/tank/gateway
sh /deploy.sh stopUpdateStart /usr/local/tank/home/home-1.0.jar /usr/local/tank/home

Ⅵ. Screenshots of the game

Image text Image text Image text Image text Image text Image text

Ⅵ. Screenshot of the background system

Image text Image text Image text Image text Image text Image text

tank-game-server's People

Contributors

godotg avatar qq564139153 avatar 37sir avatar 132982jianan avatar meiwei666 avatar

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.