User prompt
Fix Bug: 'Uncaught TypeError: LK.getHighscores is not a function' in this line: 'var highscores = LK.getHighscores();' Line Number: 44
User prompt
add a highscore list that is displayed on the buttom left, small, from the rounds before
User prompt
display the timer on the screen, small underneath the highscore
User prompt
add a timer for 1 minute. if the time is over you are game over
User prompt
add a new class for the background
User prompt
make the game harder every second
User prompt
make the game faster as it goes on
User prompt
add touch control to the player
User prompt
add enemys, if you hit them you die
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'move')' in this line: 'stars[a].move();' Line Number: 47
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'move')' in this line: 'stars[a].move();' Line Number: 47
Initial prompt
Children of the Sky
===================================================================
--- original.js
+++ change.js
@@ -42,8 +42,9 @@
LK.gui.topCenter.addChild(scoreTxt);
var dragNode = null;
var isGameOver = false;
var tickOffset = 0;
+ var gameTimer = 60 * 60;
stage.on('move', function (obj) {
var event = obj.event;
var pos = event.getLocalPosition(self);
if (dragNode) {
@@ -104,9 +105,10 @@
stars[i].destroy();
stars.splice(i, 1);
}
}
- if (isGameOver) {
+ gameTimer--;
+ if (gameTimer <= 0 || isGameOver) {
LK.effects.flashScreen(0xff0000, 1000);
LK.showGameOver();
}
});
A child with wings, top down view Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Meteor, highly detailed Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Space, highly detailed Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Beautiful Bright Star, highly detailed Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.