import * as PIXI from 'pixi.js';
const app = new PIXI.Application({ background: '#1099bb', resizeTo: window });
document.body.appendChild(app.view);
PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.NEAREST;
const sprite = PIXI.Sprite.from('https://pixijs.com/assets/bunny.png');
sprite.anchor.set(0.5);
sprite.x = app.screen.width / 2;
sprite.y = app.screen.height / 2;
sprite.eventMode = 'static';
sprite.cursor = 'pointer';
sprite.on('pointerdown', onClick);
app.stage.addChild(sprite);
function onClick()
{
sprite.scale.x *= 1.25;
sprite.scale.y *= 1.25;
}