-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ParkerTomatoes
committed
May 2, 2024
0 parents
commit 725afae
Showing
43 changed files
with
13,128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
scripts/node_modules | ||
scripts/cache | ||
scripts/training | ||
scripts/pouetdatadump-* | ||
.DS_Store | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Copyright (c) 2024 parkertomatoes | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
---- | ||
|
||
This software distributes an image containing a copy of FreeDOS 1.3, which is licensed under the GPL v2 license. FreeDOS is invoked as a seperate application and this software is not a derivative work. The FreeDOS source code is distributed in "image/freedos_source.zip". See "COPYING" in the FreeDOS source archive for more details. | ||
|
||
---- | ||
|
||
This software distributes an unmodified binary copy of SeaBIOS, which is licensed under the LGPL v3 license. See "bios/SEABIOS.COPYING.LESSER" for more details | ||
|
||
---- | ||
|
||
This software distributes an unmodified copy of v86 by copy, which is licensed under the 2-clause BSD license. See "v86/V86.LICENSE" for more details. | ||
|
||
---- | ||
|
||
The copyright of "demos/demos.json" is not covered under this license and belongs to the individual authors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# 2,629 Tiny Demos from Pouet, Running in the Browser | ||
|
||
This website is a gallery of tiny demos scraped from demoscene aggregator [pouet.net](https://pouet.net), all MS-DOS .COM files smaller than 1024 bytes, emulated in the browser for your casual enjoyment. Some are [stunning](?which=88198), some more [basic](?which=52630), some [interactive](?which=61245). Some are [weird](?which=4661), some [don't work](?which=63118), and others straight up [crash the emulator](). | ||
|
||
But there are a lot of gems in there, and it's all there to click around and enjoy without the hassle of loading them into an emulator. | ||
|
||
## Why I Made This | ||
|
||
It wasn't my original idea to build this gallery. Originally, I just wanted to upgrade [Demo Baker](https://parkertomatoes.github.io/demobaker/build.html). | ||
|
||
Back in 2020, I had a dim flicker of brain cell activity: I saw "fits in a tweet" sites like [dwitter](https://www.dwitter.net/), the Windows 95 ["app"](https://github.com/felixrieseberg/windows95) was fresh in memory, and cool [boot sector](https://github.com/nanochess/Pillman) games were getting on HackerNews, and thought "how come no one's made an app-in-a-tweet site for x86?". Turns out [they did](https://github.com/AntoineViau/tweetx86), | ||
but I didn't notice at the time. | ||
|
||
So I barrelled ahead and built a web-app that took an entire 512 bytes boot sector demo, encoded it as base64, | ||
and embedded it a URL: | ||
 | ||
The site ran completely client-side from GitHub static pages, and allowed me to share links on forums to playable browser demos of interesting MBR and DOS demos I found, without needing any server-side storage. The whole x86 app fits in a [link](https://parkertomatoes.github.io/demobaker/?type=com&content=uBMAzRD8uACgjtiOwL7BAr8gFC6tkbvwANHhuBg3cwO4OALoIgAB34PrEHJP6BgAKd%2BD7wjr4q2XrYTkk7AwUMZE%2FwLorgBYUFNRV1C7eQIu15O5CACI%2BNDjcgIxwID%2FEHIHgD0OdJgyBari6YHHOAFYQKgHddVfWVtYw4HHiAmB%2FusCdY2xBbgCAC6lq%2BL7tADNGjsWBPp09okWBPq0Ac0WtAB0As0WiOA8AXUCzSAsSHIMPAlzCLv1Ai7Xov75viDmrZetkzHA6CsAgDb%2F%2BYC4KA54B6Ai5rED0uDoaP%2B9NwG3If%2FVty7%2F1bco%2F9W3NP%2FV65t0A%2BhO%2F4n4MdK5QAH38YjUCMSA5Ad1WrU3OG3%2FEOQ4rQAKEOQ4bQgQ5DitwP4Q5IT%2FdCv2wwV0DDsWAPqwAnIMsAjrCDwAsARyArABhMR1I4jYhMR1HdDodfiwCOv0iRYA%2Bi6iOgKg%2FvmExHUGINx0GojYiET%2BqAW7gP11A7sCAKgMdAL32wHfiXz8wwBC5%2Bf%2F%2F348PH788PD8fjz%2F%2F%2F%2F%2F%2F%2F%2F%2F%2Fzx%2B%2F%2F%2Fn50IAPH7%2F%2F%2F%2F%2Ffjw8ftvb%2F%2F%2F%2FpQAAABgYAAAAPH4%2FDw8%2FfjwAAP5%2FAkICQv9%2FQEJ%2BfgICfwLAA0ACfwJAAv5%2FAkL%2Fe0AKfn4CQP9%2FAACYqpBQmGSgPKhQAQAACAACAAAE&name=Pillman%20(by%20nanochess))! | ||
|
||
## Trying (And Failing) To Make It Even Easier | ||
|
||
This year I set out to upgrade Demo Baker to use the new, dynamic WASM version of V86, improve the presentation a bit, and allow things like titles. | ||
|
||
But I thought, 90% of the things I use this app for comes from [pouet.net](pouet.net). What if you could just drop in a URL from a product page and automatically run the demo? | ||
|
||
Even better, pouet has an [API](https://api.pouet.net/)! | ||
|
||
So I scripted up a test to run the demo, and... remembered why CORS exists: | ||
 | ||
|
||
pouet's API server doesn't support cross-origin browser requests, so API calls from my website to theirs won't work. And I'm too cheap and lazy to write a proxy - I want all this to be hosted statically from Github pages. So, plan A is out. | ||
|
||
|
||
## What if I just cached all the demos? | ||
|
||
1,000 tiny demos are still tiny. If I downloaded 10,000 1k demos from Pouet, the result would be about 10MB, which doesn't sound terrible. So, plan B: What if you provided the URL, and the app fetched the appropriate demo from a secret cache? | ||
|
||
The owners of pouet, wonderful people that they are, also provide a weekly [data dump](https://data.pouet.net) of their product index. That | ||
archive was 300MB though, too big to host in a GitHub page, so a little cleaning was needed. I wrote a NodeJS script to go through the giant JSON file and: | ||
|
||
* Filter out demos that are larger than 1k and not DOS-based | ||
* Strip out unneccessary metadata | ||
* Follow the embedded link to download the demo | ||
* Encode the demo in base64 and stuff in the JSON | ||
|
||
Pretty straightforward... except when it wasn't: | ||
* Many of the downloads are in .zip, .rar, .7z, .arj archives, etc. | ||
* Some archives didn't have COM files or had COM files larger than 1k | ||
* Many demos were linked to an _HTML_ page like this: | ||
 | ||
* Many links were broken/unsafe/etc | ||
|
||
But all that could be worked around. When filenames had an archive extension, I used a [NodeJS 7zip binding](https://github.com/onikienko/7zip-min) to search them for .COM files. scene.org has beautifully static and easy to scrape HTML, so if a URL contains "scene.org" the script follows the link. And it has _lots_ of corner case handlers for missing .COM files, bad links, etc. | ||
|
||
In the end, 2,629 demos were successfully fetched and stored in a JSON that was about 1.411 MB long, just enough to fit on a 3.5" floppy. | ||
|
||
```json | ||
[ | ||
{ | ||
"name":"HaNsA KaOs", | ||
"id":"698", | ||
"content":"uBMAzRB...zRC0TM0hAAAA" | ||
}, { | ||
"name":"Bump Is Possible", | ||
"id":"1380", | ||
"content":"kLkAEIzIAu...sPSTs"}, | ||
}, | ||
/* ... +2,627 entries */ | ||
] | ||
``` | ||
|
||
## From A Cache To Gallery | ||
|
||
When you visit the [old version](https://parkertomatoes.github.io/v86/) of the demo baker page, it automatically started playing the boot sector pillman game by nanochess. Classic boot sector feat, but a little boring after 100 refreshes. So instead I rigged it to play a random demo from the index, and... | ||
|
||
 | ||
_[lyuk](https://www.pouet.net/prod.php?which=51780) by [Exceed](https://www.pouet.net/groups.php?which=2)_ | ||
|
||
Cool. Refresh.... | ||
|
||
 | ||
_[HYDRAULIC PIXELS](https://www.pouet.net/prod.php?which=86931) by [Astroidea](https://www.pouet.net/groups.php?which=18)_ | ||
|
||
_Is that depth of field!?_ Refresh... | ||
|
||
 | ||
_[Blobs](https://www.pouet.net/prod.php?which=4034) by [Proxium](https://www.pouet.net/groups.php?which=95)_ | ||
|
||
_Psychodelic_. Refresh... | ||
|
||
This went on for an hour before I realized, this random demo should be the whole thing. I built a gallery with back, random forward buttons, the title of each demo, and a link back to the pouet page. An `<input>` with `<datalist>` served as a good enough search bar to look demos up by title. | ||
|
||
## One Last Task - Attribution | ||
|
||
At this point, I realized there really needs to be a link on each demo to the author's page. So, I wrote one last script to augment the demo list with the author using the original data dump. But it turns out the "author" field is pretty complicated: | ||
* The demos can have one or more groups | ||
* The demos can have one or more people in "credits" | ||
* If nothing else, the demo has an uploader | ||
|
||
## Wrapping Up | ||
|
||
I'm unreasonably happy with this throwaway project - I'm Pygmalion over here. Staring at a random parade of tiny demos is incredibly hypnotic and beautiful. | ||
|
||
Not all the demos work well, many have palette issues and some trigger illegal opcode errors. But this has actually help me find a few issues to improve v86. | ||
|
||
Copyright is reserved by the creators. Legally, I consider this site an archive, like [demozoo](https://demozoo.org/), or [scene.org](https://scene.org/), or [youtube]() which already host all these demos. Its new purpose is to help you discover, appreciate, and learn more about forgotten, somewhat modest, but still extremely cool old demos. | ||
|
||
This is a one-off project for me and I don't intend to update the list week to week. If a demo author finds their work here and doesn't want it here, please file a github issue and I'll promptly remove it. | ||
|
||
Now, please enjoy this [rotating 3d hat](https://parkertomatoes.github.io/demo-parade/?which=71639) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
GNU LESSER GENERAL PUBLIC LICENSE | ||
Version 3, 29 June 2007 | ||
|
||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | ||
Everyone is permitted to copy and distribute verbatim copies | ||
of this license document, but changing it is not allowed. | ||
|
||
|
||
This version of the GNU Lesser General Public License incorporates | ||
the terms and conditions of version 3 of the GNU General Public | ||
License, supplemented by the additional permissions listed below. | ||
|
||
0. Additional Definitions. | ||
|
||
As used herein, "this License" refers to version 3 of the GNU Lesser | ||
General Public License, and the "GNU GPL" refers to version 3 of the GNU | ||
General Public License. | ||
|
||
"The Library" refers to a covered work governed by this License, | ||
other than an Application or a Combined Work as defined below. | ||
|
||
An "Application" is any work that makes use of an interface provided | ||
by the Library, but which is not otherwise based on the Library. | ||
Defining a subclass of a class defined by the Library is deemed a mode | ||
of using an interface provided by the Library. | ||
|
||
A "Combined Work" is a work produced by combining or linking an | ||
Application with the Library. The particular version of the Library | ||
with which the Combined Work was made is also called the "Linked | ||
Version". | ||
|
||
The "Minimal Corresponding Source" for a Combined Work means the | ||
Corresponding Source for the Combined Work, excluding any source code | ||
for portions of the Combined Work that, considered in isolation, are | ||
based on the Application, and not on the Linked Version. | ||
|
||
The "Corresponding Application Code" for a Combined Work means the | ||
object code and/or source code for the Application, including any data | ||
and utility programs needed for reproducing the Combined Work from the | ||
Application, but excluding the System Libraries of the Combined Work. | ||
|
||
1. Exception to Section 3 of the GNU GPL. | ||
|
||
You may convey a covered work under sections 3 and 4 of this License | ||
without being bound by section 3 of the GNU GPL. | ||
|
||
2. Conveying Modified Versions. | ||
|
||
If you modify a copy of the Library, and, in your modifications, a | ||
facility refers to a function or data to be supplied by an Application | ||
that uses the facility (other than as an argument passed when the | ||
facility is invoked), then you may convey a copy of the modified | ||
version: | ||
|
||
a) under this License, provided that you make a good faith effort to | ||
ensure that, in the event an Application does not supply the | ||
function or data, the facility still operates, and performs | ||
whatever part of its purpose remains meaningful, or | ||
|
||
b) under the GNU GPL, with none of the additional permissions of | ||
this License applicable to that copy. | ||
|
||
3. Object Code Incorporating Material from Library Header Files. | ||
|
||
The object code form of an Application may incorporate material from | ||
a header file that is part of the Library. You may convey such object | ||
code under terms of your choice, provided that, if the incorporated | ||
material is not limited to numerical parameters, data structure | ||
layouts and accessors, or small macros, inline functions and templates | ||
(ten or fewer lines in length), you do both of the following: | ||
|
||
a) Give prominent notice with each copy of the object code that the | ||
Library is used in it and that the Library and its use are | ||
covered by this License. | ||
|
||
b) Accompany the object code with a copy of the GNU GPL and this license | ||
document. | ||
|
||
4. Combined Works. | ||
|
||
You may convey a Combined Work under terms of your choice that, | ||
taken together, effectively do not restrict modification of the | ||
portions of the Library contained in the Combined Work and reverse | ||
engineering for debugging such modifications, if you also do each of | ||
the following: | ||
|
||
a) Give prominent notice with each copy of the Combined Work that | ||
the Library is used in it and that the Library and its use are | ||
covered by this License. | ||
|
||
b) Accompany the Combined Work with a copy of the GNU GPL and this license | ||
document. | ||
|
||
c) For a Combined Work that displays copyright notices during | ||
execution, include the copyright notice for the Library among | ||
these notices, as well as a reference directing the user to the | ||
copies of the GNU GPL and this license document. | ||
|
||
d) Do one of the following: | ||
|
||
0) Convey the Minimal Corresponding Source under the terms of this | ||
License, and the Corresponding Application Code in a form | ||
suitable for, and under terms that permit, the user to | ||
recombine or relink the Application with a modified version of | ||
the Linked Version to produce a modified Combined Work, in the | ||
manner specified by section 6 of the GNU GPL for conveying | ||
Corresponding Source. | ||
|
||
1) Use a suitable shared library mechanism for linking with the | ||
Library. A suitable mechanism is one that (a) uses at run time | ||
a copy of the Library already present on the user's computer | ||
system, and (b) will operate properly with a modified version | ||
of the Library that is interface-compatible with the Linked | ||
Version. | ||
|
||
e) Provide Installation Information, but only if you would otherwise | ||
be required to provide such information under section 6 of the | ||
GNU GPL, and only to the extent that such information is | ||
necessary to install and execute a modified version of the | ||
Combined Work produced by recombining or relinking the | ||
Application with a modified version of the Linked Version. (If | ||
you use option 4d0, the Installation Information must accompany | ||
the Minimal Corresponding Source and Corresponding Application | ||
Code. If you use option 4d1, you must provide the Installation | ||
Information in the manner specified by section 6 of the GNU GPL | ||
for conveying Corresponding Source.) | ||
|
||
5. Combined Libraries. | ||
|
||
You may place library facilities that are a work based on the | ||
Library side by side in a single library together with other library | ||
facilities that are not Applications and are not covered by this | ||
License, and convey such a combined library under terms of your | ||
choice, if you do both of the following: | ||
|
||
a) Accompany the combined library with a copy of the same work based | ||
on the Library, uncombined with any other library facilities, | ||
conveyed under the terms of this License. | ||
|
||
b) Give prominent notice with the combined library that part of it | ||
is a work based on the Library, and explaining where to find the | ||
accompanying uncombined form of the same work. | ||
|
||
6. Revised Versions of the GNU Lesser General Public License. | ||
|
||
The Free Software Foundation may publish revised and/or new versions | ||
of the GNU Lesser General Public License from time to time. Such new | ||
versions will be similar in spirit to the present version, but may | ||
differ in detail to address new problems or concerns. | ||
|
||
Each version is given a distinguishing version number. If the | ||
Library as you received it specifies that a certain numbered version | ||
of the GNU Lesser General Public License "or any later version" | ||
applies to it, you have the option of following the terms and | ||
conditions either of that published version or of any later version | ||
published by the Free Software Foundation. If the Library as you | ||
received it does not specify a version number of the GNU Lesser | ||
General Public License, you may choose any version of the GNU Lesser | ||
General Public License ever published by the Free Software Foundation. | ||
|
||
If the Library as you received it specifies that a proxy can decide | ||
whether future versions of the GNU Lesser General Public License shall | ||
apply, that proxy's public statement of acceptance of any version is | ||
permanent authorization for you to choose that version for the | ||
Library. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.