User prompt
Show the score as it decreases
Code edit (1 edits merged)
Please save this source code
User prompt
If a rock or gold reach the bottom of the screen remove 20 points. If the score is 0 or below points the game is over.
User prompt
Randomise the speed of all the rocks to at least double the speed
User prompt
Limit the position of the space ship to the bottom one thrird of the screen
User prompt
If the ship collides with gold collect the gold and add 50 to the score
User prompt
Triple the speed of the bullets
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'toString')' in or related to this line: 'var scoreTxt = new Text2(score.toString(), {' Line Number: 77
User prompt
When the gold hits the space ship collect the gold and add 10 to the score. Display the score as a number in the top left corner of the screen
User prompt
Mark the size of the asteroids at least 2 to 4 times larger
User prompt
Add control over asteroid size
Initial prompt
Astrioder
===================================================================
--- original.js
+++ change.js
@@ -84,8 +84,9 @@
hero.move(pos.x, pos.y);
hero.shoot();
});
LK.on('tick', function () {
+ debugger;
// Move hero bullets
for (var i = heroBullets.length - 1; i >= 0; i--) {
heroBullets[i].move();
if (heroBullets[i].y < 0) {
Space rock. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Space rock with encrusted gold. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Top down view of Small personal space fighter with large gun at the front. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
ball of fire moving up at very high speed. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Horizon and atmosphere of a planet as seen from very low orbit.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.