Game Development 4 min read

Developing a WeChat Mini Game with Cocos Creator: Design, Implementation, and Anti‑Cheat Strategies

Senior Tencent engineer Yang Shangzhi details how he built a fast‑paced, endless‑runner WeChat mini‑game with Cocos Creator v1.9.0—choosing it over LayaEngine for better debugging and WeChat integration—describing dynamic map generation, seed‑based anti‑cheat verification, potential skin and level‑creation monetization, and providing source code for developers.

Tencent Cloud Developer
Tencent Cloud Developer
Tencent Cloud Developer
Developing a WeChat Mini Game with Cocos Creator: Design, Implementation, and Anti‑Cheat Strategies

Author Yang Shangzhi, senior engineer at Tencent TiMi Studios, shares his experience creating a WeChat mini‑game using Cocos Creator v1.9.0.

The game is a fast‑paced endless runner similar to “Jump Jump”, where players must tap the screen at the green‑arrowed tiles to jump. It currently implements only an endless mode.

The project was built with Cocos Creator because it offers strong support for WeChat mini‑games and a development workflow similar to Unity, making it easy for developers familiar with Unity to pick up.

The author considered LayaEngine for its ActionScript‑like API, which is convenient for developers coming from Flash, but ultimately chose Cocos Creator due to better debugging support and more comprehensive WeChat mini‑game integration.

The game’s map is generated dynamically with a random algorithm, allowing infinite scrolling; the speed increases over time. The graphics (the sheep) are taken from Cocos’s official demo and are not for commercial use.

Two possible monetization ideas are discussed: selling skins (cute pets) and allowing users to create and share custom levels, with a fee for larger level grids.

An anti‑cheat concept is presented: the server generates a random seed for each game session, the map is built from that seed, and each tile receives a unique verification code. When a score is submitted, the client must also send the verification code, which the server validates using the same algorithm.

The author notes that the implementation is still a prototype, invites interested developers to follow the cloud+ community, and provides a link to download the source code.

All content is authorized by the author for publication on the cloud+ community platform and may not be reproduced without permission.

Game developmentanti-cheatmobile gamingWeChat Mini GameCocos CreatorRandom Map
Tencent Cloud Developer
Written by

Tencent Cloud Developer

Official Tencent Cloud community account that brings together developers, shares practical tech insights, and fosters an influential tech exchange community.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.