Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 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. if(false)
  23. for (x = 7; x <= map.getWidth() - 3; x++) {
  24. map.placeObject(x, 7, 'block');
  25. map.placeObject(x, map.getHeight() - 3, 'block');
  26. }
  27.  
  28. map.placeObject(map.getWidth() - 5, 5, 'exit');
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement