keenwon / flappy-pig Goto Github PK
View Code? Open in Web Editor NEW原生Javascript实现的小游戏《Flappy Pig》
Home Page: http://keenwon.com/demo/201403/flappy-pig.html
原生Javascript实现的小游戏《Flappy Pig》
Home Page: http://keenwon.com/demo/201403/flappy-pig.html
竖直上抛的公式vt-(1/2)gt^2,但是我在源码中看到你使用的公式是vt-2gt^2,这是为什么呢?
写博客的时候对源码中有一个地方有些小小的费解,源码中pig.js中添加监听函数是这么写的:
t._addListener(overCallback);
_addListener: function (overCallback) {
this._overCallback = overCallback;
}
为什么不直接写成t._overCallback = overCallback呢,感觉这里是不是有些多余了呢?
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.