p5.js 游戏快速入门 (2023-03-20)
这是一个 p5.js + TypeScript + webpack 入门模板,开箱即用。包含精简的 webpack 和 tsconfig 配置文件,方便你根据项目需求调整。配置文档中的相关链接可供参考,尤其适合不熟悉 webpack 和 tsconfig 设置的用户。
使用方法:
- 克隆项目到本地
- 使用你常用的包管理器(yarn 或 npm)安装依赖
- (可选) 如果你想在自己的项目中使用,请删除 .git 文件夹并使用
git init
初始化一个新的 git 仓库,然后用git remote add origin <你的仓库地址>
关联远程仓库。
项目脚本:
yarn start
yarn build
p5game20mar-main.zip
预估大小:12个文件
p5game20mar-main
文件夹
webpack.config.js
1KB
src
文件夹
index.html
176B
sketch.ts
1KB
index.ts
96B
index.css
174B
types
文件夹
.gitkeep
文件夹
assets
文件夹
7.64KB
文件大小:
评论区