项目逻辑进一步抽象的可能性 #3
darwintree
started this conversation in
General
Replies: 0 comments 2 replies
-
|
@ourandream @diyigemt 架构看看 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
各位好,我这边在维护一个偶像大师闪耀色彩的剧情查看器 https://github.com/darwintree/sc-viewer-v2 。
目前集成了剧情的索引、预览、翻译与推送等功能。剧情编辑器也在我这边的计划之中(目前只做了简单的命令行封装 https://github.com/darwintree/sc-story-editor )。
我这边的技术栈与你们这边的非常相似,我也看到你们这边有开发剧情编辑器的计划。有没有可能通过增加适配层,进一步抽象项目的逻辑,将数据、渲染与逻辑控制完全解耦:
数据(任何游戏都需要完成,避不开)<->适配层1(易于测试,不涉及复杂工作)<->逻辑层(可跨游戏复用)<->适配层2(向逻辑层暴露统一接口,另一端适配渲染层)<->渲染(可使用某一游戏的渲染代码,也可以重写)
通过这样的方式让其他游戏(其他手游,甚至是主机游戏/gal等)复用相似工作,避免重复造轮子
Beta Was this translation helpful? Give feedback.
All reactions