var Game = (function(){
(function Game(){
Laya.init(600,800);
this.bg = new window.Background();
Laya.stage.addChild(this.bg);
})();
})();
Background.js
var Background = (function(_super){
function Background(){
Background.super(this);
this.bg1 = new Laya.Sprite();
this.bg1.loadImage("res/background.png");
this.addChild(this.bg1);
}
Laya.class(Background,"Background",_super);
3 个回复
v_xchen_v
赞同来自: thekangbo
A846353427
赞同来自:
cuixueying
赞同来自: