Resolved #2: ink autocompiling
Make sure you have `inklecate` in your PATH and do an `npm install` before running Gulp.
This commit is contained in:
parent
0097a17186
commit
90aa4ce9c1
|
@ -10,6 +10,7 @@ uglify = require('gulp-uglify')
|
|||
buffer = require('vinyl-buffer')
|
||||
zip = require('gulp-zip')
|
||||
concat = require('gulp-concat')
|
||||
shell = require('gulp-shell')
|
||||
|
||||
reload = browserSync.reload
|
||||
|
||||
|
@ -30,7 +31,9 @@ audio = (target) ->
|
|||
# Ink files
|
||||
ink = (target) ->
|
||||
return () ->
|
||||
return gulp.src(['game/*.json']).pipe(gulp.dest(target))
|
||||
return gulp.src(['game/*.ink']).pipe(gulp.dest(target)).pipe(shell([
|
||||
'inklecate <%= file.path %>'
|
||||
]))
|
||||
|
||||
gulp.task('html', html('./build'))
|
||||
gulp.task('img', img('./build/img'))
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
- I looked at Monsieur Fogg
|
||||
* ... and I could contain myself no longer.
|
||||
'What is the purpose of our journey, Monsieur?'
|
||||
'A wager,' he replied.
|
||||
* * 'A wager!'[] I returned.
|
||||
He nodded.
|
||||
* * * 'But surely that is foolishness!'
|
||||
* * * 'A most serious matter then!'
|
||||
- - - He nodded again.
|
||||
* * * 'But can we win?'
|
||||
'That is what we will endeavour to find out,' he answered.
|
||||
* * * 'A modest wager, I trust?'
|
||||
'Twenty thousand pounds,' he replied, quite flatly.
|
||||
* * * I asked nothing further of him then[.], and after a final, polite cough, he offered nothing more to me. <>
|
||||
* * 'Ah[.'],' I replied, uncertain what I thought.
|
||||
- - After that, <>
|
||||
* ... but I said nothing[] and <>
|
||||
- we passed the day in silence.
|
||||
- -> END
|
|
@ -1 +0,0 @@
|
|||
{"inkVersion":11,"root":[[["^I looked at Monsieur Fogg","\n",["ev","str",{"f()":".^.s"},"/str","/ev",{"*":".^.c","flg":18},{"s":["^... and I could contain myself no longer.",null],"c":[{"f()":".^.^.s"},"\n","^'What is the purpose of our journey, Monsieur?'","\n","^'A wager,' he replied.","\n",[["ev","str",{"f()":".^.s"},"/str","/ev",{"*":".^.c","flg":18},{"s":["^'A wager!'",null],"c":[{"f()":".^.^.s"},"^ I returned.","\n","\n","^He nodded.","\n",[["ev","str",{"f()":".^.s"},"/str","/ev",{"*":".^.c","flg":18},{"s":["^'But surely that is foolishness!'",null],"c":[{"f()":".^.^.s"},"\n",{"->":".^.^.^.g-0"},{"#f":5}]}],["ev","str",{"f()":".^.s"},"/str","/ev",{"*":".^.c","flg":18},{"s":["^'A most serious matter then!'",null],"c":[{"f()":".^.^.s"},"\n",{"->":".^.^.^.g-0"},{"#f":5}]}],{"g-0":["^He nodded again.","\n",["ev","str",{"f()":".^.s"},"/str","/ev",{"*":".^.c","flg":18},{"s":["^'But can we win?'",null],"c":[{"f()":".^.^.s"},"\n","^'That is what we will endeavour to find out,' he answered.","\n",{"->":"0.g-0.2.c.6.g-0"},{"#f":5}]}],["ev","str",{"f()":".^.s"},"/str","/ev",{"*":".^.c","flg":18},{"s":["^'A modest wager, I trust?'",null],"c":[{"f()":".^.^.s"},"\n","^'Twenty thousand pounds,' he replied, quite flatly.","\n",{"->":"0.g-0.2.c.6.g-0"},{"#f":5}]}],["ev","str",{"f()":".^.s"},"/str","str","^.","/str","/ev",{"*":".^.c","flg":22},{"s":["^I asked nothing further of him then",null],"c":[{"f()":".^.^.s"},"^, and after a final, polite cough, he offered nothing more to me. ","<>","\n","\n",{"->":"0.g-0.2.c.6.g-0"},{"#f":5}]}],null]}],{"#f":5}]}],["ev","str",{"f()":".^.s"},"/str","str","^.'","/str","/ev",{"*":".^.c","flg":22},{"s":["^'Ah",null],"c":[{"f()":".^.^.s"},"^,' I replied, uncertain what I thought.","\n","\n",{"->":".^.^.^.g-0"},{"#f":5}]}],{"g-0":["^After that, ","<>","\n",{"->":"0.g-0.g-1"},null]}],{"#f":5}]}],["ev","str",{"f()":".^.s"},"/str","/ev",{"*":".^.c","flg":18},{"s":["^... but I said nothing",null],"c":[{"f()":".^.^.s"},"^ and ","<>","\n","\n",{"->":"0.g-0.g-1"},{"#f":5}]}],{"g-1":["^we passed the day in silence.","\n",["end",{"#n":"g-2"}],null],"#n":"g-0"}],null],"done",null]}
|
|
@ -18,6 +18,7 @@
|
|||
"vinyl-buffer": "^1.0.0",
|
||||
"vinyl-source-stream": "^1.1.0",
|
||||
"watchify": "^3.1.0",
|
||||
"inkjs": "^0.3.0"
|
||||
"inkjs": "^0.3.0",
|
||||
"gulp-shell": "^0.5.2"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue