Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect chat adventure game engine to WeChaty #52

Open
dcsan opened this issue Feb 14, 2021 · 1 comment
Open

connect chat adventure game engine to WeChaty #52

dcsan opened this issue Feb 14, 2021 · 1 comment

Comments

@dcsan
Copy link

dcsan commented Feb 14, 2021

rel wechaty/wishlist#44

I wrote a game engine to deliver story like adventure games in a chat system.
It was initially written for slack and Discord.

It would be interesting to port this to support WeChat. That would allow people to play group "adventure games" in a chat session.

The engine uses a script format to describe the stories
https://github.com/dcsan/storydata

It has concepts for:

rooms
actors
items
inventory (things uses carry around)
all matching for sentences is done using Regex so we won't have the problems of systems like rivescript which uses a simplified regex pattern that doesn't work well for non-space languages like Chinese (or japanese)

The main runtime engine is all written in typescript
currently there is a "PAL" class - Platform Abstraction Layer- that already has adapters for Slack and Discord APIs. This project would mainly be to adapt this to wechaty input/output API for delivering games into groups

You can play some of the games built with this on Discord, but this maybe hard inside the GFW.
https://ten.rik.ai/asylum/

of course discord and slack have many features wechat does not, such as buttons or "clickable emoji reactions" so the adapter would have to deal with things like a "collector" or different ways to present menus. Wechat's main feature is that it's usable inside China.

Eventually we could make a web based editor for adding new stories, that would allow something like "fan fiction" stories to be created.

play BoPO game on discord here (direct link to our server)
https://discord.com/invite/Qgup6qU

a bit more info/writeup
https://dc.rik.ai/projects/ten

this type of engine could be used to deliver language learning games over wechat too. that was the original idea for this project:
https://dc.rik.ai/projects/comic-english

@dcsan
Copy link
Author

dcsan commented Feb 14, 2021

SOwC. #30

huan added a commit that referenced this issue Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant