Code edit (1 edits merged)
Please save this source code
Code edit (6 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: self.zbertGraphics.setTexture is not a function' in or related to this line: 'self.zbertGraphics.setTexture('Zbert1');' Line Number: 108
User prompt
Fix Bug: 'TypeError: self.zbertGraphics.setTexture is not a function' in or related to this line: 'self.zbertGraphics.setTexture('Zbert1');' Line Number: 108
User prompt
When Zbert is moving up then zebertGraphic is Zbert1, if moving down then switch to Zbert2
Code edit (2 edits merged)
Please save this source code
User prompt
when gems are placed set timer and after 30 seconds destroy gem
User prompt
If Zbert interacts with a gem, destroy gem and add 20 to score
User prompt
Add score class to game. 1 point for each tile flipped. display score top middle
Code edit (2 edits merged)
Please save this source code
User prompt
Add in a class to cold asset and grid appearnce of Bonus Gems in the game
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
in SpawnBBall limit number of balls on screen to 3
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: newBBall is not defined' in or related to this line: 'game.grid.addChild(newBBall);' Line Number: 66
Code edit (1 edits merged)
Please save this source code
User prompt
spawn new balls betwenn every 3 to 7 seconds
Code edit (3 edits merged)
Please save this source code
User prompt
if ball hits Zbert reduce live by 1
Code edit (1 edits merged)
Please save this source code
User prompt
when game starts set lives display to 5
User prompt
move life 200 to left
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'toString')' in or related to this line: 'self.livesText = new Text2(initialLives.toString(), {' Line Number: 308
User prompt
display zberts lives on the screen
===================================================================
--- original.js
+++ change.js
@@ -315,10 +315,10 @@
self.x = gridX;
self.y = gridY;
// Function to collect the gem
self.collect = function () {
- // Increase score or provide bonus
- LK.setScore(LK.getScore() + 100);
+ // Increase score by 20 when Zbert collects a gem
+ LK.setScore(LK.getScore() + 20);
self.destroy();
};
});
var ScoreText = Container.expand(function () {
@@ -417,10 +417,16 @@
});
var bball = game.grid.children.find(function (child) {
return child instanceof BBall;
});
+ var gem = game.grid.children.find(function (child) {
+ return child instanceof Gem;
+ });
if (zbert && bball && zbert.intersects(bball)) {
LK.effects.flashScreen(0x000000, 1000);
LK.showGameOver();
}
+ if (zbert && gem && zbert.intersects(gem)) {
+ gem.collect();
+ }
// Rest of the tick code...
});
\ No newline at end of file
beautiful landscape. starry sky, pastel colours, high definition, alien world. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A little cube person. 2 legs. back to viewer. facing 45 degrees to the right. multicoloured skin, cartoon style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle. metallic. light bevel on edge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Round furry, cute alien ball with big eyes. vivid colours, looking at 45 degrees to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bright 3d present with bow, vivd colours. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Change to be vivid multicoloured cube
A simple Triangle, flat shaded, bevelled edges. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Speech bubble with expletive word in it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
parachute. multicoloured. cartoon style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle with a single thin black border. flat shade. simple graphic. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
small star shape, vivid metallic blue, varying length spikes on star. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.