Giter VIP home page Giter VIP logo

text-adventure-game-js-engine's Introduction

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.

text-adventure-game-js-engine's People

Contributors

besnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

text-adventure-game-js-engine's Issues

package.json/ webpack.config.js

Hi, I found this repo and was interested in checking it out/ contributing. Do you have a package.json or webpack.config.js?

Natural Language Processing

I think adding Natural Language Processing is a necessary feature to allow for conversational game play. I researched some js browser libraries. Two that stand out are
- reText
- compromise

Processing language server side opens up the opportunity to use more robust tools but it complicates end user game creation and requires setting up a server. One way it could be implemented would be to pass user defined validation parameters to the server so that it has the information it needs to validate the input and return a response.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.