【文件属性】:
文件名称:移相器优先:从移相器开始
文件大小:1.27MB
文件格式:ZIP
更新时间:2021-02-04 00:26:08
game typescript webpack phaser breakout
移相器第一场比赛
Phaser使用Typescript制作的突破游戏。
要求
这是使用Node v8.9.1完成的。
运行项目
一,安装依赖
$ npm install
服务器使用ts-node在Typescript中运行,无需先编译(仅构建了游戏脚本,因此可以将其添加到HTML文件中)。 之后,您可以在http://localhost:3000/运行该应用程序
$ npm run serve
仅构建游戏应用程序脚本
$ npm run build
并运行一个简单的测试来提供索引文件
$ npm run test
致谢
该项目的代码基于》一书
检出以获取有关资产的信息。
【文件预览】:
phaser-first-master
----eslintrc.yaml(901B)
----index.html(444B)
----.eslintrc.js(564B)
----webpack.config.js(1022B)
----src()
--------scripts()
--------server()
----tsconfig.json(270B)
----assets()
--------images()
--------sound()
--------phaser.png(176KB)
----README.md(862B)
----.gitignore(39B)
----package-lock.json(120KB)
----package.json(1KB)