-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
157 lines (136 loc) · 5.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Toejam & Earl Seeded World Generator</title>
<link href="css/main.css" rel="stylesheet" />
<script src="js/FileSaver.js"></script>
<script src="js/localforage.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<section id="header">
<h1>Toejam & Earl Seeded World Generator</h1>
</section>
<form>
<p id="prom">
<label for="files"><span>Input ROM</span></label>
<input type="file" id="romfile" accept=".SGD, .bin, .md, .gen, .smd" />
</p>
<p id="pid">
<label><span>Game</span></label>
<span id="gameid"></span>
</p>
<p id="pcrc">
<label><span>CRC32</span></label>
<span id="gamecrc"></span>
</p>
<p id="pseed">
<label for="seed"><span>Seed</span></label>
<input type="text" id="seed" maxlength="16" />
<button id="randomize" type="button">Randomizer!</button>
</p>
<p id="pleveltypes">
<label for="leveltypes"><span>Level Types</span></label>
<select id="leveltypes">
<option value="original">Original</option>
<option value="shuffled">Shuffled</option>
<option value="randomized">Randomized</option>
</select>
</p>
<p id="pearthlinglevels">
<label for="earthlinglevels"><span>Earthling Locations</span></label>
<select id="earthlinglevels">
<option value="original">Original</option>
<option value="shuffled">Shuffled</option>
<option value="randomized">Randomized</option>
</select>
</p>
<p id="pstartinginventory">
<label for="startinginventory"><span>Starting Inventory</span></label>
<select id="startinginventory">
<option value="original">Original</option>
<option value="mystery">Mystery</option>
<option value="random">Random</option>
<option value="randombonus">Random Bonus</option>
</select>
<p id="pgo">
<label for="generate"><span>Ready?</span></label>
<button id="generate" type="button">Crank It, Earl!</button>
</p>
</form>
<section id="desc">
<h2>What is this?</h2>
<p>This is the <em>Toejam & Earl Seeded World Generator</em>! It
takes the original <em>Toejam & Earl</em> game for the Sega Genesis,
and applies new seeds. This allows different players to race each other
using consistent seeds.</p>
<p>This is a web-based patching system for Sega Genesis/Mega Drive ROMs; the
patching is done entirely in your web browser using the power of JavaScript.
(No ROMs are uploaded or downloaded in this process.) In order to use it, you
will need a ROM for <em>Toejam & Earl</em>. If you do not have such a ROM,
and you are on Windows, you can purchase it from Steam as
<a href="http://store.steampowered.com/app/71166/ToeJam__Earl/">one of the
SEGA Mega Drive and Genesis Classics</a>. Once installed, the file you need is at <code><Steam
Directory>\SteamApps\common\Sega Classics\uncompressed ROMs\ToeJamEarl.SGD</code>.</p>
<p>The ROM data will be stored in your web browser's offline storage for
future use.</p>
<h2>How does it work?</h2>
The base game includes both a "Random World" game and a "Fixed World" game.
The "Fixed World" uses predefined values for all the level seeds and ship
piece locations. We merely patch in our own values, and then rewrite the
menu so that "Fixed World" becomes "Seeded World", so that the maps and
ship piece locations will be consistent between runs.
Note that, just like in a Fixed World game, the present appearances and
earthling locations are still randomized.
<h2>But then can't someone cheat by forcing a good seed?</h2>
<p>The main menu is modified to include both the seed identifier and the
version of the generator. Most places where someone would care about
"cheating"-- that is, races and the <a
href="https://www.speedrun.com/ToeJam_and_Earl">speedrun.com
leaderboards</a>-- require streaming or video evidence, including the
menu at game start.</p>
<p>Seeded World runs should not be considered as valid for submission for
either the Fixed World or Random World leaderboards.</p>
<h2>What version of the game do I need?</h2>
<p>For this system, either REV 00 or REV 02 is acceptable. (The version from
Steam is REV 02.)</p>
<p>There are no known gameplay differences between the two versions.</p>
<h2>What do the options do?</h2>
<h3>Level Types</h3>
<dl>
<dt>Original</dt>
<dd>The original mix of level types. Level 4 is a big lake, Level 22 is a
big desert, etc.</dd>
<dt>Shuffled</dt>
<dd>Level types are shuffled around.</dd>
<dt>Randomized</dt>
<dd>Any level may be one of eight different level types.</dd>
</dl>
<h3>Earthling Locations</h3>
<dl>
<dt>Original</dt>
<dd>Vanilla Earthling placement.</dd>
<dt>Shuffled</dt>
<dd>Earthling groups are shuffled between levels. You might get Level 22's
ice cream trucks on Level 2. Surprise!</dd>
<dt>Randomized</dt>
<dd>The Earthlings from level 2 through 25 are redistributed (mostly)
randomly. Only at most one good earthling of each type per level.</dd>
</dl>
<h3>Starting Inventory</h3>
<dl>
<dt>Original</dt>
<dd>Vanilla starting inventory (Bonus Hitops)</dd>
<dt>Mystery</dt>
<dd>Start with four mystery boxes.</dd>
<dt>Random</dt>
<dd>Start with four random unidentified presents.</dd>
<dt>Random Bonus</dt>
<dd>Replace the "Bonus Hitops" with a new bonus present.</dd>
</dl>
</section>
</body>
</html>