User prompt
let’s create a title screen. the title can be Invader Blits 2 But with a delay. the delay can be 3 seconds. so it will be Invader Blits (wait 3 seconds) 2 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
not like start fresh to a ball game. I’m talking about just a black screen with all codes and all sprites removed.
User prompt
let’s start fresh.
User prompt
please fix it :)
User prompt
Please fix the bug: 'TypeError: undefined is not an object (evaluating 'self.children[0].tint = c[0] << 16 | c[1] << 8 | c[2]')' in or related to this line: 'self.children[0].tint = c[0] << 16 | c[1] << 8 | c[2];' Line Number: 214
User prompt
Please fix the bug: 'undefined is not an object (evaluating 'self.children[0].tint = 0xff2222')' in or related to this line: 'self.children[0].tint = 0xff2222;' Line Number: 225
User prompt
make big invaders. they split when ever hit. and make red invaders. red invaders are 2x faster than the green invaders. make some of the invaders rainbow too.
User prompt
when I’m not by the screen edge. even when it’s not by the screen edge. it still acts like it. FIX THIS!!
User prompt
make the bomb appear every 10 seconds and moves by itself and bounces off the screen.
User prompt
make the lines blink when shooting every 0.7 seconds.
User prompt
make the lines blink every 0.3 seconds when shooting
User prompt
make the lines blink every 0.1 second when shooting.
User prompt
you made the stuff correct. it’s just the invaders isn’t dieing when target is on them and shooting.
User prompt
Please fix the bug: 'ReferenceError: Can't find variable: player' in or related to this line: 'if (!player.invincible && b.intersects(player)) {' Line Number: 446
User prompt
that third one is still in the middle. REMOVE THAT THIRD ONE. and the target isn’t shooting anything. you also forgot the blue lines.
User prompt
Please fix the bug: 'undefined is not an object (evaluating 'player.x = GAME_WIDTH / 2')' in or related to this line: 'player.x = GAME_WIDTH / 2;' Line Number: 330
User prompt
there’s 3 cannons. remove that third cannon. and the target only moves when moving hand.
User prompt
can you make the target? the target always moves but the blue block (the cannon) is always in the corner. make another one and that other one goes in a different corner (it only has to be on the bottom.) and when shooting. Blue lines go to the target and blink when ever shooting.
User prompt
I can’t shoot. how do I fix this?
Code edit (1 edits merged)
Please save this source code
User prompt
Invader Blitz
Initial prompt
we are making a game similar to space invaders frenzy.
/****
* Plugins
****/
var tween = LK.import("@upit/tween.v1");
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
/****
* Game Code
****/
// Create main title text "Invader Blits"
var titleText = new Text2('Invader Blits', {
size: 120,
fill: 0xFFFFFF
});
titleText.anchor.set(0.5, 0.5);
titleText.x = 2048 / 2;
titleText.y = 2732 / 2 - 50;
game.addChild(titleText);
// Create the "2" text (initially hidden)
var numberText = new Text2('2', {
size: 120,
fill: 0xFFFFFF
});
numberText.anchor.set(0.5, 0.5);
numberText.x = 2048 / 2 + 200; // Position it to the right of main title
numberText.y = 2732 / 2 - 50;
numberText.alpha = 0; // Start invisible
game.addChild(numberText);
// Show the "2" after 3 seconds with a fade-in animation
LK.setTimeout(function () {
tween(numberText, {
alpha: 1
}, {
duration: 500,
easing: tween.easeIn
});
}, 3000); ===================================================================
--- original.js
+++ change.js
@@ -1,6 +1,43 @@
-/****
+/****
+* Plugins
+****/
+var tween = LK.import("@upit/tween.v1");
+
+/****
* Initialize Game
-****/
+****/
var game = new LK.Game({
backgroundColor: 0x000000
-});
\ No newline at end of file
+});
+
+/****
+* Game Code
+****/
+// Create main title text "Invader Blits"
+var titleText = new Text2('Invader Blits', {
+ size: 120,
+ fill: 0xFFFFFF
+});
+titleText.anchor.set(0.5, 0.5);
+titleText.x = 2048 / 2;
+titleText.y = 2732 / 2 - 50;
+game.addChild(titleText);
+// Create the "2" text (initially hidden)
+var numberText = new Text2('2', {
+ size: 120,
+ fill: 0xFFFFFF
+});
+numberText.anchor.set(0.5, 0.5);
+numberText.x = 2048 / 2 + 200; // Position it to the right of main title
+numberText.y = 2732 / 2 - 50;
+numberText.alpha = 0; // Start invisible
+game.addChild(numberText);
+// Show the "2" after 3 seconds with a fade-in animation
+LK.setTimeout(function () {
+ tween(numberText, {
+ alpha: 1
+ }, {
+ duration: 500,
+ easing: tween.easeIn
+ });
+}, 3000);
\ No newline at end of file