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

作为 React 包引入 #511

Open
linonetwo opened this issue Jul 13, 2024 · 0 comments
Open

作为 React 包引入 #511

linonetwo opened this issue Jul 13, 2024 · 0 comments

Comments

@linonetwo
Copy link

我之前打算在 Tiddlywiki 里写游戏,但后来发现实在太大了,现在改为用 React 写单独的游戏应用。

希望能通过 npm 的方式安装 WebGAL,在过剧情时作为一个 React 组件使用,在过完剧情后就打开别的玩法了。剧本和进度信息通过 props 传入,通过 onChange 获得最新值,由外部的存档管理器来管理。

相比于为原生 JS 生态而只导出不含 React 和 Pixi 的 Core,这相当于导出 React 生态可用的 WebGAL-Stage,作为其它游戏的一个叙事 Stage 使用了。

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