daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*******************
  2.  * multiplicity.js *
  3.  *******************
  4.  *
  5.  * Out of one cell and into another. They're not giving you
  6.  * very much to work with here, either. Ah, well.
  7.  *
  8.  * Level filenames can be hints, by the way. Have I
  9.  * mentioned that before?
  10.  *
  11.  * No more cells after this one. I promise.
  12.  */
  13.  
  14. function startLevel(map) {
  15.  
  16.     map.placePlayer(map.getWidth()-5, map.getHeight()-4);
  17.  
  18.     for (y = 7; y <= map.getHeight() - 3; y++) {
  19.         map.placeObject(7, y, 'block');
  20.         map.placeObject(map.getWidth() - 3, y, 'block');
  21.     }
  22.  
  23.     map.placeObject(map.getWidth()-4, map.getHeight()-4, 'exit')
  24.  
  25.     for (x = 7; x <= map.getWidth() - 3; x++) {
  26.         map.placeObject(x, 7, 'block');
  27.         map.placeObject(x, map.getHeight() - 3, 'block');
  28.     }
  29.  
  30.     map.placeObject(map.getWidth() - 5, 5, 'exit');
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top