Phaser 3游戏开发模板:TypeScript 和 Parcel

此模板为使用 TypeScript 和 Parcel 构建 Phaser 3 游戏提供了一个基础。它适用于那些想要专注于游戏开发而不是构建工具配置的人。

先决条件

  • Node.js
  • npm
  • Parcel

安装说明

  1. 克隆此存储库:
git clone https://github.com/ourcade/phaser3-typescript-parcel-template.git
  1. 安装依赖项:
npm install

入门

运行以下命令启动开发服务器:

parcel index.html
zip
mmorpg-phaser-main.zip 预估大小:32个文件
folder
mmorpg-phaser-main 文件夹
file
.gitignore 39B
file
package.json 1KB
file
package-lock.json 287KB
folder
src 文件夹
folder
classes 文件夹
file
Chest.ts 616B
file
Player.ts 981B
file
UiButton.ts 1KB
folder
scenes 文件夹
file
Boot.ts 1KB
file
Game.ts 3KB
file
Title.ts 766B
file
Ui.ts 717B
file
main.ts 445B
file
index.html 128B
file
LICENSE 1KB
folder
public 文件夹
folder
assets 文件夹
folder
images 文件夹
file
characters.png 22KB
folder
ui 文件夹
file
blue_button02.png 471B
file
blue_button01.png 551B
file
items.png 1KB
file
monsters.png 19KB
file
test_spawner.png 283B
folder
level 文件夹
file
large_level.json 82KB
file
background-extruded.png 2.66MB
file
background.png 1.67MB
file
large_level.tmx 39KB
folder
audio 文件夹
file
PlayerAttack.wav 46KB
file
EnemyDeath.wav 126KB
file
Pickup.wav 30KB
file
PlayerDamage.wav 67KB
file
PlayerDeath.wav 50KB
file
tsconfig.json 608B
file
.eslintrc.js 513B
file
.eslintignore 130B
file
readme.md 4KB
zip 文件大小:4.4MB