const enemyAI = new AI(); enemyAI.on('detectPlayer', () => { // AI logic to chase the player }); game.addAI(enemyAI);
There was an error while loading. Please reload this page.