chat functions
This commit is contained in:
20
public/js/index.js
Normal file
20
public/js/index.js
Normal 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();
|
||||
Reference in New Issue
Block a user