Code edit (4 edits merged)
Please save this source code
User prompt
Add drop shadow to scoreLabel
Code edit (7 edits merged)
Please save this source code
User prompt
Add white stroke outline to BonusIndicator label
User prompt
in BonusIndicator, use color for the color of the text. Note you have to convert from int color to string color with the format #xxxxx
Code edit (3 edits merged)
Please save this source code
User prompt
Add a label to OverhangPlate which shows the value of score.
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Insert place sound at //Play sound here
Code edit (1 edits merged)
Please save this source code
User prompt
Migrate to the latest version of LK
User prompt
Make sure to also send score to LK.setScore
User prompt
Fix Bug: 'Argument 1 ('shader') to WebGLRenderingContext.shaderSource must be an instance of WebGLShader' in this line: 'LK.on('tick', function () {' Line Number: 140
User prompt
Make high score use impact
User prompt
When moving the new plate based on left or right, also add or subtract the same value to the x of overhang plate as was added to new plate
User prompt
When moving the new plate based on left or right, also add the same value to the x of overhang plate
User prompt
if the overhang is less than 10 flash the screen white for 200ms
User prompt
Make the close overhang test <= 10 rather than <= 2
User prompt
if overhang is less or equal to 2, align the new plate with the plate below it and set overhang to zero
User prompt
When moving x of new plate based on right or left attachment also move the overhangPlate by the same amount.
User prompt
make plates 50% faster
User prompt
Make plates move 2x as fast
User prompt
Remove console log statements
User prompt
When setting color, also calculate a new background color for the game with v being 1/3 of that of the plate
===================================================================
--- original.js
+++ change.js
@@ -115,14 +115,9 @@
****/
var scoreTxt = new Text2('0', {
size: 150,
fill: '#ffffff',
- font: 'Impact',
- dropShadow: true,
- dropShadowColor: '#000000',
- dropShadowBlur: 4,
- dropShadowAngle: Math.PI / 6,
- dropShadowDistance: 6
+ font: 'Impact'
});
scoreTxt.anchor.set(.5, 0);
LK.gui.top.addChild(scoreTxt);
var plateContainer = new Container();
@@ -154,10 +149,8 @@
var overhangSide = overhang > 0 ? 'right' : 'left';
overhang = Math.abs(overhang);
console.log(overhang);
newPlate.stack();
- var nextPlate = new Plate(currentPlateWidth);
- plateContainer.addChild(nextPlate);
if (overhang < 50) {
newPlate.x = topPlate.x;
LK.getSound('perfect').play();
var bonusIndicator = new BonusIndicator('+' + 2, newPlate.color);
@@ -179,8 +172,10 @@
newPlate.x += overhang / 2;
overhangPlate.x += overhang / 2;
}
}
+ var nextPlate = new Plate(currentPlateWidth);
+ plateContainer.addChild(nextPlate);
newPlate = nextPlate;
newPlate.slide();
newPlate.y = 2732 - plates.length * newPlate.height - newPlate.height / 2;
plateColorIndex++;