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
@@ -60,14 +60,21 @@
/****
* Initialize Game
****/
var game = new LK.Game({
- backgroundColor: 0x000000 //Init game with black background
+ backgroundColor: 0x000000 //Init game with black background
});
/****
* Game Code
****/
+var backgroundPeople = LK.getAsset('backgroundPeople', {
+ anchorX: 0.5,
+ anchorY: 0.5,
+ x: 2048 / 2,
+ y: 2732 / 2
+});
+game.addChild(backgroundPeople);
var plane = new Plane();
plane.x = 2048 / 2;
plane.y = 2732 - 200;
game.addChild(plane);