Skip to content

Commit

Permalink
fix grid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nakasyou authored Dec 28, 2022
1 parent 9d7705c commit 7329192
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/kaguraapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ class{
this.app=new PIXI.Application(pixiArgs);

this.app.renderer.resize(options.width, options.height);


this.grid=new kagura.Grid(32,this.view.width,this.view.height);

let StartScene=options.StartScene;
this.scene=this.newClass(StartScene);
if(options.autoViewSize){
Expand All @@ -31,7 +33,6 @@ class{
});
}
this.view=this.app.view;
this.grid=new kagura.Grid(32,this.view.width,this.view.height);
this.keyboard=new kagura.Keyboard(document);
this.touchs=new kagura.Touches(this.view);

Expand Down Expand Up @@ -111,4 +112,4 @@ class{
fullscreen(){
kagura.FullScreen(document)
}
}
}

0 comments on commit 7329192

Please sign in to comment.