chat functions

This commit is contained in:
2021-05-26 16:26:05 +02:00
parent 18ccd51749
commit 6f62883275
13 changed files with 314 additions and 88 deletions

20
public/js/index.js Normal file
View File

@@ -0,0 +1,20 @@
const app = new PIXI.Application({
autoResize: true,
resolution: devicePixelRatio,
backgroundColor: 0x0073db
});
document.getElementById('game').appendChild(app.view);
// -------------------------------------- code --------------------------------------
// ------------------------------------ end code ------------------------------------
// Resize (Do Not modify)
window.addEventListener('resize', resize);
function resize() {
let game = document.getElementById('game');
app.renderer.resize(game.offsetWidth, game.offsetHeight);
}
resize();