Several years ago, we studied the demo project of cocos2d, which is based on the cocos2d js game engine. The whole game is written in js.
Play: drag the mouse to move the plane
Screenshot of the game:
cocos2dx: game engine
res: store game materials (pictures)
src: game source code
Posted on Wed, 16 Oct 2019 17:22:36 -0400 by god_zun
getBoundingClientRect is used to get the location collection of an element relative to the window. There are top, right, bottom, left and other attributes in the collection.
let client = e.target.getBoundingClientRect();
client.width // width
client.height // height
client.top // Top margin (above relative viewing are ...
Posted on Wed, 16 Oct 2019 06:22:16 -0400 by mrvanjohnson
At present, the chart framework in the form of web is very popular. The representative of China is echart. I have used it several times. It's very powerful and easy to use. It's open-source and free. Don't use it too well. The built-in charts and dashboards are very rich, and the presentation forms are also very diverse.
The arc prog ...
Posted on Wed, 16 Oct 2019 01:55:43 -0400 by twister47
In recent days, I've been reviewing the airplane battle of wechat games, and I'm thinking about my life while playing. How can this airplane battle be done so well? It's easy to operate and get started.
Help squatting toilet, YP and rice circle girls have one thing to cheer them up when they are bored! Let their left / right hand move rhythmic ...
Posted on Tue, 15 Oct 2019 17:57:19 -0400 by sickness01
FlatUI is no stranger to front-end developers nowadays. FlatUI design has become more and more popular in recent years. Perhaps because the resolution of PC and mobile devices is getting higher and higher, FlatUI looks more pleasant, while the texture color produced by gradient color is not flattened to be more cordial.
Flat UI is a ...
Posted on Mon, 14 Oct 2019 20:51:47 -0400 by Molly
(It's more convenient to see the source code on the horizontal screen of mobile phone)
Note: The java source code analysis part is based on the version of Java 8 without special instructions.
Java thread pool is a hard bone. Studying the source code of thread pool can not only improve the understanding of Java concurrent pr ...
Posted on Mon, 14 Oct 2019 16:30:17 -0400 by 00tank
Question Exchange Please Contact -"Group Name: IT Project Exchange Group; Group Number: 245022761
QListWidget designs a software to display file attributes in directories
Get file attributes with QFileInfo.
Directory can use QDir to get file information, file name
Posted on Mon, 14 Oct 2019 14:17:47 -0400 by RicScott
Fabric.js is a library that can simplify Canvas programming. Fabric.js provides Canvas with the missing object model, svg parser, interaction and a whole set of other indispensable tools. Fabric.js can do many things, as follows:
Create and fill graphics on Canvas (including pictures, text, regular graphics and complex path ...
Posted on Mon, 14 Oct 2019 06:03:08 -0400 by kabucek1
This article was first published on vivo Internet Technology Wechat Public Number. Links: https://mp.weixin.qq.com/s/cPLkefpEb3w12-uoiqzTig Author: Lian Lingneng
There are many solutions for image loading on Android, but Glide is officially recognized. Glide provides a simple and easy-to-use api, and the whole framework is easy to expand. ...
Posted on Sun, 13 Oct 2019 23:59:18 -0400 by chuddyuk
> Online Experience Links:
In the previous article, we talked about the scene layout, material resources, physical rigid body and collision components of the 3D objects in the game of "Brick Playing". Next, this article focuses on "bullet launching" and "camera moving". W ...
Posted on Sun, 13 Oct 2019 22:53:31 -0400 by Liodel