I want to call an external script loaded in the dom which will make an api call when a ‘gameover’ event is fired in Phaser…how do i accomplish this ?
Is it possible to call an external script in phaser ?
If its not, then is there a way to listen for phaser events in an external script and call the api from there?