mirror of
https://github.com/Oreolek/shooter.git
synced 2024-06-26 03:30:46 +03:00
More English translations
This commit is contained in:
parent
9540ee3dea
commit
ec64aa0fbc
|
@ -30,16 +30,15 @@ way_to = (content, ref) -> a(content).class('way').ref(ref)
|
|||
textlink = (content, ref) -> a(content).once().writer(ref)
|
||||
textcycle = (content, ref) -> a(content).replacer(ref).class("cycle").id(ref).toString()
|
||||
# Cycling link. It's implied there can be only one per situation.
|
||||
# Also it saves the current index in the window object, which is not okay for longer games because no saving.
|
||||
# You are welcome to improve this code.
|
||||
cycle = (obj) ->
|
||||
cycle = (obj, character) ->
|
||||
responses = obj.cycle_gallery()
|
||||
window.cycle_index ?= []
|
||||
window.cycle_index[obj.name] ?= 0
|
||||
if window.cycle_index[obj.name] == responses.length
|
||||
window.cycle_index[obj.name] = 0
|
||||
response = responses[window.cycle_index[obj.name]]
|
||||
window.cycle_index[obj.name]++
|
||||
character.sandbox.cycle_index ?= [] # initialize with empty array
|
||||
character.sandbox.cycle_index[obj.name] ?= 0 # initialize with 0
|
||||
response = responses[character.sandbox.cycle_index[obj.name]]
|
||||
character.sandbox.cycle_index[obj.name]++
|
||||
if character.sandbox.cycle_index[obj.name] == responses.length
|
||||
character.sandbox.cycle_index[obj.name] = 0
|
||||
return textcycle(response, 'cyclewriter')
|
||||
writemd = (system, text) ->
|
||||
if typeof text is Function
|
||||
|
@ -48,11 +47,11 @@ writemd = (system, text) ->
|
|||
|
||||
situation "start",
|
||||
cycle_gallery: () -> "christine".l()
|
||||
content: () ->
|
||||
return "start".l()(cycle(this))
|
||||
content: (character) ->
|
||||
return "start".l()(cycle(this, character))
|
||||
choices: ["#start"],
|
||||
writers:
|
||||
cyclewriter: () -> cycle(this)
|
||||
cyclewriter: (character) -> cycle(this, character)
|
||||
|
||||
is_visited = (situation) ->
|
||||
situations = undum.game.situations[situation]
|
||||
|
|
|
@ -6,129 +6,74 @@ BUT it also means that every phrase should be a separate situation.
|
|||
###
|
||||
|
||||
situation 'answer1',
|
||||
optionText: "Милая, я просто за тебя беспокоюсь.",
|
||||
optionText: "answer1_option".l(),
|
||||
choices: ['#answer1'],
|
||||
tags: "start",
|
||||
canView: () -> !is_visited(this.name),
|
||||
content: """
|
||||
-- Милая, я просто за тебя беспокоюсь.
|
||||
|
||||
-- Почему?
|
||||
Я не на работе.
|
||||
Ты не на работе.
|
||||
Вокруг дома стоит надёжная защита.
|
||||
"""
|
||||
content: "answer1".l()
|
||||
|
||||
situation 'branch1-a',
|
||||
optionText: "Защиты недостаточно.",
|
||||
optionText: "branch1_a_option".l()
|
||||
choices: ['#start'],
|
||||
tags: "answer1",
|
||||
canView: () -> !is_visited(this.name),
|
||||
content: """
|
||||
-- Защиты недостаточно. -- я кладу руку на рукоять пистолета.
|
||||
|
||||
-- Антоша, это -- наш романтический вечер. Ты можешь оставить пистолет в доме.
|
||||
"""
|
||||
content: "branch1_a".l()
|
||||
|
||||
situation 'branch1-b',
|
||||
optionText: "Я всегда держу его при себе.",
|
||||
optionText: "branch1_b_option".l()
|
||||
choices: ['#start'],
|
||||
tags: "answer1",
|
||||
canView: () -> !is_visited(this.name),
|
||||
content: """
|
||||
-- Я всегда держу его при себе. Это нормально.
|
||||
|
||||
-- Антон!
|
||||
Я три недели ждала, когда у нас наконец-то будет вечер на двоих.
|
||||
Положи пистолет и расслабься.
|
||||
"""
|
||||
content: "branch1_b".l()
|
||||
|
||||
situation 'dlg-intro-finale1',
|
||||
optionText: "Я и так расслаблен.",
|
||||
optionText: "dlg_finale1_option".l()
|
||||
choices: ['#stage3'],
|
||||
tags: "answer2",
|
||||
canView: () -> !is_visited(this.name),
|
||||
content: () -> """
|
||||
-- О чём ты говоришь?
|
||||
Я и так расслаблен.
|
||||
Смотри, какой красивый закат, эти #{this.writers.birds}.
|
||||
Только ты и я, как ты и хотела.
|
||||
|
||||
-- Да, но я не хочу ни в кого стрелять!
|
||||
""",
|
||||
content: (character) -> "dlg_finale1".l(cycle(this, character))
|
||||
cycle_gallery: () -> "dlg_finale1_cycle".l()
|
||||
writers:
|
||||
birds: textcycle("птички поют", "flowers"),
|
||||
flowers: textcycle("цветочки растут", "trees"),
|
||||
trees: textcycle("деревья так похожи на магические руны", "birds")
|
||||
cyclewriter: (character) -> cycle(this, character)
|
||||
|
||||
situation 'answer2',
|
||||
optionText: "Я его даже не трогаю.",
|
||||
optionText: "answer2_option".l()
|
||||
choices: ['#answer2', "#stage2"],
|
||||
tags: "start",
|
||||
canView: () -> !is_visited(this.name),
|
||||
content: """
|
||||
-- Я его даже не трогаю.
|
||||
|
||||
-- Да, но ты держишь его рядом.
|
||||
Ты не можешь расслабиться, я чувствую.
|
||||
"""
|
||||
content: "answer2".l()
|
||||
|
||||
situation 'lazy',
|
||||
optionText: "Я просто не вынимал его из кобуры.",
|
||||
optionText: "lazy_option".l()
|
||||
choices: ['#lazy', "#stage2"],
|
||||
canView: () -> !is_visited(this.name),
|
||||
tags: "start",
|
||||
content: """
|
||||
-- Я просто не вынимал его из кобуры.
|
||||
Какое это имеет значение?
|
||||
|
||||
-- Только не говори мне, что ты и на предохранитель поленился его поставить.
|
||||
"""
|
||||
content: "lazy".l()
|
||||
|
||||
situation 'lazy2',
|
||||
optionText: "Конечно, он на предохранителе.",
|
||||
optionText: "lazy2_option".l()
|
||||
choices: ['#stage2'],
|
||||
tags: "lazy",
|
||||
canView: () -> !is_visited(this.name),
|
||||
content: """
|
||||
-- Конечно, он на предохранителе.
|
||||
Видишь, ничего страшного. -- я вытащил пистолет, чтобы показать ей.
|
||||
|
||||
-- Антон!
|
||||
Ты вообще меня слушаешь?!
|
||||
Не трогай пистолет!
|
||||
|
||||
Я со вздохом возращаю оружие в кобуру.
|
||||
"""
|
||||
content: "lazy2".l()
|
||||
|
||||
situation 'lazy3',
|
||||
optionText: "Я не собираюсь стрелять.",
|
||||
optionText: "lazy3_option".l()
|
||||
choices: ['#stage3'],
|
||||
tags: "stage2",
|
||||
canView: () -> !is_visited(this.name),
|
||||
content: """
|
||||
-- Я не собираюсь стрелять.
|
||||
|
||||
-- Тогда зачем ты его взял?!
|
||||
"""
|
||||
content: "lazy3".l()
|
||||
|
||||
situation 'dlg-intro-finale2',
|
||||
optionText: "Это просто мой пистолет.",
|
||||
optionText: "dlg_finale2_option".l()
|
||||
choices: ['#intro'],
|
||||
tags: "stage3",
|
||||
canView: () -> !is_visited(this.name),
|
||||
content: """
|
||||
-- Это просто мой пистолет.
|
||||
Лучше посмотри на эти розовые облака в небе.
|
||||
Вон то похоже на зайчика, правда?
|
||||
|
||||
-- О Великие Боги, у тебя и патроны с собой?!
|
||||
""",
|
||||
content: "dlg_finale2".l()
|
||||
|
||||
situation 'endintro',
|
||||
optionText: "Объясниться и помириться"
|
||||
content: () ->
|
||||
return "endintro".l()
|
||||
optionText: "endintro_option".l()
|
||||
content: "endintro".l()
|
||||
choices: ["#shoot"],
|
||||
tags: "intro"
|
||||
|
||||
|
@ -139,8 +84,9 @@ situation "pacifist",
|
|||
content: (character, system) ->
|
||||
return "pacifist".l()
|
||||
|
||||
# An alternative cycle implementation.
|
||||
situation "shoot_pacifist",
|
||||
optionText: "Убить пацифиста",
|
||||
optionText: "shoot_pacifist_option".l()
|
||||
tags: "pacifist",
|
||||
choices: ["#shoot"],
|
||||
before: (character, system) ->
|
||||
|
@ -154,7 +100,7 @@ situation "shoot_pacifist",
|
|||
arm: textcycle("arm".l(), "head")
|
||||
|
||||
situation "spare_pacifist",
|
||||
optionText: "Опустить оружие",
|
||||
optionText: "spare_pacifist_option".l()
|
||||
tags: "pacifist",
|
||||
before: (character, system) ->
|
||||
character.sandbox.shot_pacifist = 0
|
||||
|
@ -195,7 +141,7 @@ situation "finale",
|
|||
|
||||
situation "stats",
|
||||
tags: "finale",
|
||||
optionText: "Ваш счёт",
|
||||
optionText: "stats_option".l()
|
||||
content: """
|
||||
#{"stats".l()}
|
||||
|
||||
|
|
|
@ -157,6 +157,7 @@ module.exports.language =
|
|||
"looks far ahead, thinking about something",
|
||||
"hugging me tight, sinking her nails in my shoulder",
|
||||
]
|
||||
answer1_option: "Honey, I'm just worried about you."
|
||||
finale:
|
||||
"""
|
||||
Ко мне подходит Кристина.
|
||||
|
@ -348,3 +349,83 @@ module.exports.language =
|
|||
He walks over the motionless body and looks at me with his evil eyes.
|
||||
I guess the battle continues.
|
||||
"""
|
||||
answer1: """
|
||||
„Honey, I'm just worried about you.”
|
||||
|
||||
„Why?
|
||||
I'm not on a job.
|
||||
You're not on a job.
|
||||
There's a good protection around the house.”
|
||||
"""
|
||||
branch1_a_option: "It's not enough."
|
||||
branch1_a: """
|
||||
„It's not enough. -- I place my hand on pistol's grip.”
|
||||
|
||||
„Tony, it's our romantic evening.
|
||||
You can leave the gun at home.”
|
||||
"""
|
||||
branch1_b_option: "I always keep it on me."
|
||||
branch1_b: """
|
||||
„I always keep it on me. It's okay.“
|
||||
|
||||
„Tony!
|
||||
I have been waiting for three weeks to have an evening for two.
|
||||
Put the gun down and relax.“
|
||||
"""
|
||||
stats_option: "Your score"
|
||||
dlg_finale1_option: "I'm relaxed already."
|
||||
dlg_finale1: (link) -> """
|
||||
“What are you talking about?
|
||||
I'm relaxed already.
|
||||
Look at this beautiful sunset, these #{link}.
|
||||
Only you and me, just like you wanted.”
|
||||
|
||||
“Yes, but I don't want to shoot anybody!”
|
||||
"""
|
||||
dlg_finale1_cycle: [
|
||||
"birds chirping",
|
||||
"flowers blooming",
|
||||
"trees standing so similar to magic runes",
|
||||
]
|
||||
answer2_option: "I'm not even touching it."
|
||||
answer2: """
|
||||
“I'm not even touching it.”
|
||||
|
||||
“Yes, but you keep it close.
|
||||
You can't relax, I feel it.”
|
||||
"""
|
||||
lazy_option: "I just didn't take it out the holster."
|
||||
lazy: """
|
||||
“I just was too lazy to take it out the holster.
|
||||
What difference does it make?”
|
||||
|
||||
“Don't tell me you were too lazy to put the safety on.”
|
||||
"""
|
||||
shoot_pacifist_option: "Shoot pacifist"
|
||||
spare_pacifist_option: "Put down the gun"
|
||||
endintro_option: "Explain and reconcile"
|
||||
lazy2_option: "Sure, it's on safety."
|
||||
lazy2: """
|
||||
“Sure, it's on safety.
|
||||
See, nothing to fear.” -- I took out the pistol to show her.
|
||||
|
||||
“Tony!
|
||||
Are you even listening to me?!
|
||||
Don't touch the gun!”
|
||||
|
||||
Sighing, I holster the gun.
|
||||
"""
|
||||
lazy3_option: "I don't intend to shoot."
|
||||
lazy3: """
|
||||
“I don't intend to shoot.”
|
||||
|
||||
“Why did you even took it then?”
|
||||
"""
|
||||
dlg_finale2_option: "It's just my gun."
|
||||
dlg_finale2: """
|
||||
“It's just my gun.
|
||||
Just look at these pink clouds in the sky.
|
||||
This one looks like a rabbit, isn't it?”
|
||||
|
||||
“Oh the Great Gods, is that live cartridge on you?!”
|
||||
"""
|
||||
|
|
|
@ -292,3 +292,83 @@ module.exports.language =
|
|||
Я точно не хочу впускать его на задний двор своего дома.
|
||||
"""
|
||||
shoot_boss: "Успокоить титана свинцом"
|
||||
answer1_option: "Милая, я просто за тебя беспокоюсь."
|
||||
answer1: """
|
||||
-- Милая, я просто за тебя беспокоюсь.
|
||||
|
||||
-- Почему?
|
||||
Я не на работе.
|
||||
Ты не на работе.
|
||||
Вокруг дома стоит надёжная защита.
|
||||
"""
|
||||
branch1_a_option: "Защиты недостаточно."
|
||||
branch1_a: """
|
||||
-- Защиты недостаточно. -- я кладу руку на рукоять пистолета.
|
||||
|
||||
-- Антоша, это -- наш романтический вечер. Ты можешь оставить пистолет в доме.
|
||||
"""
|
||||
branch1_b_option: "Я всегда держу его при себе."
|
||||
branch1_b: """
|
||||
-- Я всегда держу его при себе. Это нормально.
|
||||
|
||||
-- Антон!
|
||||
Я три недели ждала, когда у нас наконец-то будет вечер на двоих.
|
||||
Положи пистолет и расслабься.
|
||||
"""
|
||||
stats_option: "Ваш счёт"
|
||||
dlg_finale1_option: "Я и так расслаблен."
|
||||
dlg_finale1: (link) -> """
|
||||
-- О чём ты говоришь?
|
||||
Я и так расслаблен.
|
||||
Смотри, какой красивый закат, эти #{link}.
|
||||
Только ты и я, как ты и хотела.
|
||||
|
||||
-- Да, но я не хочу ни в кого стрелять!
|
||||
"""
|
||||
dlg_finale1_cycle: [
|
||||
"птички поют",
|
||||
"цветочки растут",
|
||||
"деревья так похожи на магические руны",
|
||||
]
|
||||
answer2_option: "Я его даже не трогаю."
|
||||
answer2: """
|
||||
-- Я его даже не трогаю.
|
||||
|
||||
-- Да, но ты держишь его рядом.
|
||||
Ты не можешь расслабиться, я чувствую.
|
||||
"""
|
||||
lazy_option: "Я просто не вынимал его из кобуры."
|
||||
lazy: """
|
||||
-- Я просто не вынимал его из кобуры.
|
||||
Какое это имеет значение?
|
||||
|
||||
-- Только не говори мне, что ты и на предохранитель поленился его поставить.
|
||||
"""
|
||||
shoot_pacifist_option: "Убить пацифиста"
|
||||
spare_pacifist_option: "Опустить оружие"
|
||||
endintro_option: "Объясниться и помириться"
|
||||
lazy2_option: "Конечно, он на предохранителе."
|
||||
lazy2: """
|
||||
-- Конечно, он на предохранителе.
|
||||
Видишь, ничего страшного. -- я вытащил пистолет, чтобы показать ей.
|
||||
|
||||
-- Антон!
|
||||
Ты вообще меня слушаешь?!
|
||||
Не трогай пистолет!
|
||||
|
||||
Я со вздохом возращаю оружие в кобуру.
|
||||
"""
|
||||
lazy3_option: "Я не собираюсь стрелять."
|
||||
lazy3: """
|
||||
-- Я не собираюсь стрелять.
|
||||
|
||||
-- Тогда зачем ты его взял?!
|
||||
"""
|
||||
dlg_finale2_option: "Это просто мой пистолет."
|
||||
dlg_finale2: """
|
||||
-- Это просто мой пистолет.
|
||||
Лучше посмотри на эти розовые облака в небе.
|
||||
Вон то похоже на зайчика, правда?
|
||||
|
||||
-- О Великие Боги, у тебя и патроны с собой?!
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue