Skip to content

Neos21/practice-phaser-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Practice Phaser + TypeScript

Enter The WebSite

Setup

Phaser.js を TypeScript で書くため Vite で環境構築しています。

# Vite で Vanilla TS 環境を構築する
$ npm init vite@latest
Need to install the following packages:
create-vite@5.2.3
Ok to proceed? (y) y
✔ Project name: … practice-phaser-ts
✔ Select a framework: › Vanilla
✔ Select a variant: › TypeScript

Scaffolding project in /home/neo/Documents/Dev/Sandboxes/practice-phaser-ts...

Done. Now run:

  cd practice-phaser-ts
  npm install
  npm run dev

# - 初期ファイルを適宜調整する
# - vite.config.ts
# - .github/workflows/deploy-github-pages.yaml

# Phaser.js をインストールする
$ npm install --save phaser

References

Links