Guest User

Untitled

a guest
May 25th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  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. if(1){}
  24.  
  25. else
  26.  
  27. for (x = 7; x <= map.getWidth() - 3; x++) {
  28. map.placeObject(x, 7, 'block');
  29. map.placeObject(x, map.getHeight() - 3, 'block');
  30. }
  31.  
  32. map.placeObject(map.getWidth() - 5, 5, 'exit');
  33. }
Add Comment
Please, Sign In to add comment