You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

structures.js 542B

12345678910111213141516171819202122232425
  1. import Structure from "./Structure.js";
  2. import Vec2 from "./Vec2.js";
  3. import Tile from "./Tile.js";
  4. export default {
  5. ground: size => new Structure(
  6. [ "wall" ],
  7. Tile.createBox(
  8. Vec2.zero, size, "ground", {
  9. bottomLeft: "ground-l",
  10. bottom: "ground",
  11. bottomRight: "ground-r",
  12. bottomBoth: "ground",
  13. })),
  14. groundPillar: size => new Structure(
  15. [ "wall" ],
  16. Tile.createBox(
  17. Vec2.zero, size, "ground", {
  18. bottomLeft: "ground",
  19. bottom: "ground",
  20. bottomRight: "ground",
  21. bottomBoth: "ground",
  22. })),
  23. };