Coder Social home page Coder Social logo

gampleman / choicescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dfabulich/choicescript

1.0 3.0 0.0 14.96 MB

ChoiceScript is a language for developing multiple-choice games.

Home Page: http://www.choiceofgames.com/blog/choicescript-intro/

License: Other

JavaScript 99.10% CSS 0.90%

choicescript's Introduction

ChoiceScript

ChoiceScript is a small language written by Dan Fabulich for running multiple choice games.

This is a fork of that project that attempts to bring easier development (especially if you are from a Mac/Unix dev background) to the language.

Installation

Provided you have npm on your system, run:

$ npm install -g choicescript

That's it.

Usage

To create a new game simply run:

$ choicescript new MyAwesomeGame intro_scene,ending

This will create the following project in your current directory (you can omit intro_scene,ending, some sample vignettes will be generated for you):

MyAwesomeGame/
  |- game.js
  `- scenes/
      |- intro_scene.txt
      |- ending.txt
      `- choicescript_stats.txt

You can open up your folder and write your game. To run it in a browser use:

$ choicescript server

in the project directory. This will (by default) start your game at http://localhost:3030/.

To test that your game works you can use two types of automated testing:

$ choicescript quicktest
$ choicescript randomtest

This runs them both:

$ choicescript test 

Finally remember that you can get help on all the various command and options by typing:

$ choicescript -h

or for any command:

$ choicescript COMMAND -h

choicescript's People

Contributors

dfabulich avatar gampleman avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.