• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

besnik/text-adventure-game-js-engine: Text Adventure Game Javascript Engine to c ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

besnik/text-adventure-game-js-engine

开源软件地址:

https://github.com/besnik/text-adventure-game-js-engine

开源编程语言:

JavaScript 86.3%

开源软件介绍:

Text Adventure Game Javascript Engine

Goal of the project is to create game engine and editor with rich and fluent API to create text-like games using javascript and other modern technologies for new age.

Game Engine and Game Editor are written in plain old javascript. Both game and editor engines should run in any modern browser (or Node.js if needed).

If you are interested in latest progress check out /poc/engine/engine2/ directory for latest prototype.

Game and Editor APIs

Editor engine supports fluent API to setup a game:

// fallout 1 text version :-)

var l1 = editor.factory.location
    .new()
    .id("l1")
    .set_text("default", "You are standing infront of Vault13.")
    .set_text("modified", "Door to Vault13 are now closed.")
    .add_link("l2", "to Mutant Military Base")
    .build();

var l2 = editor.factory.location
    .new()
    .id("l2")
    .set_text("default", "After long journey you reached Mutant Military Base")
    .add_link("l1", "to Vault13")
    .build();

game = editor.new_game()
    .add_location(l1)
    .add_location(l2)
    .set_player_location(l1.id)
    .when_location_changed_to("l2").set_state_of_location("l1", "modified")
    .start_game();

The engine also supports methods like .to_json() and .from_json(data) to easily export and import game configuration.

Game Engine also offers rich set of fluent APIs to play game.

game.see();
game.go("l2");
game.see();
game.go("l1").see();
game.take('gun').talk('vic').use('door')

Thanks to APIs in both Game and Editor engines you can create any customized frontend experience using any modern framework of your choice. Web, Desktop or Mobile based.

The project will aim to provide native implementation for web and mobile UI using modern technologies like Angular, React, React Native.

Also one of the long term goals is to provide API to easily integrate with major cloud provides like AWS or Google Cloud to store game data (both game configurations and sessions) for even more interesting game experience.

Feedback

I'd love to get feedback on this project, design of engine, roadmap or any new ideas! Feel free to open ticket or reach out to me directly.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
HackerHansen/1v1.YEET-v2: An improved Cheat Engine hack for the game 1v1.lol发布时间:2022-06-07
下一篇:
maritim/LiteEngine: Lite 3D Game Engine发布时间:2022-06-07
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap