User prompt
make that the pig need to be touched more than 1 time randomly
User prompt
make the ship more realistic
User prompt
turn the ship
User prompt
Make the bullet go where i clic
User prompt
Please fix the bug: 'ReferenceError: x is not defined' in or related to this line: 'dragNode.x = x;' Line Number: 76
User prompt
Please fix the bug: 'ReferenceError: x is not defined' in or related to this line: 'dragNode.x = x;' Line Number: 73
User prompt
Please fix the bug: 'ReferenceError: dragNode is not defined' in or related to this line: 'if (dragNode) {' Line Number: 71
User prompt
make it move with the arrows
User prompt
make the spaceship move
User prompt
Please fix the bug: 'ReferenceError: dragNode is not defined' in or related to this line: 'if (dragNode) {' Line Number: 71
Initial prompt
Shooter
===================================================================
--- original.js
+++ change.js
@@ -62,10 +62,10 @@
LK.gui.top.addChild(scoreTxt);
game.update = function () {
// Player movement logic
if (dragNode) {
- dragNode.x = x;
- dragNode.y = y;
+ dragNode.x = this.x;
+ dragNode.y = this.y;
}
// Bullet logic
for (var i = bullets.length - 1; i >= 0; i--) {
var bullet = bullets[i];