Skip to content

Commit

Permalink
update:从主仓库迁出examples
Browse files Browse the repository at this point in the history
  • Loading branch information
phantacix committed Sep 7, 2024
1 parent c8d6db0 commit bf7b62c
Show file tree
Hide file tree
Showing 171 changed files with 31 additions and 37,799 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
![cherry tag](https://img.shields.io/github/v/tag/cherry-game/cherry)

- 这是一款分布式的golang游戏服务器框架
- 基于golang + nats.io + pomelo protocol技术构建
- 基于golang + actor model技术构建
- 它具备高性能、可伸缩、分布式、协程分组管理等特点。并且上手简单、易学
- 让开发者更多的关注游戏业务,高效完成功能实现
- 文档陆续补充中,欢迎加入一起建设框架
- 文档陆续补充中,欢迎加入一起建设项目

新接触 Cherry 的朋友,建议从 [示例](#示例) 开始。
新接触`cherry`的朋友,建议从 [示例](#示例) 开始。

## 新增功能

Expand All @@ -24,22 +24,25 @@

## 示例

### 多节点精简版聊天室(❤推荐)
### 单节点精简版聊天室(❤推荐)

本示例适合刚接触 Cherry 的朋友用于熟悉 Cherry 架构,具备的特性如下:
本示例适合刚接触`cherry`的朋友,用于熟悉项目

具备如下特性:
- 实现网页客户端,构建http server
- 选择websocket作为连接器
- 选择json做为通信格式
- 实现创建房间
- 实现发送消息
- 实现广播消息

源码位于 [examples/demo_chat](examples/demo_chat) 目录,详情请前往 [环境安装、配置、启动文档](examples/demo_chat/README.md)
开发环境配置请参考[env-setup.md](https://github.com/cherry-game/cherry/blob/master/_docs/env-setup.md)
源码位于[examples/demo_chat](https://github.com/cherry-game/examples/tree/master/demo_chat)仓库


### 多节点分布式游戏示例(❤强烈推荐)

本示例集群适合作为大部分游戏服务端的基础框架,开发者们可在此示例基础上发展出自己的游戏服务端方案
本示例集群适合作为大部分游戏服务端的基础框架,开发者们可在此示例基础上构建出自己的游戏服务端方案

特性如下:

Expand All @@ -51,7 +54,8 @@
- 选择 master 作为发现服务节点
- 实现部份基础功能(区服列表、多 SDK 帐号体系、帐号注册、帐号登录、创建角色、角色登录)

源码位于 [examples/demo_game_cluster](examples/demo_game_cluster) 目录,详情请前往 [环境安装、配置、启动文档](examples/demo_game_cluster/README.md)
开发环境配置请参考[env-setup.md](https://github.com/cherry-game/cherry/blob/master/_docs/env-setup.md)
源码位于[examples/demo_cluster](https://github.com/cherry-game/examples/tree/master/demo_cluster)仓库

## 核心功能

Expand Down
2 changes: 1 addition & 1 deletion components/cron/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cherry-game/cherry/components/cron
go 1.18

require (
github.com/cherry-game/cherry v1.3.13
github.com/cherry-game/cherry v1.3.14
github.com/robfig/cron/v3 v3.0.1
)

Expand Down
2 changes: 1 addition & 1 deletion components/data-config/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cherry-game/cherry/components/data-config
go 1.18

require (
github.com/cherry-game/cherry v1.3.13
github.com/cherry-game/cherry v1.3.14
github.com/go-redis/redis/v8 v8.11.5
github.com/json-iterator/go v1.1.12
github.com/radovskyb/watcher v1.0.7
Expand Down
2 changes: 1 addition & 1 deletion components/etcd/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cherry-game/cherry/components/etcd
go 1.18

require (
github.com/cherry-game/cherry v1.3.13
github.com/cherry-game/cherry v1.3.14
github.com/json-iterator/go v1.1.12
go.etcd.io/etcd/api/v3 v3.5.9
go.etcd.io/etcd/client/v3 v3.5.9
Expand Down
2 changes: 1 addition & 1 deletion components/gin/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cherry-game/cherry/components/gin
go 1.18

require (
github.com/cherry-game/cherry v1.3.13
github.com/cherry-game/cherry v1.3.14
github.com/gin-gonic/gin v1.9.1
)

Expand Down
2 changes: 1 addition & 1 deletion components/gops/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cherry-game/cherry/components/gops
go 1.18

require (
github.com/cherry-game/cherry v1.3.13
github.com/cherry-game/cherry v1.3.14
github.com/google/gops v0.3.28
)

Expand Down
2 changes: 1 addition & 1 deletion components/gorm/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cherry-game/cherry/components/gorm
go 1.18

require (
github.com/cherry-game/cherry v1.3.13
github.com/cherry-game/cherry v1.3.14
gorm.io/driver/mysql v1.5.2
gorm.io/gorm v1.25.5
)
Expand Down
2 changes: 1 addition & 1 deletion components/mongo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cherry-game/cherry/components/mongo
go 1.18

require (
github.com/cherry-game/cherry v1.3.13
github.com/cherry-game/cherry v1.3.14
go.mongodb.org/mongo-driver v1.12.1
)

Expand Down
2 changes: 1 addition & 1 deletion const/const.go
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

const (
version = "1.3.13"
version = "1.3.14"
)

var logo = `
Expand Down
7 changes: 0 additions & 7 deletions examples/.gitignore

This file was deleted.

201 changes: 0 additions & 201 deletions examples/3rd/nats-server/LICENSE

This file was deleted.

Loading

0 comments on commit bf7b62c

Please sign in to comment.