User prompt
Increase the distance between character and touch area
User prompt
Place the character above the touch area
User prompt
Do the last prompt three times the size of the character
User prompt
Offset the hero character by the hight of the character from where I touch the screen
User prompt
Offset the hero character up from the touch area
User prompt
Fix Bug: 'TypeError: LK.gui.topCenter.getChildByName is not a function' in this line: 'var scoreTxt = LK.gui.topCenter.getChildByName('scoreTxt');' Line Number: 44
User prompt
Fix Bug: 'ReferenceError: scoreTxt is not defined' in this line: 'scoreTxt.setText(self.parent.score.toString());' Line Number: 44
User prompt
Fix Bug: 'Uncaught ReferenceError: score is not defined' in this line: 'var scoreTxt = new Text2(score.toString(), {' Line Number: 62
User prompt
Fix Bug: 'ReferenceError: score is not defined' in this line: 'score += 1;' Line Number: 43
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'score')' in this line: 'window.score = 0;' Line Number: 1
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'score')' in this line: 'window.score += 1;' Line Number: 43
User prompt
Fix Bug: 'ReferenceError: score is not defined' in this line: 'score += 1;' Line Number: 43
User prompt
Add score
User prompt
add inertia to the blocks
User prompt
detach the blocks caught from hero character
User prompt
Caught blocks should display at the bottom of the screen
User prompt
Blocks should stack on top of hero
User prompt
make the hero graphic bigger
User prompt
make the caught blocks be closed to the hero character
User prompt
Fix Bug: 'ReferenceError: scoreTxt is not defined' in this line: 'scoreTxt.setText(self.score.toString());' Line Number: 43
User prompt
Fix Bug: 'TypeError: LK.gui.topCenter.setText is not a function' in this line: 'LK.gui.topCenter.setText(self.score);' Line Number: 43
User prompt
score 1 point per block caught
User prompt
add score for every block caugth
===================================================================
--- original.js
+++ change.js
@@ -9,12 +9,14 @@
self.rotation += 0.1;
if (hero.intersects(self)) {
self.falling = true;
hero.balance(self);
+ self.speed = 0;
}
} else {
self.y = 2732 - self.height;
- self.x = hero.x;
+ self.x += self.speed;
+ if (self.speed < 5) self.speed += 0.1;
}
};
});
var Pizza = Container.expand(function () {