Comments (4)
你好,感谢你的关注,在 minotaur 里基本大多数功能都是可以拿出来单独使用的,大多数的内容目前都有中文的注释,相关文档也可以在 https://pkg.go.dev/github.com/kercylan98/minotaur 查询到。
关于你提到的基础例子,我将在近期考虑实现并新增,感谢你的提出。
- 扑克类游戏,目前在
game/poker
包中提供了大量的用于扑克牌玩法的函数,包括了牌型检查、牌堆、最优牌型组合等功能,也提供了很多内置的常见牌型检查函数。但是很遗憾,目前缺少范例测试,不过我将会开始补充,由于现在更新进度很快,或许很快就能看到。 - 麻将类游戏,迄今为止其实还没有考虑过麻将类游戏的实现,不过麻将类游戏主要也是各种牌型的组合,或许扑克类的
game/poker
包应该也能解决?不过应该可以将这类牌型、组合的内容抽离到单独的包里做成通用功能。 - 战斗类,这是目前这个仓库比较缺乏的内容,由于战斗类型多种多样,而且涉及面广泛,我也一直在考虑该怎样实现会比较合适,目前能够涉及到完整的战斗系统的实现暂时没有,不过一些相关的包应该能帮助到你:
- 基于 2D 的 AOI 实现
game/aoi
- A* 算法的寻路包
utils/geometry/astar
- 网格寻路
utils/geometry/navmesh
- 2D 服务端移动
component/components/moving2d.go
- 基于 2D 的 AOI 实现
补充:
- poker 包局限性比较大,不再建议使用,转而推荐 utils/combination
- 牌堆相关的实现可以使用 utils/deck
from minotaur.
目前我创建了另一个仓库:https://github.com/kercylan98/minotaur-example ,在这个仓库中当前简单的实现了基于 WebSocket 的基础服务端,使用 Protobuf 作为通讯协议,包含了三个基础协议,心跳、获取服务器事件和登录的简单实现。后续完整用例我也将继续添加在该仓库中。
from minotaur.
斗地主相关逻辑 https://github.com/kercylan98/minotaur-example/blob/master/game/services/landlords/landlords.go
我认为麻将与斗地主应该类似,而战斗方面。这个需要较为详细的需求
from minotaur.
关于牌型的检测、生成可以参考以下包的测试用例:
https://github.com/kercylan98/minotaur/tree/master/utils/combination
回合制切换的实现可参考:
https://github.com/kercylan98/minotaur-example/blob/master/game/services/landlords/landlords.go
from minotaur.
Related Issues (11)
- issues try
- Fix code scanning alert - Incorrect conversion between integer types
- Fix code scanning alert - Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
- Fix code scanning alert - Incorrect conversion between integer types
- 关于item和actor的问题 HOT 3
- taskType 初始化写漏了 HOT 1
- 请教一下关于复杂任务如何配置 HOT 7
- README 上 websocket 例子 需要修改 HOT 2
- readme 中 计时器 部分 server.WithTicker() 缺1个参数. HOT 1
- 关于新版复杂任务的配置问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minotaur.