1 Star 0 Fork 0

nenge/emulatorjs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
nenge-nenge nenge lala~ c3bfc84 3年前
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

About

source by www.emulatorjs.com version 0.4.70

what's new in 0.4.70

  • gba:mgba version-6 support RTC.but new one can't using 'Fast Forward',if you set system 'mgba' will use old one to play 'gba'.
  • snes:
  • nes:

Change

2020/04/03

  • fix FS err code
  • add SaveState SaveSRM ...

old

  • Remove source indexDB/ajax-get Function
  • Add NengeDBFS function SAVE/fetch file. make it to be fast!
  • keep [www.emulatorjs.com] ads in code.should not harm others!
  • add resize canvans UI,like the 'nds' game will better show.

#How to use

    <script src="assets/js/NengeDBFS.js"></script>
    <app-emujs system='gb' language="zh" gameUrl='rooms/宝可梦 - 比卡超.7z' style="width: 100%;height:100vh !important;"></app-emujs>

or

    <script src="assets/js/NengeDBFS.js"></script>
    <div style="width: 100%;height:100%;position:absolute;left: 0px;top: 0px;right:0px;z-index: 11;" id="game" ></div>
    <script>NengeDBFS.READY(
        '#game',
        {
            gameurl:'rooms/宝可梦 - 比卡超.7z',
            system:'gb',
            language:'zh'
            /*
            Other parameter reference see http://www.emulatorjs.com/nes.html
            */
        });
        //when document ready full option
        new EJS(
            '#game',
            {
                gameurl:'rooms/宝可梦 - 比卡超.7z', //required
                system:'gb', //required
                //optional
                _system:true, // using old system cores
                language:'zh', // see NengeDBFS under
                gameId:'', //set Unique ID on Netplay
                biosurl:'', //set bios
                cheats:'',//set check code like  'aabbccdd xx\naabbccdd xx\n'
                gameparenturl:'',
                gamepatchurl:'', //add ips .. game patch
                SaveState:async function (state,img){
                    //this  = ejs
                    //state u8
                    //img u8
                    //game FileName this.fileName
                    //when user save
                },
                SaveSRM:async function (srm){
                    //srm/dsv is save u8
                    //this = ejs
                    //when user save
                },
                LoadState:async function (olddata){
                    ///olddata = {contents:u8,timestamp:Date}
                    // web user load game will check or down
                    //this  = ejs
                    let FileTime = olddata&&olddata.timestamp.valueOf();
                    return await this.DBFS.FectchItem(
                        url:'your server host?gamename='+this.systemt+'-'+this.fileName+'&time='+ FileTime,
                        upack:true //if this is zip
                    );
                },
                LoadSRM:async function (olddata){
                    ///olddata = {contents:u8,timestamp:Date}
                    // web user load game will check or down
                    //this  = ejs
                    let FileTime = olddata&&olddata.timestamp.valueOf();
                    //if(FileTime>xxx) return ;
                    return await this.DBFS.FectchItem(
                        url:'your server host?gamename='+this.systemt+'-'+this.fileName+'&time='+ FileTime,
                        upack:true //if this is zip
                    );
                }
            }
        );
    <script>

LANGUAGE

self.LANGUAGE = {
    'zh': {...}
}

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nenge/emulatorjs.git
git@gitee.com:nenge/emulatorjs.git
nenge
emulatorjs
emulatorjs
master

搜索帮助