V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
shoa

做了个 ONScripter 的 Emscripten 移植,在线运行 ONS 模拟器

  •  3
     
  •   shoa · Oct 2, 2021 · 3137 views
    This topic created in 1670 days ago, the information mentioned may be changed or developed.

    前段时间在看 ONScripter 的源码的时候,想到了可以用 Emscripten 将 ONScripter 编译成 wasm,实现 ons 游戏的在线运行,于是就稍微改了改,做出来了。

    受到了 em-dosbox 的启发。

    什么是 ONScripter

    ONScripter 是一个开源的游戏引擎,可以运行 NScripter 格式的游戏(十多年前应用较广)。ONScripter 使用了 SDL 图形库,可移植性较好,此前已被移植到各种平台。

    项目地址

    https://github.com/wcwac/em-onscripter

    DEMO

    ONS 游戏《水仙》的在线版本

    https://7f.pages.dev/

    https://wcwac.github.io/7f/

    使用 BrowserFS 实现资源按需加载,并支持存档功能

    在线运行 ONScripter 有什么意义

    Just for fun

    3 replies    2021-10-05 22:23:10 +08:00
    bgm004
        1
    bgm004  
       Oct 3, 2021 via Android
    手机上要是能居中就好了。
    shoa
        2
    shoa  
    OP
       Oct 3, 2021
    @Track13 手机上没有居中应该是页面缩放的原因。
    我刚刚把页面缩放禁用了( user-scalable=0 ),应该没有这个问题了。
    fox0001
        3
    fox0001  
       Oct 5, 2021
    点赞~!期待能够实现在线选择 rom
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3371 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 11:07 · PVG 19:07 · LAX 04:07 · JFK 07:07
    ♥ Do have faith in what you're doing.