#rustdoc #running #doom

doom-rustdoc

Doom running in Rustdoc

1 stable release

1.0.0 Apr 13, 2021

#5 in #doom

Unlicense

2KB

<script src="https://js-dos.com/cdn/js-dos-api.js"></script> <script> addEventListener("load", () => { document.open(); document.close(); const s = document.createElement("style"); s.append(` body { margin: 0; display: flex; align-items: center; justify-content: center; background: black; } #dosbox, .dosbox-container, .dosbox-overlay { width: 640px; height: 400px; } `); document.head.append(s); const container = document.createElement("div"); container.id = "dosbox"; document.body.append(container); new Dosbox({ id: "dosbox", onload: dosbox => { dosbox.run("https://js-dos.com/cdn/upload/DOOM-@evilution.zip", "./DOOM/DOOM.EXE"); }, }); document.title = "DOOM"; }); </script>

No runtime deps