User prompt
increase a quantity of sparks with each time
User prompt
make spark fall faster with each fall
User prompt
just a bit lower
User prompt
move zodiac lowr
User prompt
move zodiac to a lower third of a screen
User prompt
allow zodiac only move horizontally
User prompt
attach zodiac to a cursor
User prompt
leave just one zodiac
User prompt
play spark sound eahc time mote hits zodiac
User prompt
can you make fullscreen backgound
User prompt
how to change background image
Code edit (1 edits merged)
Please save this source code
Initial prompt
Zodiac groove
===================================================================
--- original.js
+++ change.js
@@ -59,15 +59,17 @@
scoreTxt.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreTxt);
// Function to spawn a new note
function spawnNote() {
- var newNote = new Note();
- newNote.speed += speedIncrement;
+ for (var i = 0; i < Math.floor(speedIncrement); i++) {
+ var newNote = new Note();
+ newNote.speed += speedIncrement;
+ newNote.x = Math.random() * 2048;
+ newNote.y = 0;
+ notes.push(newNote);
+ game.addChild(newNote);
+ }
speedIncrement += 0.5;
- newNote.x = Math.random() * 2048;
- newNote.y = 0;
- notes.push(newNote);
- game.addChild(newNote);
}
// Function to update the score
function updateScore() {
score += 1;