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

52 lines
1.7 KiB
CoffeeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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")