-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
242 lines (188 loc) · 10.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Retrophies - Super Mario Bros. NES</title>
<meta name="description" content="Achievements System for Emulators, with a proof of concept on Super Mario Bros for NES">
<meta name="author" content="Javier Rengel">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="canonical" href="http://retrophies.win">
<meta property="og:locale" content="en_UK">
<meta property="og:type" content="website">
<meta property="og:title" content="Retrophies - Super Mario Bros. NES">
<meta property="og:description" content="Achievements System for Emulators, with a proof of concept on Super Mario Bros for NES">
<meta property="og:url" content="http://retrophies.win">
<meta property="og:site_name" content="Retrophies">
<meta name="twitter:site" content="@coconauts">
<link rel="favicon" type="image/png" href="favicon.png" />
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<script src="js/jquery.min.js"></script>
<!---- start-smoth-scrolling---->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event) {
event.preventDefault();
$('html,body').animate({
scrollTop: $(this.hash).offset().top
}, 1000);
});
});
</script>
<!-- end smoth-scrolling -->
<!-- Custom Theme files -->
<link href="css/theme-style.css" rel='stylesheet' type='text/css' />
<!-- Custom Theme files -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript">
addEventListener("load", function() {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
</script>
<!----webfonts---->
<link href='//fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,400italic' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,600,800,300,700' rel='stylesheet' type='text/css'>
<!----//webfonts---->
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/achievements.css">
<script>
// Load analytics libraries
//Google analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
//Amplitude analytics
(function(e,t){var n=e.amplitude||{_q:[],_iq:{}};var r=t.createElement("script");r.type="text/javascript";
r.async=true;r.src="https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-3.0.2-min.gz.js";
r.onload=function(){e.amplitude.runQueuedFunctions()};var i=t.getElementsByTagName("script")[0];
i.parentNode.insertBefore(r,i);function s(e,t){e.prototype[t]=function(){this._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
return this}}var o=function(){this._q=[];return this};var a=["add","append","clearAll","prepend","set","setOnce","unset"];
for(var u=0;u<a.length;u++){s(o,a[u])}n.Identify=o;var c=function(){this._q=[];return this;
};var p=["setProductId","setQuantity","setPrice","setRevenueType","setEventProperties"];
for(var l=0;l<p.length;l++){s(c,p[l])}n.Revenue=c;var d=["init","logEvent","logRevenue","setUserId","setUserProperties","setOptOut","setVersionName","setDomain","setDeviceId","setGlobalUserProperties","identify","clearUserProperties","setGroup","logRevenueV2","regenerateDeviceId"];
function v(e){function t(t){e[t]=function(){e._q.push([t].concat(Array.prototype.slice.call(arguments,0)));
}}for(var n=0;n<d.length;n++){t(d[n])}}v(n);n.getInstance=function(e){e=(!e||e.length===0?"$default_instance":e).toLowerCase();
if(!n._iq.hasOwnProperty(e)){n._iq[e]={_q:[]};v(n._iq[e])}return n._iq[e]};e.amplitude=n;
})(window,document);
</script>
<script type="text/javascript" src="js/analytics.js"></script>
</head>
<body>
<div id="emulator-panel">
<div class='background'>
<div class="container">
<img class='control-p1' src='images/control-p1.png' />
<img class='tweet-button achievement-hide' style='top:150px' src='images/tweet-button.png' />
<a href="#achievements-panel" style='top:200px' class=" achievement-hide scroll page-scroll">
<img class='list-achievements-button' src='images/achievements-button.png' />
</a>
<div class="consulation-grids">
<div class="col-xs-12 text-center">
<img class='logo-img' src='images/logo2.png' />
</div>
<div class="col-md-12 consulation-left text-center">
<div id="emulator"> </div>
<div class='extra-controls'>
<img src='images/mute-off.png' class='mute-button extra-button' title='Toggle sound' />
<img src='images/save.png' class='save-button extra-button' title='Save game' />
<img src='images/load.png' class='load-button extra-button disabled' title='Load game' />
</div>
</div>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>
<a class='fork-github' target='_blank' href="https://github.com/rephus/retrophies">
<img src='images/fork-github-left.png' />
</a>
<div id="description-panel">
<div class="container padding-20 ">
<div class="col-md-6 padding-20">
<h2> What is retrophies ? </h2> Retrophies is an attempt to bring trophies/achievements to classic console games, running on an emulator. The first prototype implements some achievements on top of the unhacked rom of Super Mario Bros for NES.
</div>
<div class="col-md-6 center-image">
<img class='img-responsive' src='images/achievement.png' />
</div>
<div class="col-md-12 padding-20">
<h2> Can Retrophies be extended to other games or emulators ? </h2> Yes, this page is only a proof of concept, but the principles should be applicable to other roms and emulators. Retrophies just needs the emulator to be able to inspect the game memory in real time (emulators that support Game Genie codes should be capable of this). Retrophies is also scalable to support multiple games and different trophies per game, although creating achievements themselves it's a pretty complex manual process so it might take some time to do.
</div>
<div class="col-md-6 center-image">
<img class='img-responsive' src='images/memory.png' />
</div>
<div class="col-md-6 padding-20">
<h2> How does Retrophies work ? </h2> Achievements are triggered by looking at specific parts of the game's memory in real time, until they match certain conditions. If you are familiar with cheat cartidges, like Game Genie, there's a lot of overlap in how both work. In the same way as cheat codes, In a similar way of how cheat cartridges work, like Game Genie. An effective but complex process, as all the achievements need to be reverse engineered by looking at the memory, one by one.
</div>
<div class="clearfix"> </div>
</div>
</div>
<div id="achievements-panel">
<div class="container ">
<div class="head">
<h3>List of trophies</h3>
</div>
<ul id='achievements-list'>
</ul>
<div class="col-md-12 padding-20 text-center">
<img class='tweet-button ' src='images/tweet-button.png' />
</div>
</div>
</div>
<div id="coconauts-panel">
<div class="container text-center ">
<div class="col-md-12 padding-20">
Developed by
<a href='http://twitter.com/rephus'>Javier Rengel</a> at
<a href='http://coconauts.net'>Coconauts</a>
</div>
<div class="col-md-12">
</div>
<div class="col-md-12">
Download Retrophies project on
<a target='_blank' href="https://github.com/rephus/retrophies">
Github
</a>. Retrophies is a fork of
<a target='_blank' href='https://github.com/bfirsh/jsnes/'>JSNES</a>
<div class="col-md-12">
Do you want to know more ? Check more details about this project
<a target='_blank' href="http://coconauts.net/projects/retrophies">
at our blog
</a>
<div class="clearfix"> </div>
</div>
</div>
<script src="source/nes.js" type="text/javascript" charset="utf-8"></script>
<script src="source/utils.js" type="text/javascript" charset="utf-8"></script>
<script src="source/cpu.js" type="text/javascript" charset="utf-8"></script>
<script src="source/keyboard.js" type="text/javascript" charset="utf-8"></script>
<script src="source/mappers.js" type="text/javascript" charset="utf-8"></script>
<script src="source/papu.js" type="text/javascript" charset="utf-8"></script>
<script src="source/ppu.js" type="text/javascript" charset="utf-8"></script>
<script src="source/rom.js" type="text/javascript" charset="utf-8"></script>
<script src="source/achievements.js" type="text/javascript" charset="utf-8"></script>
<script src="source/ui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var nes;
$(function() {
nes = new JSNES({
'ui': $('#emulator').JSNESUI({
"Working": [
['Super Mario Bros.', 'roms/mario.nes']
]
})
});
});
</script>
<!--[if IE]>
<script type="text/vbscript" src="source/jsnes-ie-hacks.vbscript"></script>
<![endif]-->
</body>
</html>