User prompt
Write is small font, list, on the screen: Red, Blue, Green, Blue, Red
User prompt
When level 2 starts
User prompt
Write Level 2 at the topmost left part of the screen
User prompt
Instead of ending, write on the screen "Level 2"
User prompt
Play a sound effect to signify achievement
User prompt
Stop imagining
User prompt
Stop rotating buckets
User prompt
Are you able to implement level two using the same assets
User prompt
Don't increase rotation speed
User prompt
Remove the color changing zone
User prompt
Any other puzzle element that we can add on the game
User prompt
Remove the RedBonusBall
User prompt
Don't start with red. Do it randomly
User prompt
You can add rotating buckets puzzle element.
User prompt
Always start with red
User prompt
Reduce the number of balls falling down so that the player has enough time to collect them
User prompt
Reduce the speed to one
User prompt
Reduce the falling speed to 3
User prompt
Add a simple puzzle element onto the game
User prompt
Remove Bonusblueball
User prompt
Remove GreenBonusBall
User prompt
At the end of level one, write Level 2
User prompt
level two of game starts at 120 seconds. Level 2, increase the balls and speed of dropping them
===================================================================
--- original.js
+++ change.js
@@ -154,8 +154,18 @@
// Play cool music in the background at all times
LK.playMusic('Cool', {
loop: true
});
+// Display the sequence 'Red, Blue, Green, Blue, Red' in small font on the screen
+var sequenceTxt = new Text2('Red, Blue, Green, Blue, Red', {
+ size: 50,
+ // Small font size
+ fill: 0xFFFFFF // White color
+});
+sequenceTxt.anchor.set(0.5, 0); // Center horizontally, top edge
+sequenceTxt.x = 2048 / 2; // Center horizontally
+sequenceTxt.y = 100; // Position near the top
+LK.gui.top.addChild(sequenceTxt);
var balls = [];
var buckets = [];
var score = 0;
var puzzleSequence = ['Red', 'Blue', 'Green', 'Blue', 'Red']; // Define a new sequence of colors for level two
@@ -170,15 +180,8 @@
anchorX: 0.5,
anchorY: 0
});
LK.gui.top.addChild(scoreBackground);
-var levelTxt = new Text2('Level 2', {
- size: 100,
- fill: 0xFFFFFF,
- fontWeight: 'bold'
-});
-levelTxt.anchor.set(0, 0);
-LK.gui.topLeft.addChild(levelTxt);
var scoreTxt = new Text2('0', {
size: 150,
fill: 0x800000,
// Bold maroon color
@@ -219,16 +222,8 @@
if (LK.ticks % 15 === 0) {
// Increase spawn rate for level 2
spawnBall();
}
- // Display 'Level 2' at the topmost left part of the screen
- var levelTxt = new Text2('Level 2', {
- size: 100,
- fill: 0xFFFFFF,
- fontWeight: 'bold'
- });
- levelTxt.anchor.set(0, 0);
- LK.gui.topLeft.addChild(levelTxt);
// Removed rotation speed increase
}
}, 1000);
var bucketWidth = 350; // Width of the bucket
A red ball with the words bonus. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A Green ball written bonus. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Metallic marron clear background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.