Andrea Rendine 07998376e7 Several changes
As some of them are related to each other, this commit involves a lot of updates.

* Autopause on blur. This is an idea I took from Gridland (!), if window loses focus the fight pauses (timed check courtesy of the enemy), and it restarts when the window has focus again (if the pause button is clicked, then the player must click again in order to resume).
* Delayed start for fights. This will allow players to read the description without the player attacking them. No way to cheat, buttons are not enabled. I used Events._LEAVE_COOLDOWN as cooldown time, not for laziness, but because I guess the two durations have the same purpose: to allow (force) the player to read stuff.
* Take everything and leave just by name. If the player can just take something, the text is "take all you can", if they can take everything but there are several options it's "take everything", if the option is only one the text is "take everything and X", where X is the verb of the only possible option (note: in the latter case, the button cools down together with the option itself).
* success/failure mechanics no longer relies upon try/catch, but on a simple mechanism: a variable taking a bool value, set to true when one of the end conditions happens. The precedence goes to the enemy (if the player kills and dies the fight is lost).
2016-02-17 01:53:21 +01:00
2016-02-15 21:04:02 +01:00
2015-02-14 17:14:22 -05:00
2016-02-17 01:53:21 +01:00
2014-11-11 08:52:09 -05:00
2014-11-12 11:54:52 -05:00
2015-02-14 17:14:22 -05:00
2015-06-13 17:33:33 -04:00
2013-07-03 07:56:13 -07:00
2015-04-16 10:17:20 -04:00
2013-07-04 15:21:49 -04:00
2015-11-09 18:36:55 -05:00
2015-12-30 03:25:03 -06:00

A Dark Room

"awake. head throbbing. vision blurry. come light the fire."

a minimalist text adventure game for your browser

Click to play

Available Languages
Chinese (Simplified) Chinese (Traditional) English French
German Greek Indonesian Italian
Japanese Korean Norwegian Polish
Portuguese Portuguese (Brazil) Russian Spanish
Swedish Thai Turkish Ukrainian
Vietnamese

or play the latest on GitHub

app store

S
Description
No description provided
Readme 404 MiB
Languages
JavaScript 92.3%
CSS 5.5%
HTML 1.9%
Python 0.3%