User prompt
The game end 1 score
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'intersects')' in or related to this line: 'if (bullets[j].intersects(animes[l])) {' Line Number: 154
User prompt
Add the animes in the game
User prompt
Game speed increase 5time
User prompt
Add a space theme in the background on the game
User prompt
Add a sound
User prompt
Add score board
Initial prompt
Ap
===================================================================
--- original.js
+++ change.js
@@ -7,9 +7,9 @@
var bulletGraphics = self.attachAsset('bullet', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = -15;
+ self.speed = -75;
self.update = function () {
self.y += self.speed;
if (self.y < 0) {
self.destroy();
@@ -22,9 +22,9 @@
var enemyGraphics = self.attachAsset('enemy', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = 5;
+ self.speed = 25;
self.update = function () {
self.y += self.speed;
if (self.y > 2732) {
self.destroy();
@@ -38,9 +38,9 @@
var playerGraphics = self.attachAsset('player', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = 10;
+ self.speed = 50;
self.update = function () {
// Player update logic
};
self.move = function (x, y) {