🌾Grasslands
Level 1
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
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
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
Level 2 utilizes a matrix operator to declare a stone platform.
Level 3
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
Level 3 expands on the matrix operator to place both a grass wall and a stone platform. It also utilizes the official scroll header since it is a 2D Level, declaring an auto scroller that moves towards the right.
Level 4
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
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]
.
Last updated