-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
409 lines (403 loc) · 17.4 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Tophat 2d game framework">
<meta name="keywords" content="tophat, 2d, games, gamedev,
framework, engine, umka, umka-lang">
<meta name="author" content="Marek Maškarinec">
<meta property="og:title" content="Tophat - 2d game framework">
<meta property="og:image"
content="https://tophat2d.dev/thumbnail.png">
<title>Home | TOPHAT2D.DEV</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" href="/style.css">
</head>
<body>
<div class="text-bg-dark">
<div class="container">
<header
class="d-flex flex-wrap justify-content-center py-3 mb-4 border-bottom"
>
<a href="/" class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-decoration-none">
<img src="/logo-white.png" class="bi me-2 no-aa" height="32" />
</a>
<ul class="nav nav-pills">
<li class="nav-item"><a href="/" class="nav-link text-white
active"
>
Home
</a></li>
<li class="nav-item"><a href="https://tophat2d.dev/playground" class="nav-link text-white"
>
Playground
</a></li>
<li class="nav-item"><a href="https://docs.tophat2d.dev" class="nav-link text-white"
>
Docs
</a></li>
<li class="nav-item"><a href="/dl" class="nav-link text-white
"
>
Downloads
</a></li>
<li class="nav-item"><a
href="https://discord.gg/PcT7cn59h9"
class="nav-link text-white"
>
Discord
</a></li>
<li class="nav-item"><a
href="https://github.com/tophat2d/tophat"
class="nav-link text-white"
>
GitHub
</a></li>
<li class="nav-item"><a
href="https://umbox.tophat2d.dev"
class="nav-link text-white"
>
Packages
</a></li>
</ul>
</ul>
</header>
</div>
</div>
<div class="container">
<p></div></p>
<div class="px-4 py-5 my-5 text-center">
<img class="d-block mx-auto mb-4 no-aa" src="/logo.png" alt="" height="128">
<h1 class="display-5 fw-bold">Tophat Game Framework</h1>
<div class="col-lg-6 mx-auto">
<p class="lead mb-4">A 2D Framework for making games in <a
href="https://github.com/vtereshkov/umka-lang">Umka</a></p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="#learn-more" class="btn btn-primary btn-lg px-4 gap-3">Learn More</a>
<a href="https://tophat2d.dev/dl/" class="btn btn-outline-secondary btn-lg px-4">Downloads</a>
<a href="https://docs.tophat2d.dev/" class="btn btn-outline-secondary btn-lg px-4 gap-3">Documentation</a>
</div>
</div>
</div>
<div class="container px-4 py-5" id="featured-3">
<div class="row g-4 py-5 row-cols-1 row-cols-lg-3">
<div class="feature col">
<h3 id="learn-more" class="fs-2">Made for programmers</h3>
<p>
Tophat allows you to easily accomplish everything
programatically and doesn't force you to work with annoying
editors. However you can always make your own ad-hoc editor.
</p>
<a href="https://docs.tophat2d.dev" class="icon-link d-inline-flex align-items-center">
Learn about the API
</a>
</div>
<div class="feature col">
<h3 class="fs-2">Modular design</h3>
<p>
Tophat includes many built-in modules. Some are necessary, but
most of them are optional and just extend the few base ones.
If you don't like some of them, you can implement your own
ones using native C extensions.
</p>
<a href="https://github.com/tophat2d/tophat/tree/main/demos/extensions" class="icon-link d-inline-flex align-items-center">
Learn about extensions
</a>
</div>
<div class="feature col">
<h3 class="fs-2">Open Source and hackable</h3>
<p>
Tophat's source is open and licensed under BSD-3. The source
code is small, under 10k lines (excluding dependencies).
</p>
<a href="https://github.com/tophat2d/tophat" class="icon-link d-inline-flex align-items-center">
Browse the source
</a>
</div>
</div>
</div>
<div class="text-white discord-box pt-5 pb-5 mb-5">
<div class="container">
<h2>Join us on Discord.</h2>
<a href="https://discord.gg/PcT7cn59h9" class="btn btn-outline-light">Join Discord</a>
</div>
</div>
<div class="container pt-5 pb-5">
<h2 class="mb-3 text-center">Play (with) the examples</h2>
</div>
<div class="container mb-5">
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-4 g-3">
<div class="col">
<div class="card shadow-sm">
<img class="card-img-top no-aa" widht="100%"
src="/img/flappy.png"
/>
<div class="card-body">
<p class="card-text">
The well known flappy bird game, written in tophat. It
is very small and simple - implemented in just one 300
line file.
</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a
href="https://tophat2d.dev/examples/flappy"
class="btn btn-sm btn-outline-secondary"
>
Play
</a>
<a
href="https://github.com/tophat2d/tophat/tree/main/demos/flappy"
class="btn btn-sm btn-outline-secondary"
>
View source
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<img class="card-img-top no-aa" widht="100%"
src="/img/space-shooter.png"
/>
<div class="card-body">
<p class="card-text">
The space shooter is an arcade game, where you have to
shoot enemies before they descend down the screen. It shows
the basics of game development in tophat, featuring things
like movement, collision handling, particles and GUI.
</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a
href="https://tophat2d.dev/examples/space-shooter"
class="btn btn-sm btn-outline-secondary"
>
Play
</a>
<a
href="https://github.com/tophat2d/tophat/tree/main/demos/space-shooter"
class="btn btn-sm btn-outline-secondary"
>
View source
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<img class="card-img-top no-aa" widht="100%"
src="/img/tetris.png"
/>
<div class="card-body">
<p class="card-text">
This is an implementation of a famous block game only using
the canvas.um module to draw graphics. It show many ways
to add special effects to your games.
</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a
href="https://tophat2d.dev/examples/tetris"
class="btn btn-sm btn-outline-secondary"
>
Play
</a>
<a
href="https://github.com/tophat2d/tophat/tree/main/demos/tetris"
class="btn btn-sm btn-outline-secondary"
>
View source
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card shadow-sm">
<img class="card-img-top" widht="100%"
src="/img/pomodoro.png"
/>
<div class="card-body">
<p class="card-text">
A pomodoro timer made in tophat. It features a custom GUI
system with fancy transitions and nine-patch rect based
controls.
</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a
href="https://tophat2d.dev/examples/pomodoro"
class="btn btn-sm btn-outline-secondary"
>
Play
</a>
<a
href="https://git.sr.ht/~mrms/tophat/tree/main/item/examples/pomodoro"
class="btn btn-sm btn-outline-secondary"
>
View source
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container pt-5 pb-5">
<h2 class="mb-3 text-center">Projects made in tophat</h2>
</div>
<div style="background-color: black; color: white">
<div class="container">
<div class="row row-cols-1 row-cols-lg-2 pt-5">
<div class="col mb-3">
<h3>SAVESCUM</h3>
<p>
<a href="https://ske.land/savegame">SAVESCUM</a> is a puzzle
platformer that's being worked on by Sviatoslav Shatunov (also
known as ske). It revolves around saving and resetting the
game's state to solve puzzles and get through the levels.
</p>
<a href="https://skejeton.itch.io/savescum" class="btn btn-outline-primary">
Play the Prologue
</a>
</div>
<div class="col">
<img src="/img/savescum.png" style="width: 100%" />
</div>
</div>
</div>
</div>
<div style="background-color: #222221; color: white">
<div class="container">
<div class="row row-cols-1 row-cols-lg-2 pt-5 pb-5">
<div class="col">
<img src="/img/fem3.gif" style="width: 100%" />
</div>
<div class="col mb-3">
<h3>I ❤︎ FEM</h3>
<p>
A finite element method demo in Umka and tophat made by
Vasiliy Tereshkov. This demo models mechanical stresses and
deformations in elastic materials and can serve as a
tutorial for learning the fundamentals of finite element
analysis.
</p>
<p>
The project is deliberalely kept very simple. It consists of three main parts:
</p>
<ul>
<li><b>2D editor</b>, a GUI tool for entering plate geometry, constraints and forces, as well as material properties</li>
<li><b>Triangulation procedure</b> that computes the Delaunay triangular mesh using the Bowyer-Watson algorithm, with an enhancement to support insertion of plate boundary edges missing from the vanilla triangulation</li>
<li><b>Finite element solver</b> that constructs the stiffness matrices for all the mesh triangles, combines them into the global stiffness matrix and solves the linear equations w.r.t. vertex displacements. It also computes the equivalent stresses using the von Mises criterion</li>
</ul>
<a href="https://vtereshkov.github.io/fem/" class="btn btn-primary">
Try Online
</a>
<a href="https://github.com/vtereshkov/fem" class="btn btn-outline-primary">
Source Code
</a>
</div>
</div>
</div>
</div>
<div style="background-color: #757272; color: white">
<div class="container">
<div class="row row-cols-1 row-cols-lg-2 pb-5 pt-5">
<div class="col mb-3">
<h3>Money, please!</h3>
<p>
<strong>Money, please!</strong> is a fast-paced item
flipping game inspired by <em>Papers, Please</em>, created
during the GMTK Jam by <a href="https://ske.land"
target="_blank">skejeton</a>. Players must buy, sell, and
trade items to earn enough profit to pay the rent and avoid
eviction.
</p>
<a href="https://skejeton.itch.io/moneyplease" class="btn btn-primary">
Play the Game
</a>
</div>
<div class="col">
<img src="/img/moneyplease.png" style="width: 100%" />
</div>
</div>
</div>
</div>
<div style="background-color: black; color: white">
<div class="container">
<div class="row row-cols-1 row-cols-lg-2 pt-5 pb-5">
<div class="col">
<img src="/img/spacesim.png" style="width: 100%" />
</div>
<div class="col mb-3">
<h3>Space Simulator</h3>
<p>
A 3D orbital rendez-vous and docking simulation made with
Umka and Tophat. It uses a custom software renderer written
in pure Umka, with Tophat as a 2D drawing backend.
</p>
<a href="https://vtereshkov.github.io/space-sim/" class="btn btn-primary">
Try Online
</a>
<a href="https://github.com/vtereshkov/space-sim" class="btn btn-outline-primary">
Source Code
</a>
</div>
</div>
</div>
</div>
<div style="background-color: #488e51; color: white">
<div class="container">
<div class="row row-cols-1 row-cols-lg-2 pt-5 pb-5">
<div class="col mb-3">
<h3>Rail dispatcher game</h3>
<p>
This game is about dispatching trains at a 1920's train
station in Czechoslovakia. You need to make sure trains run
at schedule and, most importantly, don't crash into each
other. The source code for the game is yet to be released,
but I've been creating a series of
<a href="https://mrms.cz/game" style="color:
#80c668">development logs</a>.
</p>
</div>
<div class="col">
<img src="/img/rail.png" style="width: 100%" />
</div>
</div>
</div>
</div>
</div>
<div class="container">
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
<a href="/" class="d-flex align-items-center justify-content-center mb-3 mb-md-0 me-md-auto link-dark text-decoration-none">
<img src="/logo.png" class="bi me-2 no-aa" height="24" />
</a>
<ul class="nav justify-content-end">
<li class="nav-item"><a href="/" class="nav-link px-2 text-muted">Home</a></li>
<li class="nav-item"><a href="https://tophat2d.dev/playground" class="nav-link px-2
text-muted">Playground</a></li>
<li class="nav-item"><a href="https://docs.tophat2d.dev" class="nav-link px-2
text-muted">Docs</a></li>
<li class="nav-item"><a href="/dl" class="nav-link px-2
text-muted">Downloads</a></li>
<li class="nav-item"><a href="https://discord.gg/PcT7cn59h9"
class="nav-link px-2 text-muted">Discord</a></li>
<li class="nav-item"><a href="https://github.com/tophat2d/tophat"
class="nav-link px-2 text-muted">GitHub</a></li>
<li class="nav-item"><a href="https://umbox.tophat2d.dev/"
class="nav-link px-2 text-muted">Packages</a></li>
</ul>
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
</body>
</html>