I have forked your repo and customized it to add instructions and other simple things and have themed it. I am trying to add a game-over screen so that I can try to implement a high score screen. I cannot figure out the logic. I can get the app.js to talk to the console but I have tried for hours to add logic to do this .. for example one of the things I tried was:
// Send a message to the parent window
if (this.score === 0) {
window.parent.postMessage("gameOver", "*");
} else {
console.log("Score is not zero. Message not sent.");
}
and added a listener to the HTML ... but it wont talk! (I defined the app.Actors.Player as well).
I appreciate any insight. Warm Regards