LevelZ File Format
  • 🏠Home
  • Documentation
    • Introduction
    • 📑Headers
    • 📦Blocks
    • 🧭Coordinates
    • Conclusion
  • Usage
    • Bindings
    • CLI
  • Examples
    • 2D Examples
      • 🌾Grasslands
      • 🌋Volcano
    • 3D Examples
      • 🌾Grasslands
Powered by GitBook
On this page
  • Level 1
  • Level 2
  • Level 3
  • Level 4
  1. Examples
  2. 2D Examples

Grasslands

Previous2D ExamplesNextVolcano

Last updated 1 year ago

Level 1

Level 1 is a simple level that integrates basic points, placing grass and dirt at different parts, and utilizes a matrix at the end to place stone.

Level 2

Level 2 utilizes a to declare a stone platform.

Level 3

Level 3 expands on the matrix operator to place both a grass wall and a stone platform. It also utilizes the official since it is a 2D Level, declaring an auto scroller that moves towards the right.

Level 4

Lastly, Level 4 utilizes four matrix operators to draw a pillar of grass and stone, for an autoscrolling 2D level moving in the vertical direction. @scroll specifies this by saying it should move down. It also uses the @spawn default placeholder to replace @spawn [0, 0].

🌾
matrix operator
scroll header
https://github.com/LevelZ-File/examples/blob/master/2D/grasslands/1.lvlz
@type 2
@spawn default
@scroll none
---
grass: [0, 0]
grass: [0, 1]
dirt: [1, 1]
stone: (-3, 3, 0, 0)^[2, 2]
end
https://github.com/LevelZ-File/examples/blob/master/2D/grasslands/3.lvlz
@type 2
@spawn [0, 10]
@scroll horizontal-right
---
grass: [0, 9]
grass: (0, 0, 0, 7)^[0, 0]
stone: (-5, 5, 0, 0)^[0, 0]
end
https://github.com/LevelZ-File/examples/blob/master/2D/grasslands/2.lvlz
@type 2
@spawn default
@scroll none
---
stone: [0, -1]
stone: (-3, 3, 0, 0)^[-4, 0]
end
https://github.com/LevelZ-File/examples/blob/master/2D/grasslands/4.lvlz
@type 2
@spawn default
@scroll vertical-down
---
grass: [0, -1]
dirt: (0, 0, -5, 0)^[0, -2]
grass: (0, 0, -5, 0)^[1, -2]
grass: (0, 0, -5, 0)^[-1, -2]
stone: (-5, 5, 0, 0)^[0, -7]
end