You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
game.createScene('Main4', {
init: function(key) {
var container = new game.Container();
container.position.set(100, 100);
container.addTo(this.stage);
var sprite = new game.Sprite('circle.png');
sprite.position.set(100, 100);
sprite.addTo(container);
var container = new game.Container();
container.position.set(100, 300);
container.addTo(this.stage);
var text = new game.Text('Hello Panda');
text.position.set(100, 100);
text.addTo(container);
var container = new game.Container();
container.position.set(300, 100);
container.addTo(this.stage);
var grap = new game.Graphics();
grap.drawRect(0, 0, sprite.width, sprite.height);
grap.position.set(100, 100);
grap.addTo(container);
}
});
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: