User prompt
Make arrows twice as tall
User prompt
Make block_obstacle move faster and faster as it falls
User prompt
Extend arrows to be as tall as the screen
User prompt
Extend arrow size higher
User prompt
Make arrows complete cover the screen
User prompt
Make arrows take up half of the screen each against the sides
User prompt
Delete right_arrow and left_arrow assets
User prompt
Undo arrow movement
User prompt
Fix Bug: 'TypeError: LK.requestAnimationFrame is not a function. (In 'LK.requestAnimationFrame(movePlayerRight)', 'LK.requestAnimationFrame' is undefined)' in this line: 'LK.requestAnimationFrame(movePlayerRight);' Line Number: 98
User prompt
Make arrows control player movement by tap and hold
User prompt
Make arrows transparent
User prompt
Make arrow display against the sides of the screen
User prompt
Make arrows take of half of the screen each
User prompt
Hold arrows instead of tap
User prompt
Add arrows on either side to control movement
User prompt
Delete joystick
User prompt
Add joysticks to control player movement
User prompt
If either side of the screen is tapped or held on, move the player left or right
User prompt
Make player move when holding
User prompt
Make player move when either side of the screen is held
User prompt
Change Tap control to Hold
===================================================================
--- original.js
+++ change.js
@@ -19,9 +19,9 @@
// Arrow class
var Arrow = Container.expand(function (direction) {
var self = Container.call(this);
var arrowGraphics = self.createAsset('arrow_' + direction, 'Arrow for ' + direction + ' movement', 0.5, 0);
- arrowGraphics.height = player.y - player.height * 2;
+ arrowGraphics.height = player.y - player.height * 3;
self.direction = direction;
self.on('down', function () {
self.isHeld = true;
});
@@ -104,17 +104,15 @@
var gameStats = game.addChild(new GameStats());
var stopwatch = game.addChild(new Stopwatch());
// Create left and right arrow objects
var leftArrow = game.addChild(new Arrow('left'));
-leftArrow.width = 2048; // Full screen width
-leftArrow.x = 0;
-leftArrow.y = 0;
-leftArrow.height = 2732; // Full screen height
+leftArrow.width = 1024; // Half of the screen width
+leftArrow.x = leftArrow.width / 2;
+leftArrow.y = player.y - player.height * 3 - leftArrow.height / 2;
var rightArrow = game.addChild(new Arrow('right'));
-rightArrow.width = 2048; // Full screen width
-rightArrow.x = 0;
-rightArrow.y = 0;
-rightArrow.height = 2732; // Full screen height
+rightArrow.width = 1024; // Half of the screen width
+rightArrow.x = 2048 - rightArrow.width / 2;
+rightArrow.y = player.y - player.height * 3 - rightArrow.height / 2;
// Touch event handlers
// Add touch event listener to the game