1 Star 1 Fork 2

ButchQiuQiu / jforgame

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README_EN.md 3.24 KB
一键复制 编辑 原始数据 按行查看 历史
kingston-csj 提交于 2018-12-02 17:33 . 修改md文件

English | 中文

jforgame  

A lightweight online game framework written in Java. The project just shows some simple logic examples, the most imporant is to provide most of the base functions for rapid game development. You only need to focus on game logic then. The project use maven to manage jar dependency and build project

Module Directory

jforgame  
├── jforgame-common --base common service  
├── jforgame-admin  --game admin web tool  
├── jforgame-match  --cross matching service  
├── jforgame-net    --including io message codec, message request mapper, message thread model    
├── jforgame-orm   --use a lightweight tool for conversion between pojo and database asynchronously 
├── hotswap-agent  --support hotswap without restarting server
├── jforgame-server   
|    ├──  cache package, use guava cache to support players cache system   
|    ├──  db package, use a independent thread pool to save players' and common data asynchronously  
|    ├──  monitor package, to monitor game service,currently, we'll use jmx to manage game server    
|    ├──  listener package, event driver model  
|    ├──  doctor package, there are two ways for u to hotswap class  
|    ├──  game/gm pakcage, gm command for test  
|    ├──  game/admin package, http admin command for system  
|    ├──  redis package, cross-server communication, such as multiserver ranking list  
|    ├──  tools pakcage, little tool to support project's development  
|    └──  utils package, code utils    

Third Party

Name Purpose Official website
Mina nio socket framework http://mina.apache.org/
jprotobuf message codec https://github.com/jhunters/jprotobuf
Guava pojo memory cache https://github.com/google/guava
Jedis redis memory cache https://redis.io
quartz job task scheduler http://www.quartz-scheduler.org/
groovy class hotswap http://www.groovy-lang.org/  
proxool mysql data pool http://proxool.sourceforge.net/
slf4j+log4j logging system https://www.slf4j.org/
maven manage jar dependency, build project http://maven.apache.org/

QuickStart

  1. Use git to download codes, git clone https://github.com/kingston-csj/jforgame
  2. Import maven project to your ide
  3. Create new database named game_data_001 and import resources/game_data_001.sql into it. Similarly, create new databse named game_user_001 and import resources/game_user_001.sql into it
  4. Start game server,entrance is ServerStartup.java
  5. Start robot client,entrance is ClientStartup.java

Chinese wiki --> wiki

Contributing

We are always looking for people to join us. If you have an issue, feature request, or pull request, let us know!
Many thanks for your stars!!

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ButchQiuQiu/jforgame.git
git@gitee.com:ButchQiuQiu/jforgame.git
ButchQiuQiu
jforgame
jforgame
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891