Skip to content

Commit

Permalink
feat: init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hellohejinyu committed Dec 13, 2020
0 parents commit ce136b1
Show file tree
Hide file tree
Showing 227 changed files with 103,891 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Default
* text=auto

# Binary files so don't modify
*.ico binary
*.png binary
*.jpg binary
*.xlsx binary

# Hide vendor and translation files from language statistics
lang/* linguist-documentation
lib/* linguist-vendored
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.settings
*.TODO
*.mo
*.swp
.idea
lang/.DS_Store
.DS_Store
node_modules
5 changes: 5 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"eqnull": true,
"sub": true,
"multistr": true
}
376 changes: 376 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
A Dark Room
===========
> "awake. head throbbing. vision blurry. come light the fire."
a minimalist text adventure game for your browser

[Click to play](http://adarkroom.doublespeakgames.com)

<table>
<tr><th colspan=4>Available Languages</tr>
<tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=zh_cn">Chinese (Simplified)</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=zh_tw">Chinese (Traditional)</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=en">English</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=fr">French</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=de">German</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=el">Greek</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=id">Indonesian</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=it">Italian</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=ja">Japanese</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=ko">Korean</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=nb">Norwegian</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=pl">Polish</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=pt">Portuguese</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=pt_br">Portuguese (Brazil)</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=ru">Russian</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=es">Spanish</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=sv">Swedish</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=th">Thai</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=tr">Turkish</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=uk">Ukrainian</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=vi">Vietnamese</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=lt_LT">Lithuanian</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=gl">Galician</a></td>
</tr>
</table>

or play the latest on [GitHub](http://doublespeakgames.github.io/adarkroom)

<a href="https://itunes.apple.com/us/app/a-dark-room/id736683061"><img src="http://i.imgur.com/DMdnDYq.png" height="50"></a>
<a href="https://play.google.com/store/apps/details?id=com.yourcompany.adarkroom"><img src="http://i.imgur.com/bLWWj4r.png" height="50"></a>
Binary file added audio/asteroid-hit-1.flac
Binary file not shown.
Binary file added audio/asteroid-hit-2.flac
Binary file not shown.
Binary file added audio/asteroid-hit-3.flac
Binary file not shown.
Binary file added audio/asteroid-hit-4.flac
Binary file not shown.
Binary file added audio/asteroid-hit-5.flac
Binary file not shown.
Binary file added audio/asteroid-hit-6.flac
Binary file not shown.
Binary file added audio/asteroid-hit-7.flac
Binary file not shown.
Binary file added audio/asteroid-hit-8.flac
Binary file not shown.
Binary file added audio/build.flac
Binary file not shown.
Binary file added audio/buy.flac
Binary file not shown.
Binary file added audio/check-traps.flac
Binary file not shown.
Binary file added audio/craft.flac
Binary file not shown.
Binary file added audio/crash.flac
Binary file not shown.
Binary file added audio/death.flac
Binary file not shown.
Binary file added audio/dusty-path.flac
Binary file not shown.
Binary file added audio/eat-meat.flac
Binary file not shown.
Binary file added audio/embark.flac
Binary file not shown.
Binary file added audio/encounter-tier-1.flac
Binary file not shown.
Binary file added audio/encounter-tier-2.flac
Binary file not shown.
Binary file added audio/encounter-tier-3.flac
Binary file not shown.
Binary file added audio/ending.flac
Binary file not shown.
Binary file added audio/event-beast-attack.flac
Binary file not shown.
Binary file added audio/event-beggar.flac
Binary file not shown.
Binary file added audio/event-hut-fire.flac
Binary file not shown.
Binary file added audio/event-mysterious-wanderer.flac
Binary file not shown.
Binary file added audio/event-noises-inside.flac
Binary file not shown.
Binary file added audio/event-noises-outside.flac
Binary file not shown.
Binary file added audio/event-nomad.flac
Binary file not shown.
Binary file added audio/event-plague.flac
Binary file not shown.
Binary file added audio/event-ruined-trap.flac
Binary file not shown.
Binary file added audio/event-scout.flac
Binary file not shown.
Binary file added audio/event-shady-builder.flac
Binary file not shown.
Binary file added audio/event-sick-man.flac
Binary file not shown.
Binary file added audio/event-sickness.flac
Binary file not shown.
Binary file added audio/event-soldier-attack.flac
Binary file not shown.
Binary file added audio/event-thief.flac
Binary file not shown.
Binary file added audio/event-wandering-master.flac
Binary file not shown.
Binary file added audio/fire-burning.flac
Binary file not shown.
Binary file added audio/fire-dead.flac
Binary file not shown.
Binary file added audio/fire-flickering.flac
Binary file not shown.
Binary file added audio/fire-roaring.flac
Binary file not shown.
Binary file added audio/fire-smoldering.flac
Binary file not shown.
Binary file added audio/footsteps-1.flac
Binary file not shown.
Binary file added audio/footsteps-2.flac
Binary file not shown.
Binary file added audio/footsteps-3.flac
Binary file not shown.
Binary file added audio/footsteps-4.flac
Binary file not shown.
Binary file added audio/footsteps-5.flac
Binary file not shown.
Binary file added audio/footsteps-6.flac
Binary file not shown.
Binary file added audio/gather-wood.flac
Binary file not shown.
Binary file added audio/landmark-battlefield.flac
Binary file not shown.
Binary file added audio/landmark-borehole.flac
Binary file not shown.
Binary file added audio/landmark-cave.flac
Binary file not shown.
Binary file added audio/landmark-city.flac
Binary file not shown.
Binary file added audio/landmark-coalmine.flac
Binary file not shown.
Binary file added audio/landmark-crashed-ship.flac
Binary file not shown.
Binary file added audio/landmark-destroyed-village.flac
Binary file not shown.
Binary file added audio/landmark-friendly-outpost.flac
Binary file not shown.
Binary file added audio/landmark-house.flac
Binary file not shown.
Binary file added audio/landmark-ironmine.flac
Binary file not shown.
Binary file added audio/landmark-sulphurmine.flac
Binary file not shown.
Binary file added audio/landmark-swamp.flac
Binary file not shown.
Binary file added audio/landmark-town.flac
Binary file not shown.
Binary file added audio/large-village.flac
Binary file not shown.
Binary file added audio/lift-off.flac
Binary file not shown.
Binary file added audio/light-fire.flac
Binary file not shown.
Binary file added audio/lonely-hut.flac
Binary file not shown.
Binary file added audio/modest-village.flac
Binary file not shown.
Binary file added audio/raucous-village.flac
Binary file not shown.
Binary file added audio/reinforce-hull.flac
Binary file not shown.
Binary file added audio/ship.flac
Binary file not shown.
Binary file added audio/silent-forest.flac
Binary file not shown.
Binary file added audio/space.flac
Binary file not shown.
Binary file added audio/stoke-fire.flac
Binary file not shown.
Binary file added audio/tiny-village.flac
Binary file not shown.
Binary file added audio/upgrade-engine.flac
Binary file not shown.
Binary file added audio/use-meds.flac
Binary file not shown.
Binary file added audio/weapon-melee-1.flac
Binary file not shown.
Binary file added audio/weapon-melee-2.flac
Binary file not shown.
Binary file added audio/weapon-melee-3.flac
Binary file not shown.
Binary file added audio/weapon-ranged-1.flac
Binary file not shown.
Binary file added audio/weapon-ranged-2.flac
Binary file not shown.
Binary file added audio/weapon-ranged-3.flac
Binary file not shown.
Binary file added audio/weapon-unarmed-1.flac
Binary file not shown.
Binary file added audio/weapon-unarmed-2.flac
Binary file not shown.
Binary file added audio/weapon-unarmed-3.flac
Binary file not shown.
Binary file added audio/world.flac
Binary file not shown.
43 changes: 43 additions & 0 deletions browserWarning.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!doctype html>
<html>
<head>
<title>A Dark Room</title>
<style>
body {
background-color: #000000;
color: #FFFFFF;
}
a {
color: #FFFFFF;
}
div {
width: 960px;
margin: auto;
text-align: center;
margin-top: 20px;
}
.browser {
width:102.4px;
height:102.4px;
}
</style>
</head>
<body>
<center>
<img src="img/Logo1.jpg" />
<div>
<strong>
A Dark Room makes use of HTML5 and CSS3, which your current browser does not appear to support.<br/>
Please <a href="http://browsehappy.com">update your browser</a> for the best experience:<br/>
</strong>
<a href='http://www.mozilla.org/en-US/firefox/new/'><img class="browser" src='img/firefox.png' alt='Firefox' title='Firefox' /></a>
<a href='https://www.google.com/intl/en/chrome/browser/'><img class="browser" src='img/chrome.png' alt='Chrome' title='Chrome' /></a>
<a href='http://windows.microsoft.com/en-CA/internet-explorer/download-ie'><img class="browser" src='img/ie.png' alt='Internet Explorer' title='Internet Explorer' /></a>
<a href='http://www.opera.com/computer'><img class="browser" src='img/opera.png' alt='Opera' title='Opera' /></a>
<a href='http://www.apple.com/safari/'><img class="browser" src='img/safari.png' alt='Safari' title='Safari' /></a>
<br/><br/>
Or you can <a href='index.html?ignorebrowser=true'>play anyway</a>, but it probably won't work!
</div>
</center>
</body>
</html>
19 changes: 19 additions & 0 deletions contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Contributing to A Dark Room
===========

Hello and welcome, contributors both new, and old.

Like most projects on GitHub, A Dark Room is open source, and thrives off contributions from members of the community. We appreciate any pull requests or issues that you may open in the project, no matter the size.
<br><hr>
Before contributing to the project, there are a few things you should look over to ensure your contribution is done correctly.

Most of the projects code is written in JavaScript. We would prefer all submitted JavaScript be [JSHint](http://jshint.com/) compliant.
> "JSHint is a community-driven tool to detect errors and potential problems in JavaScript code and to enforce your team's coding conventions."
<br><br><br>
Before opening a new issue, try to check the projects [issues](https://github.com/doublespeakgames/adarkroom/issues) or [wiki](https://github.com/doublespeakgames/adarkroom/wiki).
Doing so will help prevent needless double issues.
<br>Most of the time you will be able to find what you are looking for in one of those places. If not, please open an issue and describe your problem with as much detail as possible.


Lastly, be nice, patient, open to new ideas, and have some fun!
182 changes: 182 additions & 0 deletions css/dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
body {
background-color: #272823;
color: #EEE;
}

div.headerButton {
border-left: 1px solid #EEE;
}

div#notifyGradient {
background-color: #272823;
background: -webkit-linear-gradient( rgba(39, 40, 35, 0) 0%, rgba(39, 40, 35, 1) 100% );
background: linear-gradient( rgba(39, 40, 35, 0) 0%, rgba(39, 40, 35, 1) 100% );
filter: alpha( Opacity=0, FinishOpacity=100, Style=1, StartX=0, StartY=0, FinishX=0, FinishY=500 );
}

div#saveNotify {
background: #272823;
}

.eventPanel:before {
background-color: #272823;
}

.eventTitle:after {
background-color: #272823;
}

div.tooltip {
background-color: #171813;
border: 1px solid black;
box-shadow: -1px 3px 2px #111;
}

div#population {
background-color: #272823;
}

div#village:before {
background: #272823;
}

div#village {
border: 1px solid #EEE;
}

div#stores:before {
background: #272823;
}

div#stores {
border: 1px solid #EEE;
}

div#weapons:before {
background: #272823;
}

div#weapons {
border: 1px solid #EEE;
}

div#bagspace {
background-color: #272823;
}

div#outfitting:before {
background: #272823;
}

div#perks {
border: 1px solid #EEE;
}

div#perks:before {
background-color: #272823;
}

div#outfitting {
border: 1px solid #EEE;
}

#bagspace-world {
border: 1px solid #EEE;
}

div.supplyItem {
border: 1px solid #EEE;
}

#backpackTitle {
background-color: #272823;
}

#backpackSpace {
background-color: #272823;
}

#healthCounter {
background-color: #272823;
}

#map {
border: 1px solid #EEE;
}

#map .landmark {
color: #EEE;
}

#dropMenu {
background: none repeat scroll 0 0 #272823;
box-shadow: -1px 3px 2px #111;
}

div.button {
border: 1px solid #EEE;
}

div.button.disabled, div.button.disabled:hover {
border-color: #444;
color: #444;
}


.upBtn:after, .upManyBtn:after {
border-color: transparent transparent #272823;
}

.upBtn:before, .upManyBtn:before {
border-color: transparent transparent #EEE;
}

.upBtn.disabled:before, .upManyBtn.disabled:before {
border-color: transparent transparent #555;
}

.dnBtn:after, .dnManyBtn:after {
border-color: #272823 transparent transparent;
}

.dnBtn:before, .dnManyBtn:before {
border-color: #EEE transparent transparent;
}

.dnBtn.disabled:before, .dnManyBtn.disabled:before {
border-color: #555 transparent transparent;
}

body.noMask .eventTitle {
background-color: #EEE;
color: #272823;
}

body.noMask .eventTitle:after {
background-color: #EEE;
}

body.noMask .eventPanel {
background-color: #EEE;
}

body.noMask #description {
color: #272823;
}

body.noMask #buttons > .button {
border: 1px solid #272823;
color: #272823;
}

#stars > div, #starsBack > div {
color: black;
}

.endGame {
color:#272823;
}

#theEnd {
color: #272823;
}
Loading

0 comments on commit ce136b1

Please sign in to comment.