wechaty / summer

Summer of Wechaty (SoW) is a program for connecting students with the Wechaty community for coding & tech writing.
https://wechaty.github.io/summer-of-wechaty
Apache License 2.0
31 stars 12 forks source link

connect chat adventure game engine to WeChaty #52

Open dcsan opened 3 years ago

dcsan commented 3 years ago

rel https://github.com/wechaty/wishlist/issues/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 commented 3 years ago

SOwC. https://github.com/wechaty/summer-of-wechaty/issues/30