sparkle-engine

Class SceneAbstract

场景

Example

class GameScene extends Scene{
preload(){
engine.loader.baseUrl = "."
engine.resource.loadTexture("static_img", "ground.png")
engine.resource.loadTexture("entity_img", "img.png")
}
create(){
retrun Container
}
}

Constructors

Methods

Constructors

Methods

  • 预加载,所有需要的资源可以在此处加载

    Returns void