-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
149 lines (122 loc) · 6.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>unicodetiles.js</title>
<link href="unicodetiles/unicodetiles.css" rel="stylesheet" type="text/css" />
<link href="docs/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a href="http://github.com/tapio/unicodetiles.js">
<img id="ribbon" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" />
</a>
<div id="container">
<div class="download">
<a href="http://github.com/tapio/unicodetiles.js/zipball/master">
<img src="http://github.com/images/modules/download/zip.png" alt="zip"></a>
<a href="http://github.com/tapio/unicodetiles.js/tarball/master">
<img src="http://github.com/images/modules/download/tar.png" alt="tar"></a>
</div>
<h1>UnicodeTiles.js</h1>
<p>This JavaScript library provides a text character based tile engine for creating <a href="http://en.wikipedia.org/wiki/Roguelike">roguelike</a> games etc. The bundled font (<a href="http://dejavu-fonts.org/">DejaVu Sans Mono</a>) has decent coverage (3289 glyphs) of Unicode, providing monospace characters for <a href="http://tapio.github.com/unicodetiles.js/examples/01-minimal.html">various miscellaneous symbols</a> that can be useful in creating fancy looking character based games and user interfaces. This page itself uses the font.</p>
<p>You might also be interested to know that a third-party <a href="http://kmees.github.com/projects/unicodetiles.html">Ruby port of this library exists</a>.</p>
<h2>Current features</h2>
<ul>
<li>Viewport - <em>character grid display</em>
<ul>
<li>Three rendering engines: WebGL, 2d canvas and slow DOM</li>
<li>Automatically picks the best renderer supported by user's browser</li>
<li>Rendering engine can be switched on-the-fly</li>
<li>Colored characters</li>
<li>Colored character backgrounds</li>
<li>Arbitrary character viewport size</li>
<li>Character size customizable through CSS</li>
<li>Can make the layout square</li>
<li>Utilizes CSS3 Web Fonts (@font-face) to provide consistent look across platforms.</li>
</ul></li>
<li>Engine - <em>the tile engine</em>
<ul>
<li>Viewport updating according to player coordinates</li>
<li>Tile reading through a callback</li>
<li>Optional caching for cases where the tile callback is heavy</li>
<li>Masking callback (for FOV etc.)</li>
<li>Shader callback (for animating tiles)</li>
</ul></li>
<li>Input - <em>keyboard handling</em>
<ul>
<li>Simple addon that makes keyboard managing easier</li>
</ul></li>
<li>Meta - <em>general stuff</em>
<ul>
<li>Comprehensive API documentation
<ul>
<li>Generated with Natural Docs from source code comments</li>
</ul></li>
<li>Broad browser support
<ul>
<li>Best on latest Chrome and Firefox</li>
<li>IE9+ and Opera 11.61+ supported, but less frequently tested</li>
<li>IE8 and below are not targeted</li>
</ul></li>
<li>Static analysis frequently performed
<ul>
<li><a href="http://www.jshint.com/">JSHint</a> (on every git commit)</li>
<li><a href="http://closure-compiler.appspot.com/">Google Closure Compiler</a></li>
</ul></li>
<li>Several examples / tutorials
<ul>
<li>See examples/ subfolder</li>
</ul></li>
<li>Minification toolchain through <a href="http://closure-compiler.appspot.com/">Google Closure Compiler</a></li>
<li>Boilerplate native app for removing browser dependency
<ul>
<li>Based on QtWebkit (so requires Qt)</li>
<li>Just compile the tiny app and drop it next to your games files - no browser needed anymore</li>
</ul></li>
</ul></li>
</ul>
<h2>Documentation</h2>
<p>See docs/html-subdirectory: <a href="docs/html/">local link</a> | <a href="http://tapio.github.com/unicodetiles.js/docs/html/">online</a></p>
<h2>Examples</h2>
<p>See examples-subdirectory: <a href="examples/">local link</a> | <a href="http://tapio.github.com/unicodetiles.js/examples/">online</a></p>
<h2>Tests</h2>
<p>There are some, mostly performance related tests/benchmarks that you can run in the tests-subdirectory:
<a href="tests/">local link</a> | <a href="http://tapio.github.com/unicodetiles.js/tests/">online</a></p>
<h2>Version history</h2>
<ul>
<li>v2.1
<ul>
<li>Improved chracter texture generation for WebGLRenderer</li>
<li>Small Viewport and Tile improvements</li>
<li>New example: 08-raycaster</li>
</ul></li>
<li>v2.0
<ul>
<li>WebGLRenderer</li>
<li>Renderers in their own files</li>
<li>More test cases</li>
</ul></li>
<li>v1.1
<ul>
<li>Transition effects</li>
<li>Native app based on QtWebkit</li>
</ul></li>
<li>v1.0
<ul>
<li>Initial release</li>
</ul></li>
</ul>
<h2>License</h2>
<p>Deja Vu fonts © Bitstream. See the license at <a href="http://dejavu-fonts.org/wiki/License">http://dejavu-fonts.org/wiki/License</a> for more information.</p>
<p>The actual code and all other things are licensed under the <a href="http://opensource.org/licenses/MIT">MIT license</a>, which is as follows:</p>
<p>Copyright (c) 2012 Tapio Vierros</p>
<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>
<!-- INCLUDES -->
<footer>
get the source code on GitHub : <a href="http://github.com/tapio/unicodetiles.js">tapio/unicodetiles.js</a>
</footer>
</div>
</body>
</html>