-
Notifications
You must be signed in to change notification settings - Fork 16
/
demo.html
65 lines (59 loc) · 1.43 KB
/
demo.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
<!doctype html>
<html>
<head>
<title>Solari</title>
</head>
<body>
<div id="container"></div>
<script src="lib/underscore.js"></script>
<script src="lib/Three.js"></script>
<script src="lib/stats.js"></script>
<script src="lib/events.js"></script>
<script src="src/SolariTexture.js"></script>
<script src="src/SolariRow.js"></script>
<script src="src/SolariFlap.js"></script>
<script src="src/Solari.js"></script>
<script>
(function () {
var board = window.Board = new Solari;
new SolariTexture().bind('load', function () {
var alphaSet = this,
row;
document.getElementById('container').appendChild(board.el);
// Set up the board
_(8).times(function () {
row = new SolariRow(board.y);
_(24).times(function () {
row.add(alphaSet);
});
board.add(row);
});
Board.start();
// Set a message
setTimeout(function () {
Board.setMessage([
'THUNDERCATS',
'ARE ON THE MOVE',
'THUNDERCATS ARE LOOSE',
'FEEL THE MAGIC',
'HEAR THE ROAR',
'THUNDERCATS ARE LOOSE',
'THUNDER THUNDER THUNDER',
'THUNDERCATS HO'
])
}, 2000);
}).load("img/chars.png", "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-.# ;(),':?!+/=@&€*$\"°É£%À<>[]{}~".split(""), 70, 63);
})();
</script>
<style>
*{
margin:0;
padding:0;
overflow:hidden;
}
body{
background:#111;
}
</style>
</body>
</html>