User prompt
Please fix the bug: 'TypeError: LK.getHighScore is not a function. (In 'LK.getHighScore()', 'LK.getHighScore' is undefined)' in or related to this line: 'var highScore = Math.max(score, LK.getHighScore());' Line Number: 146
User prompt
Show high score when you die.
User prompt
You should die, Skor, when you die.
User prompt
Make a background of people looking.
User prompt
Make the plane bigger!
User prompt
And the bullets are a little slow.
User prompt
The blocks can go very much faster.
User prompt
The blocks may go a little fast.
User prompt
The blocks can move from left to right, and from right to left.
Initial prompt
Penri shooter
===================================================================
--- original.js
+++ change.js
@@ -134,10 +134,9 @@
if (hearts <= 0) {
LK.effects.flashScreen(0xff0000, 1000);
LK.showGameOver();
console.log("Skor has died."); // Log Skor's death
- var highScore = Math.max(score, LK.getHighScore());
- LK.setHighScore(highScore);
+ var highScore = Math.max(score, highScore || 0);
var highScoreTxt = new Text2('High Score: ' + highScore, {
size: 100,
fill: "#ffffff"
});