Code edit (3 edits merged)
Please save this source code
User prompt
the player is too far left, his entire image must fit in the playspace
Code edit (1 edits merged)
Please save this source code
User prompt
create an animation introduction with player, he should start outside of the screen and make his way into the playspace on the bottom left of the playspace
User prompt
delete all code
Initial prompt
TestCase000
===================================================================
--- original.js
+++ change.js
@@ -22,13 +22,13 @@
* Game Code
****/
// Initialize the player object and position it outside the screen
var player = game.addChild(new Player());
-player.x = -player.width;
+player.x = -player.width / 2;
player.y = 2732 - player.height;
// Ask LK engine to update game every game tick. Use this instead of Tweens
game.update = function () {
// Move the player into the playspace
if (player.x < 0) {
- player.x += 50;
+ player.x += 5;
}
};
\ No newline at end of file