User prompt
Make the player speed faster when moving left and right.
User prompt
Make the player bigger.
User prompt
Make the background whole screen.
User prompt
Add space background.
User prompt
Implement collision detection between lasers and rocks (obstacles). Within the game's main tick function, check for intersections between laser instances and rock instances.
User prompt
Please fix the bug: 'ReferenceError: lasers is not defined' in or related to this line: 'for (var i = lasers.length - 1; i >= 0; i--) {' Line Number: 196
User prompt
Please fix the bug: 'ReferenceError: lasers is not defined' in or related to this line: 'for (var i = lasers.length - 1; i >= 0; i--) {' Line Number: 196
User prompt
In the game's main tick function, iterate over all instances of the Laser class and move them according to their speed and direction.
Remix started
it should create an instance of the Laser class, position it appropriately relative to the player, and add it to the game.
===================================================================
--- original.js
+++ change.js
@@ -65,9 +65,9 @@
var playerGraphics = self.attachAsset('player', {
anchorX: 0.5,
anchorY: 0.5
});
- playerGraphics.scale.set(1.2); // Scale up the player
+ playerGraphics.scale.set(1.5); // Scale up the player
self.speed = 5;
self.moveLeft = function () {
self.x = Math.max(self.width / 2, self.x - self.speed);
};
Spaceship 2D Pixel.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Asteroid 2D Pixel.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Galaxy Background 2D Pixel.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.