User prompt
Please fix the bug: 'ReferenceError: Can't find variable: topPipe' in or related to this line: 'topPipe.y = gapPosition - self.gap / 2;' Line Number: 50
User prompt
Fix every bug in game
User prompt
Add straight pipe wall instead of pipe
User prompt
Please fix the bug: 'ReferenceError: Can't find variable: topWall' in or related to this line: 'topWall.y = gapPosition - self.gap / 2;' Line Number: 50
User prompt
Place pipe from top and down bottom
User prompt
Please fix the bug: 'ReferenceError: Can't find variable: topPipe' in or related to this line: 'topPipe.y = gapPosition - self.gap / 2;' Line Number: 49
User prompt
Make pullers of wall instead of picture like walls
User prompt
Please add background to coding
Initial prompt
Flap Frenzy
===================================================================
--- original.js
+++ change.js
@@ -25,13 +25,13 @@
});
// Obstacle class representing the pipes
var Obstacle = Container.expand(function () {
var self = Container.call(this);
- var topPipe = self.attachAsset('pipe', {
+ var topWall = self.attachAsset('wall', {
anchorX: 0.5,
anchorY: 1
});
- var bottomPipe = self.attachAsset('pipe', {
+ var bottomWall = self.attachAsset('wall', {
anchorX: 0.5,
anchorY: 0
});
self.speed = -5;