forked from Fulox/FullScreenMario-JSON
/
index.html
235 lines (204 loc) · 10.5 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
<!DOCTYPE HTML>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<title>Super Satoshi Bros</title>
<meta name="keywords" content="fullscreenmario, full, screen, mario, javascript, html5, gaming, online, online game, fun, distraction" />
<meta name="description" content="FullScreenMario is a free HTML5 remake of Nintendo's original Super Mario Bros. Play it here!" />
<!-- build:css index.min.css -->
<link href="index.css" rel="stylesheet" />
<!-- /build -->
<style>
body {
background-color: rgba(0, 0, 0, 0);
border-color: #359;
color: #fff;
text-shadow: 0px 2px 1px rgba(0, 0, 0, 0.3);
}
html, body, body > div, .floatingEntryContent, [class*=code] {
background: #46b;
background-image: -webkit-linear-gradient(left, #236 -200%, #46b 50%, #baf 130%);
background-image: -moz-linear-gradient(left, #236 -200%, #46b 50%, #baf 130%);
background-image: -ms-linear-gradient(left, #236 -200%, #46b 50%, #baf 130%);
background-image: -o-linear-gradient(left, #236 -200%, #46b 50%, #baf 130%);
background-image: linear-gradient(left, #236 -200%, #46b 50%, #baf 130%);
}
header {
margin: auto;
padding: 0 70px;
}
h1 {
margin: 0 0 48px 0;
}
a, a * {
color: #0ff;
}
a:visited, a:visited * {
color: #f7a;
}
#explanation {
text-align: left;
}
</style>
<link rel="shortcut icon" href="Theme/Mario.gif">
</head>
<body>
<header>
<h1>Super Satoshi Bros</h1>
</header>
<section id="game">
<!-- FSM.UserWrapper will fill out this section... -->
</section>
<section id="controls">
<!-- FSM.UserWrapper will fill out this section... -->
</section>
<section id="explanation" class="section-text">
<p>
<a href="https://github.com/qualiabyte/super-satoshi-bros">
Super Satoshi Bros</a> is a version of the classic NES game
which replaces all the original coins with new coins representing
transaction outputs of the Bitcoin blockchain, in a way that
nearly all transactions can be represented.
The game begins in a random world corresponding to a recent
block, one of the last 10,000. From here, the game continues
in reverse direction, towards the original genesis block.
</p>
<p>
For example, the map for each block is given by:
</p>
<pre>
Satoshi.classicMaps[(block.block_no - 1) % 31]
</pre>
<p>
And the relation between the new coins and Bitcoin transactions
is given by this method in <code>satoshi/satoshi.js</code>:
</p>
<pre>
// Adds coins to map area for a given block
Satoshi.addCoinsForBlock = function(area, block) {
for (var i = 0; i < block.txs.length && i < 1000; i++) {
var tx = block.txs[i];
var d = Math.log(Satoshi.getValue(tx));
var x = i * 10;
var y = Math.min(10, tx.inputs.length) * 4 + 6;
var w = Math.min(10, tx.outputs.length);
var h = Math.min(10, d);
Satoshi.addCoins(area, x, y, w, h, d);
}
};
</pre>
<p>
So this means that a transaction's output value roughly
corresponds to both the height and density of each batch of
coins onscreen, while the width increases with the number
of transaction outputs. This explains the large group of coins at
the very start of each level, representing the coinbase transaction
for the world corresponding to the current block.
</p>
<p>
Similarly, the transactions are evenly spaced horizontally
throughout the level, but their vertical position increases
with the number of transaction inputs -- so these might be
valuable, but also become harder to reach.
</p>
<b>Current Limitations</b>
<ul>
<li>On game start, blocks are only loaded for the next 12 levels</li>
</ul>
<b>Credits</b>
<p>
The project is a minor fork of the <a href="http://www.github.com/DiogenesTheCynic/FullScreenMario-JSON">FullScreenMario-JSON</a> project,
and would not be possible without either it or the original
game.
</p>
</section>
<hr>
<header>
<!--
<div id="header-right">
<a class="hoverable" target="_blank" href="https://twitter.com/FullScreenMario">
<img id="twitter" src="Theme/Twitter.png" alt="Twitter" />
</a>
<a class="hoverable" target="_blank" href="https://github.com/Diogenesthecynic/FullScreenMario-JSON">
<img id="github" src="Theme/Github.png" alt="Github" />
</a>
<a class="hoverable" target="_blank" href="https://facebook.com/FullScreenMario">
<img id="facebook" src="Theme/Facebook.png" alt="Facebook" />
</a>
</div>
-->
<img src="Theme/Header.gif" alt="FullScreenMario.com" />
</header>
<section id="social" class="section-text">
FullScreenMario is a free HTML5 remake of Nintendo's original Super Mario Bros.
It includes the original 32 levels, a random map generator, a <!-- social --> level editor, and over a dozen custom mods.
You may <a class="link-github" href="http://www.github.com/DiogenesTheCynic/FullScreenMario-JSON">download the game for yourself</a> from GitHub, the location of Full Screen Mario's open source project.
Be sure to get the latest news on our <a class="link-facebook" href="http://www.facebook.com/FullScreenMario">Facebook</a> and <a class="link-twitter" href="http://www.twitter.com/FullScreenMario">Twitter</a> too!
</section>
<section id="credits" class="section-text">
FullScreenMario was made possible first and foremost by Nintendo, who originally created Mario and has since maintained the series.
It would also not have been possible without the dedicated efforts of the Mario fan community over the past three decades, in particular <a href="http://www.themushroomkingdom.net/">themushroomkingdom.net</a>.
</section>
<section id="hangar96" class="section-text">
<a href="http://marathon.sourceforge.net" alt="Escape will make me god.">
<img class="hoverable" src="Theme/Aleph One.png" />
</a>
</section>
<section id="legal" class="section-text">
<small><em>Mario, Super Mario Brothers, and all associated games and media are property of Nintendo and/or Nintendo of America Inc., and are protected by United States and international copyright, trademark and other intellectual property laws.</em></small>
</section>
<!-- build:js FullScreenMario.min.js -->
<script src="GameStartr/EightBittr.js"></script>
<script src="GameStartr/GameStartr.js"></script>
<script src="GameStartr/AudioPlayr/AudioPlayr.js"></script>
<script src="GameStartr/ChangeLinr/ChangeLinr.js"></script>
<script src="GameStartr/FPSAnalyzr/FPSAnalyzr.js"></script>
<script src="GameStartr/GamesRunnr/GamesRunnr.js"></script>
<script src="GameStartr/GroupHoldr/GroupHoldr.js"></script>
<script src="GameStartr/InputWritr/InputWritr.js"></script>
<script src="GameStartr/LevelEditr/LevelEditr.js"></script>
<script src="GameStartr/LevelEditr/beautify.js"></script>
<script src="GameStartr/NumberMakr/NumberMakr.js"></script>
<script src="GameStartr/MapsCreatr/MapsCreatr.js"></script>
<script src="GameStartr/MapScreenr/MapScreenr.js"></script>
<script src="GameStartr/MapsHandlr/MapsHandlr.js"></script>
<script src="GameStartr/ModAttachr/ModAttachr.js"></script>
<script src="GameStartr/PixelDrawr/PixelDrawr.js"></script>
<script src="GameStartr/PixelRendr/PixelRendr.js"></script>
<script src="GameStartr/ObjectMakr/ObjectMakr.js"></script>
<script src="GameStartr/StatsHoldr/StatsHoldr.js"></script>
<script src="GameStartr/StringFilr/StringFilr.js"></script>
<script src="GameStartr/ThingHittr/ThingHittr.js"></script>
<script src="GameStartr/TimeHandlr/TimeHandlr.js"></script>
<script src="GameStartr/QuadsKeepr/QuadsKeepr.js"></script>
<script src="GameStartr/UserWrappr/UserWrappr.js"></script>
<script src="GameStartr/WorldSeedr/WorldSeedr.js"></script>
<script src="FullScreenMario.js"></script>
<script src="settings/audio.js"></script>
<script src="settings/collisions.js"></script>
<script src="settings/editor.js"></script>
<script src="settings/generator.js"></script>
<script src="settings/groups.js"></script>
<script src="settings/events.js"></script>
<script src="settings/input.js"></script>
<script src="settings/maps.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
<script src="satoshi/satoshi.js"></script>
<script src="satoshi/testMap.js"></script>
<script src="satoshi/maps.js"></script>
<script src="satoshi/main.js"></script>
<script src="settings/mods.js"></script>
<script src="settings/objects.js"></script>
<script src="settings/quadrants.js"></script>
<script src="settings/renderer.js"></script>
<script src="settings/runner.js"></script>
<script src="settings/sprites.js"></script>
<script src="settings/statistics.js"></script>
<script src="settings/ui.js"></script>
<!-- /build -->
<!-- build:js index.min.js -->
<script src="index.js"></script>
<!-- /build -->
</body>
</html>