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
  1. Examples
  2. 2D Examples

Volcano

PreviousGrasslandsNext3D Examples

Last updated 1 year ago

Level 1

Level 1 utilizes random features with both basic and cracked stone to be lined up somewhere, along with magma to be placed under said stone.

Level 2

Level 2 utilizes more random features combined with a to spread out either magma or lava across the floor, while also placing regular and cracked stone.

Level 3

Level 3 pulls it all together with a custom 2D scroll value, blocks with multiple properties, and matrix operations.

🌋
matrix operator
https://github.com/LevelZ-File/examples/blob/master/2D/volcano/1.lvlz
@type 2
@spawn default
@scroll vertical-up
---
{stone, stone<cracked=true>}: (-5, 5, 0, 0)^[0, 0]
magma: (-5, 5, 0, 0)^[0, -1]
end
https://github.com/LevelZ-File/examples/blob/master/2D/volcano/2.lvlz
@type 2
@spawn [-5, 0]
---
stone: [-5, -1]
stone<cracked=true>: [-5, -2]
{magma, lava}: (-4, 5, 0, 0)^[0, 0]
end
https://github.com/LevelZ-File/examples/blob/master/2D/volcano/3.lvlz
@type 2
@spawn [15, 0]
@scroll horizontal-left
---
stone: [15, -1]
magma<damage=2.0>: (0, 15, 0, 0)^[0, -1]
magma<damage=3.0, lava=false>: (0, 15, 0, 0)^[0, -2]
stone<cracked=true>: (-1, 1, -1, 1)^[0, 4]
end