-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhistory.html
More file actions
449 lines (427 loc) · 14.9 KB
/
Copy pathhistory.html
File metadata and controls
449 lines (427 loc) · 14.9 KB
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>History & Relation to Speedy Blupi — Planet Blupi Docs</title>
<style>
:root {
--bg: #0d1117;
--sidebar-bg:#161b22;
--border: #30363d;
--text: #c9d1d9;
--heading: #e6edf3;
--link: #58a6ff;
--link-hover:#79c0ff;
--code-bg: #161b22;
--code-text: #f0f6fc;
--pre-bg: #161b22;
--table-hd: #21262d;
--table-alt: #161b22;
--accent: #f78166;
--sidebar-w: 280px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.65;
display: flex;
min-height: 100vh;
}
/* ── Sidebar ─────────────────────────────────────────── */
#sidebar {
width: var(--sidebar-w);
min-width: var(--sidebar-w);
background: var(--sidebar-bg);
border-right: 1px solid var(--border);
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
padding: 0 0 2rem 0;
flex-shrink: 0;
}
#sidebar .logo {
display: block;
padding: 1rem 1rem 0.75rem 1rem;
border-bottom: 1px solid var(--border);
text-decoration: none;
font-weight: 700;
font-size: 0.95rem;
color: var(--heading);
letter-spacing: 0.02em;
}
#sidebar .logo span { color: var(--accent); }
#sidebar nav { padding: 0.5rem 0; }
#sidebar .section-title {
display: block;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #6e7681;
padding: 0.85rem 1rem 0.2rem 1rem;
}
#sidebar a.nav-link {
display: block;
padding: 0.28rem 1rem 0.28rem 1.3rem;
font-size: 0.83rem;
color: #8b949e;
text-decoration: none;
border-left: 2px solid transparent;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
transition: color 0.15s, border-color 0.15s, background 0.15s;
}
#sidebar a.nav-link:hover {
color: var(--link-hover);
background: rgba(88,166,255,0.06);
border-left-color: var(--link);
}
#sidebar a.nav-link.active {
color: var(--link);
border-left-color: var(--accent);
background: rgba(247,129,102,0.08);
font-weight: 600;
}
#sidebar a.nav-link.top-link {
font-size: 0.85rem;
color: #adbac7;
padding-left: 1rem;
font-weight: 600;
}
/* ── Main content ────────────────────────────────────── */
#main {
flex: 1;
min-width: 0;
padding: 2.5rem 3rem 4rem 3rem;
max-width: 960px;
}
/* ── Breadcrumb ──────────────────────────────────────── */
.breadcrumb {
font-size: 0.78rem;
color: #6e7681;
margin-bottom: 1.5rem;
display: flex;
flex-wrap: wrap;
gap: 0.25rem;
align-items: center;
}
.breadcrumb a { color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #6e7681; }
/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
color: var(--heading);
font-weight: 600;
line-height: 1.3;
margin-top: 1.8em;
margin-bottom: 0.6em;
border-bottom: 1px solid var(--border);
padding-bottom: 0.3em;
}
h1 { font-size: 1.9rem; margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; border-bottom: none; }
h4 { font-size: 1rem; border-bottom: none; color: var(--text); }
p { margin: 0.75em 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--link-hover); }
ul, ol { padding-left: 1.5em; margin: 0.5em 0; }
li { margin: 0.25em 0; }
/* ── Code ────────────────────────────────────────────── */
code {
background: var(--code-bg);
color: var(--code-text);
padding: 0.15em 0.45em;
border-radius: 4px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size: 0.85em;
border: 1px solid var(--border);
}
pre {
background: var(--pre-bg);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1em 1.2em;
overflow-x: auto;
margin: 1em 0;
line-height: 1.55;
}
pre code {
background: transparent;
border: none;
padding: 0;
font-size: 0.83rem;
color: #e6edf3;
}
/* ── Tables ──────────────────────────────────────────── */
table {
border-collapse: collapse;
width: 100%;
margin: 1em 0;
font-size: 0.88rem;
overflow-x: auto;
display: block;
}
thead tr { background: var(--table-hd); }
th {
border: 1px solid var(--border);
padding: 0.5em 0.85em;
text-align: left;
color: var(--heading);
font-weight: 600;
white-space: nowrap;
}
td {
border: 1px solid var(--border);
padding: 0.45em 0.85em;
vertical-align: top;
}
tbody tr:nth-child(even) { background: var(--table-alt); }
tbody tr:hover { background: #1c2128; }
/* ── Blockquote ──────────────────────────────────────── */
blockquote {
border-left: 3px solid var(--accent);
margin: 1em 0;
padding: 0.5em 1em;
background: rgba(247,129,102,0.07);
border-radius: 0 4px 4px 0;
color: #adbac7;
font-style: italic;
}
/* ── HR ──────────────────────────────────────────────── */
hr {
border: none;
border-top: 1px solid var(--border);
margin: 2em 0;
}
/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
body { flex-direction: column; }
#sidebar {
width: 100%;
height: auto;
position: relative;
border-right: none;
border-bottom: 1px solid var(--border);
}
#main { padding: 1.5rem 1.2rem 3rem 1.2rem; }
}
/* ── Scroll ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }
</style>
</head>
<body>
<aside id="sidebar">
<a class="logo" href="index.html">
<span>●</span> Planet Blupi Docs
</a>
<nav>
<a class="nav-link top-link" href="index.html">⌂ Index</a>
<span class="section-title">Overview</span>
<a class="nav-link " href="overview.html">Overview</a>
<a class="nav-link active" href="history.html">History & Speedy Blupi</a>
<span class="section-title">Architecture</span>
<a class="nav-link " href="architecture/overview.html">System Architecture</a>
<a class="nav-link " href="architecture/source-files.html">Source Files Reference</a>
<span class="section-title">Engine Internals</span>
<a class="nav-link " href="engine/data-structures.html">Data Structures</a>
<a class="nav-link " href="engine/game-phases.html">Game Phases</a>
<a class="nav-link " href="engine/rendering.html">Rendering</a>
<a class="nav-link " href="engine/pathfinding.html">Pathfinding (A*)</a>
<a class="nav-link " href="engine/fog-of-war.html">Fog of War</a>
<a class="nav-link " href="engine/minimap.html">Minimap</a>
<a class="nav-link " href="engine/demo.html">Demo Recording</a>
<a class="nav-link " href="engine/undo.html">Undo System</a>
<span class="section-title">World (Map)</span>
<a class="nav-link " href="world/file-format.html">World File Format</a>
<a class="nav-link " href="world/grid.html">World Grid</a>
<a class="nav-link " href="world/terrain.html">Terrain & Auto-tiling</a>
<a class="nav-link " href="world/objects.html">Object Layer</a>
<span class="section-title">Characters</span>
<a class="nav-link " href="characters/overview.html">Character Overview</a>
<a class="nav-link " href="characters/blupi.html">Player (Blupi)</a>
<a class="nav-link " href="characters/enemies.html">Enemies</a>
<a class="nav-link " href="characters/vehicles.html">Vehicles</a>
<a class="nav-link " href="characters/actions.html">ACTION_* Codes</a>
<a class="nav-link " href="characters/goals.html">GOAL_* Interpreter</a>
<span class="section-title">Gameplay</span>
<a class="nav-link " href="gameplay/win-conditions.html">Win Conditions</a>
<a class="nav-link " href="gameplay/toolbar.html">Toolbar Buttons</a>
<a class="nav-link " href="gameplay/directions.html">Directions</a>
<a class="nav-link " href="gameplay/skill-levels.html">Skill Levels</a>
<a class="nav-link " href="gameplay/regions.html">Regions / Themes</a>
<a class="nav-link " href="gameplay/cheat-codes.html">Cheat Codes</a>
<span class="section-title">Assets</span>
<a class="nav-link " href="assets/images.html">Image Assets</a>
<a class="nav-link " href="assets/sounds.html">Sound Effects</a>
<a class="nav-link " href="assets/music.html">Music Tracks</a>
<a class="nav-link " href="assets/data-files.html">Data Files</a>
<a class="nav-link " href="assets/movies.html">Movies</a>
<span class="section-title">User Interface</span>
<a class="nav-link " href="ui/messages.html">Windows Messages</a>
<a class="nav-link " href="ui/cursor-sprites.html">Cursor Sprites</a>
<a class="nav-link " href="ui/statistics.html">Statistics Panel</a>
<a class="nav-link " href="ui/error-codes.html">Error Codes</a>
<span class="section-title">Platforms</span>
<a class="nav-link " href="platform/build.html">Build System</a>
<a class="nav-link " href="platform/config.html">Configuration</a>
<a class="nav-link " href="platform/localisation.html">Localisation</a>
<a class="nav-link " href="platform/web.html">Web / Emscripten</a>
<span class="section-title">Speedy Blupi Reference</span>
<a class="nav-link " href="speedy-blupi/overview.html">Relation to Speedy Blupi</a>
<a class="nav-link " href="speedy-blupi/actions-h.html">actions.h Reference</a>
</nav>
</aside>
<main id="main">
<div class="breadcrumb"><a href="index.html">Home</a></div>
<h1 id="history-relation-to-speedy-blupi">History & Relation to Speedy Blupi</h1>
<h2 id="epsitec-and-the-blupi-universe">Epsitec and the Blupi Universe</h2>
<p><strong>Epsitec SA</strong> (Switzerland) created a series of games featuring the character Blupi:</p>
<table>
<thead>
<tr>
<th>Game</th>
<th>Genre</th>
<th>Year</th>
<th>Engine style</th>
</tr>
</thead>
<tbody>
<tr>
<td>Speedy Blupi</td>
<td>Side-scrolling platformer</td>
<td>~1995</td>
<td>Automaton state machine (<code>actions.h</code>)</td>
</tr>
<tr>
<td>Planet Blupi</td>
<td>Isometric RTS / puzzle</td>
<td>1997</td>
<td>Goal-based task interpreter (<code>decgoal.h</code>)</td>
</tr>
</tbody>
</table>
<p>Both games share the same character (yellow creature Blupi, called "Toto" in Speedy Blupi),
but use completely different game engines.</p>
<hr />
<h2 id="code-level-relationship">Code-Level Relationship</h2>
<p>The file <code>include/actions.h</code> in this repository is a <strong>direct remnant of the Speedy Blupi engine</strong>.
It defines:</p>
<ul>
<li><strong>Bytecode opcodes</strong> for the animation interpreter (<code>OPTERM</code>, <code>OPLIST</code>, <code>OPREPEAT</code>, <code>OPSOUND</code>)</li>
<li>The <strong><code>Action</code> enum</strong> — all directional movement / behaviour codes for animated objects
(characters, crates, balloons etc.), each action has 4 directional variants <code>_E/_N/_O/_S</code></li>
<li>The <strong><code>Objet</code> enum</strong> — animated decoration state codes (detonator, bomb, one-way sign etc.)</li>
<li>The <strong><code>Sound</code> enum</strong> (Speedy Blupi variant) — SFX identifiers 1–39, music indices 101–116</li>
<li>Helper functions: <code>ConvActionToTabIcon()</code>, <code>ConvActionToTabMove()</code>, <code>ConvObjetToTabIcon()</code></li>
</ul>
<blockquote>
<p><strong>These types are NOT used by Planet Blupi's own engine.</strong> They belong to the Speedy Blupi
animation subsystem that was imported / referenced during development.</p>
</blockquote>
<p>Name-space conflict: the <code>Sound</code> enum values in <code>actions.h</code> <strong>collide</strong> with the <code>SOUND_*</code>
macros in <code>def.h</code>. They are two completely separate systems.</p>
<hr />
<h2 id="key-engine-differences">Key Engine Differences</h2>
<table>
<thead>
<tr>
<th>Property</th>
<th>Speedy Blupi</th>
<th>Planet Blupi</th>
</tr>
</thead>
<tbody>
<tr>
<td>Movement model</td>
<td>Physics-based (jumps, falls, gravity)</td>
<td>Grid-based (cell by cell)</td>
</tr>
<tr>
<td>Character control</td>
<td>Bytecode automaton state machine</td>
<td>GOAL_* opcode interpreter</td>
</tr>
<tr>
<td>View</td>
<td>Side-scrolling 2D</td>
<td>Isometric 3D</td>
</tr>
<tr>
<td>Enemies</td>
<td>Simpler, fixed patterns</td>
<td>Autonomous AI with pathfinding</td>
</tr>
<tr>
<td>Vehicles</td>
<td>No</td>
<td>Yes (boat, jeep, armour)</td>
</tr>
<tr>
<td>Fog of war</td>
<td>No</td>
<td>Yes (quadrant bit system)</td>
</tr>
<tr>
<td>Save format</td>
<td>Simple</td>
<td>Binary <code>.blp</code> files with complete world state</td>
</tr>
</tbody>
</table>
<hr />
<h2 id="files-shared-between-games">Files Shared Between Games</h2>
<table>
<thead>
<tr>
<th>File</th>
<th>Origin</th>
<th>Use in Planet Blupi</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>include/actions.h</code></td>
<td>Speedy Blupi engine</td>
<td>Reference only; types not called by PB code</td>
</tr>
<tr>
<td><code>include/decmove.h</code></td>
<td>Carried over from Speedy Blupi</td>
<td>Fully used for animated decorations</td>
</tr>
<tr>
<td>General architecture</td>
<td>Epsitec in-house</td>
<td>Redesigned for isometric engine</td>
</tr>
</tbody>
</table>
<hr />
<h2 id="why-is-actionsh-in-this-repository">Why Is actions.h in This Repository?</h2>
<p>When <strong>decompiling Speedy Blupi</strong>, <code>actions.h</code> serves as the <strong>primary starting point</strong>
for understanding the character animation state machine. It contains the complete enumeration
of all actions (<code>Action</code> enum) and decorations (<code>Objet</code> enum) that the Speedy Blupi animation
system uses.</p>
<p>See <a href="speedy-blupi/actions-h.html">actions.h Reference</a> for a full annotated listing.</p>
</main>
<script>
// Highlight active nav link also by current URL
(function(){
var links = document.querySelectorAll('#sidebar a.nav-link');
var cur = window.location.pathname.split('/').pop() || 'index.html';
links.forEach(function(a){
if(a.getAttribute('href').split('/').pop() === cur) a.classList.add('active');
});
})();
</script>
</body>
</html>