Lib
.rs
›
#
rustdoc
#
running
#
doom
doom-rustdoc
在Rustdoc中运行Doom
作者:
Kestrer
安装
API参考
源代码
1个稳定版本
1.0.0
2021年4月13日
#
6
in
#doom
无许可证
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/
[email protected]
", "./DOOM/DOOM.EXE"); }, }); document.title = "DOOM"; }); </script>
无运行时依赖