全屏宠物小精灵
原始PokemonHTML5翻版,已针对现代浏览器进行了扩展。
用法
内置的lib/index.html使用用游戏屏幕,选项菜单和管道输入事件填充可用的窗口大小。 它将生成的实例存储为window.FSP 。
要在自己的页面中执行此操作,请使用导出的createFspInterface函数。
import { createFspInterface } from "fullscreenpokemon" ;
createFspInterface ( document . getElementById ( "game" ) ) . then ( ( ) => {
console . log ( "Ready to play! :sparkles:" ) ;
console . log ( FSP ) ;
} ) ;
您也可以直接创建一个具有手动大小的新FullScreenP