laya entry and egret

laya Hen

1, laya resources automatically packaged can be set manually, editing interface in view

2, laya Used editing interface is mornUI, it is parsed into a view of xml

3, laya event inherit dom events

4, sprite width and height defaults to 0, so not listening any event, can only change the width and height by size, or set autoSize = true, or click on a regional approach setting hitArea

5, laya view of the process to create a new editing interface ui page CommonView-> F12 Export -> new class inherits CommonView, attention will automatically add CommonView parsing initialization code layaUI.max.all.ts file, ts as follows

 

6, f12 after the release of packaged remember load

7, laya display pictures in three ways

drawTexture

loadImage

Image class

8, laya and flash animations are basically the same

Egret

1, and flash inheritance hierarchy names are almost the same, the event also imitate flash, basically nothing!

Guess you like

Origin www.cnblogs.com/wangzisheng/p/11307875.html
Recommended