Imitating wechat to play airplane game webpage, based on cocos2d JS game engine, online trial, including source code

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 Trial address Source address Screenshot of the game: Document description cocos2dx: game engine res: store game materials (pictures) src: game source code cocos2d.js ...

Posted on Wed, 16 Oct 2019 17:22:36 -0400 by god_zun

Get page relative margins

1.getBoundingClientRect() 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

Qt writing custom control 71 arc progress bar

I. Preface 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

500 lines of code, teach you to write a wechat airplane battle with python

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

Qt Writing Custom Control 70-Flattened flatui

I. Preface 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

Deep Analysis of Thread Pool in Dead java Thread Series: Architecture

(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. brief introduction 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

QListWidget designs a software to display file attributes in directories

Question Exchange Please Contact -"Group Name: IT Project Exchange Group; Group Number: 245022761 design goal 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        Implem ...

Posted on Mon, 14 Oct 2019 14:17:47 -0400 by RicScott

FabricJs Scheme of Dynamic Poster Marketing

brief introduction 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

Glide caching process

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

Cocos Creator 3D Bullet Launching and Camera Smooth Moving

> Online Experience Links: http://example.creator-star.cn/block3d/ 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