User prompt
Make player movement able to be controlled by clicking on either side of the screen
User prompt
Delete arrows
User prompt
Make block_obstacles move at random speeds
User prompt
Make arrows completely see-through
User prompt
Make arrows always transparent
User prompt
Do not let arrows be in the same line as the player
User prompt
Make arrows transparent to the player when they are held too
User prompt
Make arrows transparent to the player
User prompt
Display player through arrows
User prompt
Make arrows longer, starting directly above the player
User prompt
Arrows are displayed everywhere above the player
User prompt
Arrows extend up
User prompt
Make arrows cover everywhere above the player
User prompt
Steadily increase speed as the game goes on
User prompt
Make block_obstacle more frequent
User prompt
Increase block_obstacle speed
User prompt
Change Game Over display to green
User prompt
Undo
User prompt
Add a section counting the number of games
User prompt
Add block obstacles
User prompt
Add left and right arrows to hold and move
User prompt
Delete large and small obstacles
User prompt
Make some obstacles larger and some obstacles smaller
User prompt
Make obstacles more frequent
User prompt
When game starts, add a stopwatch
===================================================================
--- original.js
+++ change.js
@@ -79,9 +79,17 @@
// Touch event handlers
// Add touch event listener to the game
-
+game.on('down', function (obj) {
+ var event = obj.event;
+ var pos = event.getLocalPosition(game);
+ if (pos.x < 1024) {
+ player.moveLeft();
+ } else {
+ player.moveRight();
+ }
+});
// Game tick event
LK.on('tick', function () {
if (isGameOver) {
LK.effects.flashScreen(0x00ff00, 1000);