User prompt
when the background flashed do it in the same color as the firework, not a darker color
User prompt
dont use a darker color for the flash
Code edit (1 edits merged)
Please save this source code
User prompt
remove the delay between the firework exploding and the background changing
User prompt
as soon as the firework explodes, flash the background
User prompt
remove the flasheffect when a firework explodes
Code edit (2 edits merged)
Please save this source code
User prompt
disable the flash but keep the code
User prompt
get the color of the current exploding firework and make the background 1/3 of that color, for 0.5 seconds after that change it back to black
User prompt
dont use lk.flashcreen but use lk.setbackgroundcolor for the background flashing
Code edit (6 edits merged)
Please save this source code
User prompt
make the background flash longer
User prompt
when the firework explodes, the background should quickly flash with the darker version of the color of that firework
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -81,9 +81,9 @@
var bgColor = (randomColor & 0x7f7f7f) >> 1;
game.setBackgroundColor(bgColor);
LK.setTimeout(function () {
game.setBackgroundColor(0x000000);
- }, 500);
+ }, 200);
for (var i = 0; i < 100; i++) {
var particle = new FireworkParticle();
var angle = Math.random() * Math.PI * 2;
var speed = Math.random() * 3 + 2;