User prompt
add obstacles at z index 0
User prompt
Add a 222a9a drop shadow to the highscore
User prompt
set dropShadowAngle to 0 and dropShadowDistance to 10
User prompt
set obstacleShadow.y to 15
User prompt
det stop shadow distance to 7
User prompt
Set highscore drop shadow distance to 7
User prompt
Increase the obstacle threshold to 300
User prompt
Increase the obstacle threshold to 280
User prompt
Add a second shadow to obstacles
User prompt
use a separate asset id for the second obstacle
User prompt
set obstacle 2 y to -3
User prompt
set obstacle 2 y to -5
User prompt
Set obstacleShadow2 y to -7
User prompt
Remove the code that sets the obstacle shadow y
User prompt
Don't set y on the first obstacle shadow
User prompt
Set the floor for obstacleSpawnRandomness to 20
User prompt
half obstacleSpawnRandomnessDecrease
User prompt
Add a second score label that renders below the current one. Make this one white
User prompt
Remove the drop shadow on score text 2
User prompt
Attach score text after score text 2
User prompt
Update both score text and score text 2 when updating scores
User prompt
set scoretext2 x to -3 and scoretext2 y to -5
User prompt
set scoreText2.x to -4
User prompt
Use the build in system to report scores to the system
User prompt
make obstacleSpawnRandomnessDecrease 2/3 as impactful
===================================================================
--- original.js
+++ change.js
@@ -1,9 +1,9 @@
var Obstacle = Container.expand(function () {
var self = Container.call(this);
var obstacleShadow = self.createAsset('obstacleShadow', 'Obstacle Shadow', .5, .5);
obstacleShadow.rotation = Math.PI / 4;
- obstacleShadow.y = 7;
+ obstacleShadow.y = 15;
var obstacleGraphics = self.createAsset('obstacle', 'Obstacle', .5, .5);
obstacleGraphics.rotation = Math.PI / 4;
self.speed = 5;
self.move = function (speed) {
@@ -60,9 +60,9 @@
font: 'Impact',
dropShadow: true,
dropShadowColor: '#222a9a',
dropShadowBlur: 5,
- dropShadowDistance: 10,
+ dropShadowDistance: 7,
dropShadowAngle: 0
});
scoreText.anchor.set(.5, 0);
LK.gui.topCenter.addChild(scoreText);