mirror of
https://gitlab.com/Oreolek/black_phone.git
synced 2024-06-17 07:30:57 +03:00
Bookcase rewrite, UI fixes
This commit is contained in:
parent
c1184ef6e1
commit
6fea69deb5
|
@ -41,6 +41,14 @@ money = (character, system, amount) ->
|
|||
code_can_input = (character) ->
|
||||
return character.sandbox.code.length < 8
|
||||
|
||||
code_print = (character) ->
|
||||
mask = 8 - character.sandbox.code.length
|
||||
retval = character.sandbox.code
|
||||
if mask > 0
|
||||
for i in [1..mask]
|
||||
retval += "_"
|
||||
return retval
|
||||
|
||||
code_input = (character, digit) ->
|
||||
if code_can_input(character)
|
||||
character.sandbox.code = character.sandbox.code + digit
|
||||
|
@ -119,6 +127,8 @@ situation "start",
|
|||
He went to the neighbor's door and met a closed door.
|
||||
Ronald was working inside, quietly walking around the apartment.
|
||||
He began the inspection from [the living room.](living-room)
|
||||
|
||||
<hr>
|
||||
"""
|
||||
|
||||
is_visited = (situation) ->
|
||||
|
|
|
@ -8,9 +8,7 @@ situation "living-room",
|
|||
content: """
|
||||
Ronald is standing in a dark room with a big #{textlink("window.", "window")}
|
||||
|
||||
The walls are covered with a dingy rose wallpaper.
|
||||
The room is very unnerving.
|
||||
Was it actually her home?
|
||||
#{textlink("The walls", "walls")} are covered with a dingy rose wallpaper.
|
||||
|
||||
#{textlink("A book stand", "bookcase")} is hanging above #{textlink("a television set.", "tv")}
|
||||
|
||||
|
@ -23,32 +21,45 @@ situation "living-room",
|
|||
else
|
||||
system.doLink("exitdoor")
|
||||
writers:
|
||||
window: "The moon is full today. It illuminates the flat, makes the things stand out in some weird angles."
|
||||
walls: """
|
||||
There are colorful photographs on the walls.
|
||||
A wooden house in a forest.
|
||||
A village on a mountaintop.
|
||||
A family sitting around a fire.
|
||||
A sunset burning in a vast ocean.
|
||||
A black monolith standing on sand dunes.
|
||||
"""
|
||||
window: "The moon is full today. It illuminates the apartment, makes the things stand out in some weird angles."
|
||||
bookcase: """
|
||||
Either Anastacia has a very conflicting taste in books, or she has no taste at all. Let's see...
|
||||
#{textlink("“Master and Margarita”,", "bulgakov")}
|
||||
#{textlink("“Breakfast at Tiffany's”,", "tiffanys")}
|
||||
#{textlink("The Soviet Encyclopedic Dictionary,", "dictionary")}
|
||||
#{textlink("“Grey”,", "grey")}
|
||||
#{textlink("“Soviet Black Magic: a Lost Art”,", "magic")}
|
||||
#{textlink("”My Dinner with Zane”,", "zane")}
|
||||
#{textlink("The Scientific Dictionary of Everything,", "dictionary")}
|
||||
#{textlink("“Silent Things”,", "silent")}
|
||||
#{textlink("”Also sprach Zarathustra”,", "zaratustra")}
|
||||
#{textlink("”Poker with sharks”,", "dontzova")}
|
||||
#{textlink("”Classic sauce. Culinary collection”", "culinary")}
|
||||
and #{textlink("The Bible.", "bible")}
|
||||
#{textlink("”Pepperoni poker”,", "pepper")}
|
||||
#{textlink("”Jazz sauce. Culinary collection”", "culinary")}
|
||||
and #{textlink("Classico.", "classico")}
|
||||
"""
|
||||
bulgakov: """
|
||||
“Master and Margarita” by Mikhail Bulgakov.
|
||||
A famous urban fantasy satire of Soviet nineteen-thirties.
|
||||
This is a cheap paperback edition, she read this at least a couple of times.
|
||||
The pages have dogged ears, and coffee stains too.
|
||||
Ronald can even see a hint of lipstick smearing the episode of Satan's dark magic variety show performance.
|
||||
magic: """
|
||||
”Soviet Black Magic: a Lost Art”
|
||||
|
||||
The author, who calls himself The Master, describes the lost art of Soviet Union *magija.*
|
||||
It's mostly about illusions.
|
||||
|
||||
This is a cheap paperback edition, but she read this at least a couple of times.
|
||||
The pages have dogged ears, and coffee stains too.
|
||||
Ronald can even see a hint of lipstick smearing the variety show retelling.
|
||||
"""
|
||||
tiffanys: """
|
||||
This book looks scrawny wedged between the fat dictionary and an epic novel.
|
||||
It looks rather new, the pages are still white and straight.
|
||||
Maybe she didn't catch the right moment to read this.. or maybe just forgot about it.
|
||||
zane: """
|
||||
A three-part romantic urban fantasy detective about a girl who solves murders while dining
|
||||
with her best werewolf friend in an Orient café.
|
||||
|
||||
It looks rather new, the pages are still white and straight.
|
||||
Maybe she didn't catch the right moment to read this.. or maybe just forgot about it.
|
||||
"""
|
||||
dictionary: "A big fat dictionary of everything, issued in 1989. Nobody reads every page of these. Ronald doubts Anastacia got to read at least one page."
|
||||
grey: "Fifty Shades of Grey, an unnecessary remake. Now from a psychopath's point of view. And she actually read that."
|
||||
dictionary: "A big fat Dictionary of Everything, issued in 1989. Nobody reads every page of these. Ronald doubts Anastacia got to read at least one page."
|
||||
silent: "Silent Things, a story where nothing speaks and nothing happens. *And she actually read that.*"
|
||||
zaratustra: (character, system) ->
|
||||
if character.sandbox.seen_zaratustra?
|
||||
"""
|
||||
|
@ -68,13 +79,12 @@ situation "living-room",
|
|||
No, of course not.
|
||||
Ronald opens the book and finds a stash of money inside.
|
||||
"""
|
||||
dontzova: """
|
||||
An "ironic detective" by Daria Dontzova about Evlampia Romanova, an amateur detective.
|
||||
The heroine (nicknamed as Lamp) plays harp and solves murders.
|
||||
It's a trash book filled with blatant product placement.
|
||||
pepper: """
|
||||
An "ironic woman detective" who plays harp and solves murders!
|
||||
It's a trash book filled with blatant product placement. Looks untouched.
|
||||
"""
|
||||
culinary: "An old culinary book. Nothing about it."
|
||||
bible: "An Orthodox Christian Bible, Old Testament. A decent hardcover edition. Bookmarked at the Sodom episode."
|
||||
classico: "A history of classical music, from the prehistoric times to the 1970s, a brand new edition with passages about psychedelic rock. The Bach section is bookmarked."
|
||||
tv: "An expensive 40-something inch TV standing on a stylish black stand. The room looks kinda small for that monster."
|
||||
|
||||
situation "bedroom",
|
||||
|
@ -317,7 +327,7 @@ safe_button = (number) ->
|
|||
after: (character, system) ->
|
||||
code_check(character, system)
|
||||
content: (character) -> """
|
||||
Ronald presses button #{number}. The display is #{character.sandbox.code} now.
|
||||
Ronald presses button #{number}. The display is #{code_print(character)} now.
|
||||
"""
|
||||
|
||||
safe_button(1)
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
<p>The game was written by <b><a href="http://en.oreolek.ru/" target="_blank">Oreolek.</a></b></p>
|
||||
<p>Approximate play time: five minutes.</p>
|
||||
<p>Written using <a href="http://undum.com" target="_blank">Undum</a> and <a href="http://sequitur.github.io/raconteur/" target="_blank">Raconteur</a>.</p>
|
||||
<p>Betatesting credit: <a href="https://verityvirtue.wordpress.com/">Verity Virtue</a></p>
|
||||
</div>
|
||||
<div id="footright">
|
||||
<a href="./LICENSE.txt"><img src="img/mit.png" alt="This program is licensed under MIT license."></a>
|
||||
|
|
|
@ -232,3 +232,7 @@ ul.options {
|
|||
color: grey;
|
||||
}
|
||||
}
|
||||
hr {
|
||||
width: 50%;
|
||||
border-color: $body-color;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue