TinyHeart
使用h5的API和canvas开发的一个小游戏。
Install / Use
/learn @luckykun/TinyHeartREADME
使用说明
此项目是一个基于canvas和原生js开发的游戏。整个文件夹直接下载下来即可运行,不需要安装任何插件。
游戏规则
- 大鱼跟着鼠标的位置移动而吃到果实,如吃到红色果实,身体变红,画布下方的个数加1;如吃到蓝色果实,身体变蓝,画布下方的倍数加1。
- 画布右上角显示着小鱼的体力值,初始为10,身体为红色,随着时间的推移,体力值减小,身体颜色变淡。
- 大鱼吃到果实之后可以喂小鱼,此时小鱼的体力值会根据大鱼果实的数量相应增加,画布上方的分值等于画布下方的倍数乘以个数的累加和。
- 当小鱼体力值减到0时,游戏结束;点击画布,则可重新开始游戏。好了,拯救小鱼行动开始,躁起来吧!
Related Skills
node-connect
334.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
334.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.1kCommit, push, and open a PR
