ludumdare37/game/story.coffee

52 lines
1.7 KiB
CoffeeScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

room "start",
before: (from) ->
if (!from)
"""
-- Только что звонили из клуба.
Приехали какие-то чмыри из администрации, нас отменяют.
"""
dsc: () -> """
### В машине
Рядом с вами сидит [Лёша](alexey) и #{Improv.gen("alexey")}
На переднем сидении [Марго](margo) #{Improv.gen("margo")}
Вы сидите на заднем сидении, за спиной водителя. [Катя](katie) #{Improv.gen("katie")}
Вы положили в карман дверцы [мобильный телефон.](phone)
За [окном машины](./_writer_window) проносится трасса.
#{Improv.gen("you")}
"""
writers:
window: () ->
salet.view.clearContent()
salet.here().entering()
return "<em>"+Improv.gen("window")+"</em>"
room "phone",
choices: "#call",
dsc: "Вы открываете список контактов. Кому бы позвонить…"
room "director",
tags: ["call"],
choices: "#director"
optionText: "Директор музыкального клуба"
dsc: """
— Алло? Анна Борисовна?
"""
dialogue "Попрощаться", "director", "call", """
— Спасибо. Созвонимся.
"""
# Virtual room to go around limitations
room "vstart",
tags: ["call"]
optionText: (from) ->
switch from
when "start" then "Осмотреться ещё раз"
when "phone" then "Отложить телефон"
else "Передумать"
enter: () ->
salet.goTo("start")