-
Notifications
You must be signed in to change notification settings - Fork 75
/
index.html
314 lines (270 loc) · 10.7 KB
/
index.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Crafty - JavaScript Game Engine, HTML5 Game Engine</title>
<link type="text/css" rel="stylesheet" href="/craftyjs-site.css" />
<link href='http://fonts.googleapis.com/css?family=Arvo:regular,bold' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="/favicon.ico">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="/github.css"/>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23935213-2']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id = "header-background"> </div>
<div id = "page-frame">
<div id="header">
<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="/"> <img class="logo" src="/images/text-logo.png" /> </a>
</div>
<div class="collapse navbar-collapse navbar-right" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="/">Home</a></li>
<li><a href="/getting-started/">Getting started</a></li>
<li><a href="/documentation/">Documentation</a></li>
<li><a href="/api/">API</a></li>
<li><a href="https://groups.google.com/forum/#!forum/craftyjs">Forum</a></li>
<li><a href="/components/">Components</a></li>
<li class="emph"><a href="/#install">Download</a></li>
</ul>
</div>
</div>
</nav>
</div>
<div id="main">
<div id="content" class="container">
<div class="row splash">
<div id = "splash-right">
<pre><code class="language-javascript"><span class="hljs-built_in">window</span>.onload = <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>) </span>{
Crafty.init();
<span class="hljs-comment">// A blue block, controlled by arrow keys</span>
<span class="hljs-keyword">var</span> player = Crafty.e(<span class="hljs-string">"2D, Canvas, Color, Fourway"</span>)
.attr({<span class="hljs-attr">x</span>:<span class="hljs-number">100</span>, <span class="hljs-attr">y</span>:<span class="hljs-number">100</span>, <span class="hljs-attr">w</span>:<span class="hljs-number">50</span>, <span class="hljs-attr">h</span>:<span class="hljs-number">50</span>})
.color(<span class="hljs-string">"blue"</span>)
.fourway(<span class="hljs-number">3</span>);
};</code></pre>
</div>
<div id="splash-left">
<div id="splash-text">
<div class="row" id="blurb">
<!-- <div class="blurb-title">CraftyJS</div> -->
<div class="col-md-12" class="title-text">A flexible framework <br/> for Javascript games</div>
</div>
</div>
<div id="splash-download">
<div class="download-link">
<a href="#install" class="download" id="download">
<div>Download Crafty</div>
<div class="version">v. 0.9.0</div>
</a>
<div class="install-options">
<a href="#direct-install">minified</a> • <a href="#bower-install">bower</a> • <a href="#npm-install">npm</a> • <a href="#nightly-install">nightly</a>
</div>
</div>
</div>
</div>
</div>
<div class="announcement">
<div style="float:right; margin-right: 20px;">
Show Crafty.js some <span id="love">love</span>:
<iframe src="http://ghbtns.com/github-btn.html?user=craftyjs&repo=crafty&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20" style="vertical-align: text-top;"></iframe>
</div>
<div><span class="date">17 February: </span><a href="https://github.com/craftyjs/Crafty/releases/tag/0.9.0">version 0.9.0</a> is out! </div>
</div>
<div id="grid">
<div class="outer-box"><div class="box "><div class="inner-box">
<h2>Open Source</h2>
<p>Crafty is actively developed on <a href="https://github.com/craftyjs/Crafty">Github</a>, and we welcome contributions! See <a href="https://github.com/craftyjs/Crafty/releases/tag/0.9.0">release notes.</a></p>
</div></div></div>
<div class="outer-box"><div class="box"><div class="inner-box browser">
<h2>Cross Browser compatible</h2>
<p>Your games will work on all modern browsers, including IE9.</p>
</div></div></div>
<div class="outer-box"><div class="box"><div class="inner-box canvas">
<h2>Canvas or DOM</h2>
<p>Choose the technology to render your entities, it will look exactly the same.</p>
</div></div></div>
<div class="outer-box"><div class="box"><div class="inner-box">
<h2>Small file size</h2>
<p>Small enough that you don't need to wory about it delaying your game.</p>
</div></div></div>
<div class="outer-box"><div class="box "><div class="inner-box">
<h2>Entity Component System</h2>
<p>A better way to approach game development without long chains of inheritance.</p>
</div></div></div>
<div class="outer-box"><div class="box"><div class="inner-box sprite">
<h2>Sprite Map support</h2>
<p>Splice and dice a sprite map to easily draw game entities.</p>
</div></div></div>
<div class="outer-box"><div class="box"><div class="inner-box collide">
<h2>Collision Detection</h2>
<p>Advanced SAT collision detection with more information than just true or false.</p>
</div></div></div>
<div class="outer-box"><div class="box"><div class="inner-box">
<h2>Fire & Forget Events</h2>
<p>Event system for custom events that can be triggered whenever, on whatever, and bound just as easily.</p>
</div></div></div>
<div class="outer-box"><div class="box"><div class="inner-box">
<h2>Lots 'o Goodies</h2>
<p>Heaps of native components for sound, animation, effects and input to make your game pop!</p>
</div></div>
<div class="clearer"></div></div>
</div>
<div id="install-div">
<h2 id="install">Installation</h2>
<div id="direct-install">
<h3>Direct download</h3>
<p>You can download a regular or minified version of Crafty:</p>
<a class="bullet-point" href="https://github.com/craftyjs/Crafty/releases/download/0.9.0/crafty.js">crafty.js</a>
<a class="bullet-point"href="https://github.com/craftyjs/Crafty/releases/download/0.9.0/crafty-min.js">crafty-min.js</a>
</div>
<div id="npm-install">
<h3>npm module</h3>
<p>Crafty is available as an <a href="https://www.npmjs.org">npm</a> module.</p>
<code class="grey">$ npm install craftyjs</code>
<p>You can see an example on how to get started:</p>
<a class="bullet-point" href="https://github.com/kevinsimper/craftyjs-npm-example">npm example</a>
</div>
<div id="bower-install">
<h3>Bower installation</h3>
<p>With <a href="http://bower.io/">bower</a> installed, the command</p>
<code class="grey">$ bower install crafty</code>
<p>will fetch the lastest version of crafty and install it in your project's bower directory.</p>
</div>
<div id="nightly-install">
<h3>Bleeding edge</h3>
<p>Fresh builds are uploaded by Travis after every successful merge:</p>
<a class="bullet-point" href="https://github.com/craftyjs/Crafty-Distro/tree/nightlies">Nightly distribution</a>
</div>
</div>
<div id="demos-div">
<h2 id="demos-title">Demos</h2>
<ul id="demos" class="gridlist">
<!-- external demos -->
<li>
<a href="http://hugeen.github.com/Defend-The-Den/">
<img src="demos/thumbs/defendtheden.png"/>
<span>Defend the Den</span>
</a>
</li>
<li>
<a href="http://blackscorp.github.com/cron/">
<img src="demos/thumbs/cron.png"/>
<span>Cron</span></a>
</li>
<li>
<a href="http://morrisgames.info/">
<img src="demos/thumbs/code-commander.png"/>
<span>Code Commander</span></a>
</li>
<li>
<a href="http://planktongames.com/wordy/">
<img src="demos/thumbs/wordy.png"/>
<span>Wordy</span></a>
</li>
<li>
<a href="http://lapiroff.name/orderlies/Q/">
<img src="demos/thumbs/Q.png"/>
<span>Q</span></a>
</li>
<li>
<a href="http://projects.edillingham.com/senet/">
<img src="demos/thumbs/senet.png" />
<span>Senet</span></a>
</li>
<li>
<a href="https://twohundredscythes.itch.io/flower-son">
<img src="demos/thumbs/flower-son.png" />
<span>Flower Son</span></a>
</li>
<li>
<a href="https://grimmsbattlefield.firebaseapp.com/">
<img src="demos/thumbs/grimms-battlefield.png" />
<span>Grimm's Battlefield</span></a>
</li>
<!-- local demos -->
<li>
<a href="demos/fruitassassin">
<img src="demos/thumbs/fruit.png"/>
<span>Fruit Assassin</span></a>
</li>
<li>
<a href="demos/connect4">
<img src="demos/thumbs/connect4.png"/>
<span>Connect 4</span></a>
</li>
<li>
<a href="demos/asteroids">
<img src="demos/thumbs/asteroids.png"/>
<span>Asteroids</span></a>
</li>
<li>
<a href="demos/rpg">
<img src="demos/thumbs/rpg.png"/>
<span>RPG</span></a>
</li>
<li>
<a href="demos/isometric">
<img src="demos/thumbs/isometric.png"/>
<span>Isometric</span></a>
</li>
</ul>
<div class="clearer" />
</div>
<div class="clearer"></div>
<div id="contributors" class="half">
<h2>Development team
</h2>
<p>Active team members:
<ul>
<li><a href="https://github.com/starwed">starwed</a> (maintainer)</li>
<li><a href="https://github.com/kevinsimper">Kevin Simper</a></li>
<li><a href="https://github.com/mucaho">mucaho</a></li>
</ul>
</p>
<p>Original author: Louis Stowasser</p>
</div>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="clearer"></div>
<div id="footer">
<div id="contact">
<a href="https://groups.google.com/forum/#!forum/craftyjs">
<img src="/images/google.png" />
google groups</a>
<a href="mailto:[email protected]">
<img src="/images/email.png" />
<a href="https://github.com/craftyjs/Crafty">
<img src="/images/github.png" />
github</a>
</div>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/getting-started/">Getting started</a></li>
<li><a href="/documentation/">Documentation</a></li>
<li><a href="/api/">API</a></li>
<li><a href="https://groups.google.com/forum/#!forum/craftyjs">Forum</a></li>
<li><a href="/components/">Modules</a></li>
<li class="emph"><a href="/#install">Download</a></li>
</ul>
<p>
© Crafty 2010-2015. Crafty is distributed under the <a href="http://en.wikipedia.org/wiki/MIT_License">MIT License</a>.
</p>
</div>
</div>
</body>
</html>