Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ iphone/www
*/.DS_Store
.DS_Store
*.svn
randomtest-output.txt
randomtest-output.txt
node_modules/**
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# ChoiceScript #

[ChoiceScript](http://www.choiceofgames.com/blog/choicescript-intro/) 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](http://npmjs.org/) 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

7 changes: 0 additions & 7 deletions archive.bat

This file was deleted.

18 changes: 0 additions & 18 deletions autotest.bat

This file was deleted.

18 changes: 0 additions & 18 deletions autotestdebug.bat

This file was deleted.

164 changes: 0 additions & 164 deletions build.xml

This file was deleted.

4 changes: 3 additions & 1 deletion editor/embeddable-autotester.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function autotester(sceneText, nav, sceneName) {
function log(msg) {
if (typeof(console) != "undefined") console.log(msg)
if(!program.quiet) {
if (typeof(console) != "undefined") console.log(msg)
}
}
var coverage = [];

Expand Down
27 changes: 0 additions & 27 deletions generator.js

This file was deleted.

Binary file removed js.jar
Binary file not shown.
Loading