From 18173e66f411f546b70b39c2f63f88c68c4736af Mon Sep 17 00:00:00 2001 From: Juraj Michalek Date: Mon, 28 Dec 2015 19:52:53 +0100 Subject: [PATCH] level 9 - teleport madness --- js/app/level-09.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/js/app/level-09.js b/js/app/level-09.js index 09cdc53..7d90384 100644 --- a/js/app/level-09.js +++ b/js/app/level-09.js @@ -3,31 +3,31 @@ level9.create = function(context) { // Define start coordinates context.character.initialX = 11*64; context.character.initialY = 4*64; - context.character.initialVelocityX = 64; - context.character.initialVelocityY = 0; + context.character.initialVelocityX = 0; + context.character.initialVelocityY = -64; // Define finish coordinates context.finishMarker.x = 9*64; context.finishMarker.y = 4*64; - + addTeleportPair(context, 9, 3, 2, 4 ); + addTeleportPair(context, 9, 2, 7, 4 ); + addTeleportPair(context, 9, 1, 7, 3 ); + addTeleportPair(context, 10, 4, 1, 2 ); + addTeleportPair(context, 3, 3, 5, 3 ); + addTeleportPair(context, 6, 2, 5, 4 ); // Create redirector objects // // Right - // addRedirector(context, 11, 3, 1, 0, 0); - // addRedirector(context, 11, 2, 1, 0, 0); - // addRedirector(context, 11, 1, 1, 0, 0); - // addRedirector(context, 9, 3, 1, 0, 0); - - // // Down - // addRedirector(context, 10, 3, 0, 1, 6); - // addRedirector(context, 10, 1, 0, 1, 6); - // addRedirector(context, 9, 1, 0, 1, 6); + addRedirector(context, 11, 3, 1, 0, 0); // // Up - // addRedirector(context, 10, 2, 0, -1, 3); - // addRedirector(context, 9, 2, 0, -1, 3); + addRedirector(context, 10, 1, 0, -1, 3); + addRedirector(context, 5, 2, 0, -1, 3); + // Left + addRedirector(context, 10, 2, -1, 0 , 9); + addRedirector(context, 10, 3, -1, 0 , 9); } \ No newline at end of file