luckykun / tinyheart Goto Github PK
View Code? Open in Web Editor NEW使用h5的API和canvas开发的一个小游戏。
使用h5的API和canvas开发的一个小游戏。
没有用玩不了
你应该清楚,ul是无序列表,ol是有序列表
这里完全可以这样写:
<ol>
<li>大鱼跟着鼠标的位置移动而吃到果实,如吃到红色果实,身体变红,画布下方的个数加1;如吃到蓝色果实,身体变蓝,画布下方的倍数加1。</li>
<li>画布右上角显示着小鱼的体力值,初始为10,身体为红色,随着时间的推移,体力值减小,身体颜色变淡。</li>
<li>大鱼吃到果实之后可以喂小鱼,此时小鱼的体力值会根据大鱼果实的数量相应增加,画布上方的分值等于画布下方的倍数乘以个数的累加和。</li>
<li>当小鱼体力值减到0时,游戏结束;点击画布,则可重新开始游戏。好了,拯救小鱼行动开始,躁起来吧!</li>
</ol>
效果:
实现,无需自己加序号
(望采纳)
慕课网上是你的吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.