···23232424const loader = new Loader([tex, background]);
25252626-let click = vec(0, 0);
2727-2828-game.input.pointers.primary.on('down', (evt) => {
2929- click = evt.worldPos; // might need to change if you have a camera
3030-});
3131-3232-3326const actor = new Actor({ x: 100, y: 100, width: 50, height: 50 });
3427actor.onInitialize = () => {
3528 const sprite = new Sprite({