Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by IvaMartyno

  1. Hello, Let's say we want to make a simple 2D game, e.g. Ping-Pong or Asteroids. I have seen that sometimes people use window.innerwidth/height to initialize a PIXI.Application and sometimes they use document.body.clientWidth/clientHeight. app = new PIXI.Application({ width: Math.max(1, window.innerWidth), height: Math.max(1, window.innerHeight), resolution: devicePixelRatio, autoDensity: true, }); Similar for resize events: window.addEventListener('resize', onResize); function onResize(): void { app.renderer.resize(window.innerWidth,
  • Create New...