-
Notifications
You must be signed in to change notification settings - Fork 101
/
README.html
118 lines (90 loc) · 9.08 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<h1>The House - simple adventure game</h1>
<h2>Introduction</h2>
<p>I’ve wanted to create a game since a long time. You know - one of those cool things you’d like try. :) When I started working on this project I had only basic knowledge about JS. Very basic. I didn’t even know how to define an array and JS objects and methods were some kind of mystery. Thanks to this game my skills have developed tremendously. I’m still far from calling myself “pro JS dev” but I’ve got siginficantly closer.</p>
<p><strong>You can play it <a href="http://the-house.arturkot.pl">right here</a>.</strong> Please mind that:</p>
<ul>
<li>it’s very, very short,</li>
<li>it’s my first game ever. :)</li>
</ul>
<h2>How does it work?</h2>
<p>The game is made using <strong>HTML, CSS (Less) and JS (depends strongly on jQuery)</strong>. Every room, roughly speaking, has simple markup in HTML which defines items (such as table, window, etc.) and click areas. CSS is responsible for graphic and JS for all the rest (DOM animations, interactions, saving game state). Since I had some experience with developing and designing websites I decided that HTML would be the right technology to start with.</p>
<h3>A little bit more about scripts:</h3>
<ul>
<li><code>js/audio.js</code> - all sounds are defined here,</li>
<li><code>js/data.js</code> - responsible for saving game state,</li>
<li><code>js/dialogue_box.js</code> - responsible for various popups,</li>
<li><code>js/game.js</code> - sits on the top of all scripts and uses them to genrate game,</li>
<li><code>js/items.js</code> - manages items found by a player,</li>
<li><code>js/npcs.js</code> - non playable charcters,</li>
<li><code>old_browser.js</code> - fires when not supported browser is detected,</li>
<li><code>js/room.js</code> - generates rooms, responsible for interaction of the main character wit the game world <strong>the A* (A-Star) algorithm here is by Andrea Giammarchi</strong>,</li>
<li><code>js/scenes.js</code> - cutscenes are stored here,</li>
<li><code>js/settings.js</code> - game settings, at the time this file is responsible for reseting the game only :P,</li>
<li><code>js/text_cloud.js</code> - speech balloons for the main character,</li>
<li><code>js/tooltip.js</code> - tooltips :),</li>
<li><code>js/utility.js</code> - super simple tool: I use it to define hit-areas for tha game grid,</li>
<li><code>js/view.js</code> - generates outside views (when you look throught a window).</li>
</ul>
<h2>Credits</h2>
<p>It’s about time to mention resources (and people behind them) that helped me (A LOT) to create my game.</p>
<h3>Sound</h3>
<p>All sounds come from <a href="http://www.freesound.org">Freesound.org</a>. Full list below:</p>
<ul>
<li><a href="http://www.freesound.org/people/ERH/sounds/32799/">“Distant Shot”</a> by <a href="http://www.freesound.org/people/ERH/">ERH</a></li>
<li><a href="http://www.freesound.org/people/Glaneur%20de%20sons/sounds/34172/">“Electric Wooshes”</a> by <a href="http://www.freesound.org/people/Glaneur%20de%20sons/">Glaneur de sons</a></li>
<li><a href="http://www.freesound.org/people/patchen/sounds/24701/">“Sad Pattern Drone”</a> by <a href="http://www.freesound.org/people/patchen/">patchen</a></li>
<li><a href="http://www.freesound.org/people/suonho/sounds/17724/">“Sad Pattern Drone”</a> by <a href="http://www.freesound.org/people/suonho/">suonho</a></li>
<li><a href="http://www.freesound.org/people/ERH/sounds/34141/">“Swell Pad”</a> by <a href="http://www.freesound.org/people/ERH/">ERH</a></li>
<li><a href="http://www.freesound.org/people/DJ%20Chronos/sounds/52134/">“Horror Drone 001”</a> by <a href="http://www.freesound.org/people/DJ%20Chronos/">DJ Chronos</a></li>
<li><a href="http://www.freesound.org/people/FreqMan/sounds/25079/">“Creepy Phone”</a> by <a href="http://www.freesound.org/people/FreqMan/">FreqMan</a></li>
<li><a href="http://www.freesound.org/people/troutstrangler/sounds/25878/">“Adrift On A Glassy Sea loop”</a> by <a href="http://www.freesound.org/people/troutstrangler/">troutstrangler</a></li>
<li><a href="http://www.freesound.org/people/futureprobe/sounds/18824/">“Buzz 001”</a> by <a href="http://www.freesound.org/people/futureprobe/">futureprobe</a></li>
<li><a href="http://www.freesound.org/people/TicTacShutUp/sounds/408/">“Light 1”</a> by <a href="http://www.freesound.org/people/TicTacShutUp/">TicTacShutUp</a></li>
<li><a href="http://www.freesound.org/people/HerbertBoland/sounds/29696/">“Creak 9”</a> by <a href="http://www.freesound.org/people/HerbertBoland/">HerbertBoland</a></li>
<li><a href="http://www.freesound.org/people/adegenerate/sounds/71212/">“18 Close Door”</a> by <a href="http://www.freesound.org/people/adegenerate/">adegenerate</a></li>
<li><a href="http://www.freesound.org/people/fresco/sounds/35617/">“Open and Close Wooden Door”</a> by <a href="http://www.freesound.org/people/fresco/">fresco</a></li>
<li><a href="http://www.freesound.org/people/Timbre/sounds/101355/">“Buzzer Variants#3”</a> by <a href="http://www.freesound.org/people/Timbre/">Timbre</a></li>
<li><a href="http://www.freesound.org/people/junggle/sounds/26777/">“btn402”</a> by <a href="http://www.freesound.org/people/junggle/">junggle</a></li>
<li><a href="http://www.freesound.org/people/samplecat/sounds/11561/">“Shower Curtain”</a> by <a href="http://www.freesound.org/people/samplecat/">samplecat</a></li>
<li><a href="http://www.freesound.org/people/Nimbyc/sounds/83944/">“SFX(12)”</a> by <a href="http://www.freesound.org/people/Nimbyc/">Nimbyc</a></li>
<li><a href="http://www.freesound.org/people/sagetyrtle/sounds/40158/">“Crash”</a> by <a href="http://www.freesound.org/people/sagetyrtle/">Sagetyrtle</a></li>
<li><a href="http://www.freesound.org/people/KorgMS2000B/sounds/54405/">“Button Click”</a> by <a href="http://www.freesound.org/people/KorgMS2000B/">KorgMS2000B</a></li>
<li><a href="http://www.freesound.org/people/Dynamicell/sounds/17548/">“Fire Forest Inferno”</a> by <a href="http://www.freesound.org/people/Dynamicell/sounds/17548/">Dynamicell</a></li>
<li><a href="http://www.freesound.org/people/cmusounddesign/sounds/119897/">“BC Speaky Compactor”</a> by <a href="http://www.freesound.org/people/cmusounddesign/">cmusounddesign</a></li>
</ul>
<h3>Graphic</h3>
<ul>
<li><a href="http://chrrambow.deviantart.com/art/Bust-Basemesh-128960722">“Bust Basemesh”</a> by <a href="http://www.christianrambow.de/">Christian Rambow</a></li>
<li>Textures from <a href="http://cgtextures.com/">CG Textures</a></li>
</ul>
<h3>JavaScript</h3>
<ul>
<li><a href="http://www.modernizr.com/">Modernizr</a></li>
<li><a href="http://www.schillmania.com/projects/soundmanager2/">SoundManager 2</a></li>
<li><a href="http://jquery.com/">jQuery</a></li>
<li><a href="http://www.bitstorm.org/jquery/color-animation/">jQuery Colors</a> by <a href="http://www.bitstorm.org/edwin/en/">Edwin Martin</a></li>
<li><a href="http://www.filamentgroup.com/lab/update_automatically_preload_images_from_css_with_jquery/">jQuery Preload CSS Images</a> by <a href="http://www.filamentgroup.com/about">filament group</a></li>
<li><a href="http://www.jstorage.info/">jStorage</a> by <a href="http://www.andrisreinman.com/">Andris Reinman</a></li>
<li><a href="http://spritely.net/">Spritely</a> by <a href="http://www.artlogic.net/">Artlogic</a></li>
<li><a href="http://jqueryui.com/">jQuerty UI</a></li>
<li><a href="http://ricostacruz.com/jquery.transit/">jQuerty Transit</a> by <a href="http://ricostacruz.com/">Rico Sta. Cruz</a></li>
<li><a href="http://devpro.it/examples/astar/">A* (A-Star) algorithm function</a> by <a href="http://www.blogger.com/profile/16277820774810688474">Andrea Giammarchi</a></li>
</ul>
<h2>License</h2>
<h3>The House code is available under MIT license:</h3>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.</p>
<h3>The House graphic is available under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 License</a></h3>