Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the modified createjs engine suitable for Mini Game development?

Shulou Source: shulou.com Published: 2022-05-31 20:03:16 09月22日 Update

This article shows you how the modified createjs engine is suitable for Mini Game development. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Createjs is a lightweight game engine, so light that it doesn't even feel like an engine. At the beginning of the release of Mini Game, Uncle Hua encapsulated a corresponding createjs version engine.

Specific usage:

Require ('.. / weapp-adapter.js') / / official adapter

Window.createjs = require ('.. / createLib/create.js')

Window.rootStage = new createjs.Stage (canvas) / / canvas is the home domain home screen canvas

Window.createjs.Ticker.framerate = 60

Window.createjs.Ticker.addEventListener ("tick", tick)

Function tick (e) {

RootStage.update ()

}

It is a little difficult for this engine to do large games, but small and simple games are all right. Students who need them can take them.

Ps. It also applies in subdomains.

The above content is what the modified createjs engine suitable for Mini Game development is like. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Engine Mini Game development content skills knowledge lightweight laborious concise concise early classmate official that is articles more versions articles industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Apple macOS Linux vpn