p5.js 游戏快速入门 (2023-03-20)

这是一个 p5.js + TypeScript + webpack 入门模板,开箱即用。包含精简的 webpack 和 tsconfig 配置文件,方便你根据项目需求调整。配置文档中的相关链接可供参考,尤其适合不熟悉 webpack 和 tsconfig 设置的用户。

使用方法:

  1. 克隆项目到本地
  2. 使用你常用的包管理器(yarn 或 npm)安装依赖
  3. (可选) 如果你想在自己的项目中使用,请删除 .git 文件夹并使用 git init 初始化一个新的 git 仓库,然后用 git remote add origin <你的仓库地址> 关联远程仓库。

项目脚本:

  • yarn start
  • yarn build
zip
p5game20mar-main.zip 预估大小:12个文件
folder
p5game20mar-main 文件夹
file
webpack.config.js 1KB
folder
src 文件夹
file
index.html 176B
file
sketch.ts 1KB
file
index.ts 96B
file
index.css 174B
folder
types 文件夹
folder
.gitkeep 文件夹
folder
assets 文件夹
file
favicon.ico 15KB
file
tsconfig.json 583B
file
LICENSE 1KB
file
README.md 1KB
file
.gitignore 2KB
file
package.json 1KB
zip 文件大小:7.64KB