1
0
Fork 0
mirror of https://gitlab.com/Oreolek/ludumdare37.git synced 2024-04-27 06:39:48 +03:00

Translations and loading fixes

This commit is contained in:
Alexander Yakovlev 2016-12-12 15:19:49 +07:00
parent 669eead43a
commit f094f7676c
4 changed files with 67 additions and 60 deletions

View file

@ -76,7 +76,7 @@ gulp.task('concatCoffee', () ->
return gulp.src([ return gulp.src([
'./game/begin.coffee', './game/begin.coffee',
'./game/story.coffee', './game/story.coffee',
]).pipe(concat('./main.coffee')).pipe(gulp.dest('./build/game')) ]).pipe(concat('./main.coffee')).pipe(gulp.dest('./build/game'))
) )
@ -133,10 +133,10 @@ distBundler = browserify({
gulp.task('coffee-dist', ['concatCoffee'], () -> gulp.task('coffee-dist', ['concatCoffee'], () ->
return distBundler.bundle() return distBundler.bundle()
.pipe(source('bundle.js')) .pipe(source('bundle.js'))
.pipe(buffer()) .pipe(buffer())
.pipe(uglify()) .pipe(uglify())
.on('error', gutil.log) .on('error', gutil.log)
.pipe(gulp.dest('./dist/game')) .pipe(gulp.dest('./dist/game'))
) )
gulp.task('dist', [ gulp.task('dist', [
@ -146,7 +146,11 @@ gulp.task('dist', [
'coffee-dist', 'coffee-dist',
'audio-dist', 'audio-dist',
'legal-dist' 'legal-dist'
]) ], () ->
return gulp.src([
'./build/game/procgen/*.json'
]).pipe(gulp.dest("./dist/game/procgen"))
)
gulp.task('zip', ['dist'], () -> gulp.task('zip', ['dist'], () ->
return gulp.src('dist/**') return gulp.src('dist/**')

View file

@ -1,7 +1,8 @@
require('babel-polyfill')
require('salet')
dialogue = require('../../lib/dialogue.coffee') dialogue = require('../../lib/dialogue.coffee')
phrase = require('../../lib/phrase.coffee') phrase = require('../../lib/phrase.coffee')
#oneOf = require('../../lib/oneOf.coffee') #oneOf = require('../../lib/oneOf.coffee')
require('salet')
ImprovEngine = require('improv') ImprovEngine = require('improv')
Improv = {} Improv = {}
@ -11,6 +12,7 @@ i18n.push("en", require('../../game/language/en.coffee'))
salet.game_id = "0ee0825d-0c71-4a08-bfe5-730e575df26d" salet.game_id = "0ee0825d-0c71-4a08-bfe5-730e575df26d"
salet.game_version = "1.0" salet.game_version = "1.0"
$.holdReady( true )
$.getJSON('game/procgen/'+i18n.lang+'.json', (data) -> $.getJSON('game/procgen/'+i18n.lang+'.json', (data) ->
Improv = new ImprovEngine(data, { Improv = new ImprovEngine(data, {
filters: [ filters: [

View file

@ -199,99 +199,99 @@ module.exports =
""" """
book: "There's {{a paperback book}} on the table." book: "There's {{a paperback book}} on the table."
book_floor: "There's {{a paperback book}} on the floor." book_floor: "There's {{a paperback book}} on the floor."
book_act: "Напрягшись, вы берёте книгу и роняете её со стола." book_act: "Straining, you pick up a book and drop it on the table."
book_act_twice: "Книга только упала со столика, а вы и так устали." book_act_twice: "The book just fell off the table, and you are so tired."
reset_book: "Алексей замечает книгу на полу и нагибается, чтобы её поднять." reset_book: "Alex notices a book on the floor and bends down to pick it up."
reset_book_ends: "Алексей поднимается и кладёт книгу на место." reset_book_ends: "Alex gets up and puts the book back."
reset_window: """ reset_window: """
Маргарита замечает открытое окно и тянется, чтобы его закрыть. Margarita notices the open window and stretches to close it.
""" """
reset_window_ends: """ reset_window_ends: """
Маргарита закрывает окно, спускается и занимает своё прежнее место. Margarita closes the window down and took his former place.
""" """
blood_dsc: "Вы замечаете на полу {{красное пятно.}}" blood_dsc: "You notice {{a red spot}} on the floor."
blood_act: "Кровь. Вы не очень удивлены." blood_act: "It's blood. You are not very surprised."
ferret_dsc: "{{Ручной хорёк}} Маргариты внимательно смотрит на вас." ferret_dsc: "Margarita's {{ferret}} is attentively looking at you."
ferret_dsc_end: "{{Ручной хорёк}} Юля смотрит на вас из тёмного угла." ferret_dsc_end: "{{The ferret}} Yulia is watching you from a dark corner."
ferret_act: """ ferret_act: """
Маргарита не выпускает хорька из рук, но маленькому прохвосту не терпится Margarita does not let the ferret out of hand, but the little scoundrel can not wait to
побегать. run.
""" """
ferret_one_margo: """ ferret_one_margo: """
Хорёк пускается в бег, но внимательная хозяйка не даёт ему убежать. The ferret embarks on a run, but the attentive hostess does not allow him to escape.
""" """
ferret_one_alexey: """ ferret_one_alexey: """
Хорёк пускается в бег, но ваш сосед замечает его и быстро ловит. The ferret embarks on a run, but your neighbor sees it and quickly catches.
""" """
ferret_run: """ ferret_run: """
Когда оба человека отвлекаются, хорёк пулей летит прочь с полки. When both people are distracted, the ferret bullets flying off the shelf.
Он прячется в дальнем углу, где вам хорошо его видно. He's hiding in the far corner, where you can see it well.
Когда Маргарита обнаруживает пропажу, она поднимает крик. When Margaret discovers the loss, it raises a cry.
Караул! Юля! Юля! Она же может быть где угодно в вагоне! - Help! Julia! Julia! She could be anywhere in the car!
Видимо, хорёк был девочкой. Apparently, the ferret was a girl.
Хозяйка уходит, а через некоторое время возвращается вместе с проводником Hostess goes, but after a while returned with a guide
вагона. wagon.
Я точно говорю, она не могла далеко убежать. - I do speak, she could not run away.
Давайте поищем сначала в вашем купе. Let's look for first in your compartment.
Как раз тут вам и нужен проводник. Just then you and I need a guide.
Как же теперь его нейтрализовать? How now to neutralize it ...?
""" """
conductor: """ conductor: """
{{Проводник}} осматривает пол. {{The conductor}} is examining the floor.
Он не двигается с места, поэтому не может заметить хорька. He does not move, so you may not notice the ferret.
""" """
table: """ table: """
{{Раскладной столик}} собран, чтобы открыть пол. {{The folding table}} is assembled to open the floor.
""" """
table_act: """ table_act: """
Вы опускаете столик. You push down the table.
Вы не в силах поставить его на защёлку, поэтому он тут же складывается обратно. You can not put it on the latch, so he immediately folds back.
""" """
alexey_final: """ alexey_final: """
Вы опускаете столик прямо на голову Алексею. You push the table down right on Alex's head.
Он тихо охает и складывается на полу. He groans softly and piled up on the floor.
""" """
alexey_final_dsc: "На полу под столиком лежит бесчувственный спортсмен." alexey_final_dsc: "On the floor, under the table is insensitive sportsman."
margo_final: """ margo_final: """
Проводник прыгает, чтобы поймать хорька, но случайно задевает The conductor jumps to catch a ferret, but accidentally hurt
девушку, которая пытается дотянуться до защёлки окна. the girl who is trying to reach out to the latch of the window.
Девушка падает и ударяется головой о стену. Она лежит без сознания. She falls and hits his head against the wall. She is unconscious.
""" """
margo_final_dsc: """ margo_final_dsc: """
На полке лежит бессознательная любительница редких животных. On a shelf lying unconscious lover of rare animals.
""" """
ferret_whereto: "Вы можете выманить хорька, но куда?" ferret_whereto: "You can lure the ferret out, but where to?"
ferret_close: "Приманить к столу" ferret_close: "Lure to the table"
ferret_close_dsc: """ ferret_close_dsc: """
Хорёк делает два прыжка к столу, но тут же разворачивается и прячется обратно. The ferret makes two jumps to the table, but then turns around and hides back.
""" """
ferret_far: "Приманить на середину купе" ferret_far: "Lure in the middle of the compartment"
ferret_far_dsc: """ ferret_far_dsc: """
Хорёк прыгает на середину купе, делает круг и возвращается в тёмный угол, The ferret jumps in the middle of the coupe, makes a circle and comes back in a dark corner,
так никем и не замеченный. so anyone and not seen.
""" """
ferret_blood: "Приманить к луже крови" ferret_blood: "Lure to the pool of blood"
ferret_blood_dsc: """ ferret_blood_dsc: """
Хорёк не хочет бежать так далеко там слишком много людей. The ferret does not want to run so far - there are too many people.
""" """
conductor_examine: """ conductor_examine: """
Злобный кондуктор, который убил вас, но ещё не знает, что вы стали призраком Angry guard who killed you, but does not know that you have become a ghost
и теперь навечно будете обитать в таинственном четырёхместном купе поезда Москва-Владивосток. and now you will forever dwell in the mysterious four-bed compartment of a train from Moscow to Vladivostok.
И если ваш план удастся, то он останется здесь с вами. And if your plan succeeds, it will remain here with you.
""" """
final: """ final: """
Ага, вот ты где! - Ah, there you are!
Проводник идёт к хорьку, но вместо этого подскальзывается на луже из вашей крови. The conductor goes to the ferret, but instead slips on a puddle of your blood.
Он падает, и ударяется головой об угол полки. Если он выживет, это будет ещё долго болеть. He falls and hits his head on the corner of the shelf. If it survives, it will be a long time to be ill.
Месть совершена. Вы чувствуете, что можете выйти из поезда. Revenge is done. You feel that you can get off the train.
### КОНЕЦ ### END
""" """

View file

@ -7,6 +7,7 @@
}, },
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"babel-polyfill": "^6.20.0",
"bootstrap": "^4.0.0-alpha.2", "bootstrap": "^4.0.0-alpha.2",
"browser-sync": "^2.18.2", "browser-sync": "^2.18.2",
"browserify": "^13.1.1", "browserify": "^13.1.1",