При создании экземпляра Scene используется объект App
This commit is contained in:
@@ -14,7 +14,7 @@ player.obj.ticker = () => {
|
||||
player.obj.x = player.x;
|
||||
};
|
||||
|
||||
let firstScene = new ujs.Scene(app.canvas, app.context, 400, 400);
|
||||
let firstScene = new ujs.Scene(app, 400, 400);
|
||||
let layerInstances = new ujs.SceneLayer('Instances', [player.obj]);
|
||||
firstScene.addLayer(layerInstances);
|
||||
app.scene = firstScene;
|
||||
|
||||
Reference in New Issue
Block a user