Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
y-lohse committed Oct 14, 2016
2 parents 0ade0fe + 3cf84ef commit 52839d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion engine/Glue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export class Glue{
import {Object as InkObject} from './Object';

export class Glue extends InkObject{
constructor(type){
super();
this.glueType = type;
}
get isLeft(){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "inkjs",
"version": "1.4.0",
"version": "1.4.1",
"description": "A javascript port of inkle's ink scripting language (http://www.inklestudios.com/ink/)",
"main": "dist/ink-es2015.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions test/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- <script src="deps/require.js"></script>-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-promise/3.2.2/es6-promise.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/1.0.0/fetch.min.js"></script>
<script src="../dist/ink.iife.js"></script>
<script src="../dist/ink-es2015.js"></script>
<script>
fetch('stories/test.ink.json')
.then(function(response){
Expand All @@ -14,7 +14,7 @@

function initStory(inkFile){
var s = new inkjs.Story(inkFile);
continueToNextChoice();
// continueToNextChoice();

function continueToNextChoice(){
while (s.canContinue){
Expand Down
5 changes: 4 additions & 1 deletion test/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ var gameSave;
continueToNextChoice();

function continueToNextChoice(){
if (!s.canContinue && s.currentChoices.length === 0) end();
if (!s.canContinue && s.currentChoices.length === 0){
end();
return;
}

while (s.canContinue){
console.log(s.Continue());
Expand Down

0 comments on commit 52839d1

Please sign in to comment.