- CSS background instead of pixi.js background

- Refactoring pixi.js code
- Resize game board on browser resize
This commit is contained in:
2021-06-01 13:24:52 +02:00
parent bd70508b29
commit 83855f9acd
2 changed files with 108 additions and 73 deletions

View File

@@ -5,4 +5,9 @@
display: flex;
justify-content: center;
align-items: center;
background: url(/img/background.jpg) no-repeat center center fixed;
-webkit-background-size: cover; /* For WebKit*/
-moz-background-size: cover; /* Mozilla*/
-o-background-size: cover; /* Opera*/
background-size: cover; /* Generic*/
}