Skip to content

Commit

Permalink
Add three easy "tutorial" levels (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett authored Dec 2, 2024
1 parent 1d0bb44 commit 622abd2
Show file tree
Hide file tree
Showing 14 changed files with 550 additions and 445 deletions.
25 changes: 3 additions & 22 deletions assets/levels/1.level.ron
Original file line number Diff line number Diff line change
@@ -1,39 +1,20 @@
Level(
layers: 2,
name: "Connection",
layers: 1,
terminuses: [
// left
Terminus(
point: Vec2(-240.0, 144.0),
emits: [PixieFlavor(color: 0, net: 0)],
collects: [],
),
Terminus(
point: Vec2(-240.0, 48.0),
emits: [PixieFlavor(color: 1, net: 0)],
collects: [],
),
Terminus(
point: Vec2(-240.0, -48.0),
emits: [PixieFlavor(color: 2, net: 0)],
collects: [],
),
// right
Terminus(
point: Vec2(240.0, 144.0),
emits: [],
collects: [PixieFlavor(color: 2, net: 0)],
),
Terminus(
point: Vec2(240.0, 48.0),
emits: [],
collects: [PixieFlavor(color: 1, net: 0)],
),
Terminus(
point: Vec2(240.0, -48.0),
emits: [],
collects: [PixieFlavor(color: 0, net: 0)],
),
],
obstacles: [],
star_thresholds: [500, 600, 675],
star_thresholds: [1, 500, 900],
)
96 changes: 96 additions & 0 deletions assets/levels/10.level.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
Level(
name: "Jumper",
layers: 2,
terminuses: [
// left
Terminus(
point: Vec2(-336.0, 240.0),
emits: [PixieFlavor ( color: 0, net: 0)],
collects: [],
),
Terminus(
point: Vec2(-336.0, 48.0),
emits: [PixieFlavor ( color: 3, net: 0)],
collects: [],
),
Terminus(
point: Vec2(-336.0, -144.0),
emits: [PixieFlavor ( color: 4, net: 0)],
collects: [],
),
Terminus(
point: Vec2(-336.0, 144.0),
emits: [PixieFlavor ( color: 1, net: 0)],
collects: [],
),
Terminus(
point: Vec2(-336.0, -48.0),
emits: [PixieFlavor ( color: 2, net: 0)],
collects: [],
),
// right
Terminus(
point: Vec2(336.0, 240.0),
emits: [],
collects: [PixieFlavor ( color: 3, net: 1)],
),
Terminus(
point: Vec2(336.0, 48.0),
emits: [],
collects: [PixieFlavor ( color: 0, net: 1)],
),
Terminus(
point: Vec2(336.0, -144.0),
emits: [],
collects: [PixieFlavor ( color: 4, net: 1)],
),
Terminus(
point: Vec2(336.0, 144.0),
emits: [],
collects: [PixieFlavor ( color: 2, net: 0)],
),
Terminus(
point: Vec2(336.0, -48.0),
emits: [],
collects: [PixieFlavor ( color: 1, net: 0)],
),
// mid left
Terminus(
point: Vec2(-96.0, 144.0),
emits: [],
collects: [PixieFlavor ( color: 4, net: 0)]
),
Terminus(
point: Vec2(-96.0, 48.0),
emits: [],
collects: [PixieFlavor ( color: 0, net: 0)]
),
Terminus(
point: Vec2(-96.0, -48.0),
emits: [],
collects: [PixieFlavor ( color: 3, net: 0)]
),
// mid right
Terminus(
point: Vec2(96.0, 144.0),
emits: [PixieFlavor ( color: 4, net: 1)],
collects: []
),
Terminus(
point: Vec2(96.0, 48.0),
emits: [PixieFlavor ( color: 0, net: 1)],
collects: []
),
Terminus(
point: Vec2(96.0, -48.0),
emits: [PixieFlavor ( color: 3, net: 1)],
collects: []
),
],
obstacles: [
Rect(Vec2(-48.0, 168.0), Vec2(48.0, 120.0)),
Rect(Vec2(-48.0, 72.0), Vec2(48.0, 24.0)),
Rect(Vec2(-48.0, -72.0), Vec2(48.0, -24.0)),
],
star_thresholds: [500, 550, 600],
)
100 changes: 100 additions & 0 deletions assets/levels/11.level.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
Level(
name: "Scatter",
layers: 2,
terminuses: [
// tl
Terminus(
point: Vec2(-480.0, 288.0),
emits: [],
collects: [PixieFlavor ( color: 0, net: 0)]
),
Terminus(
point: Vec2(-480.0, 192.0),
emits: [],
collects: [PixieFlavor ( color: 1, net: 0)]
),
Terminus(
point: Vec2(-576.0, 192.0),
emits: [],
collects: [PixieFlavor ( color: 2, net: 0)]
),
// br
Terminus(
point: Vec2(576.0, -144.0),
emits: [PixieFlavor ( color: 0, net: 0)],
collects: []
),
Terminus(
point: Vec2(480.0, -144.0),
emits: [PixieFlavor ( color: 2, net: 0)],
collects: []
),
Terminus(
point: Vec2(480.0, -240.0),
emits: [PixieFlavor ( color: 1, net: 0)],
collects: []
),
// bl
Terminus(
point: Vec2(-576.0, -144.0),
emits: [PixieFlavor ( color: 4, net: 0)],
collects: [],
),
Terminus(
point: Vec2(-480.0, -144.0),
emits: [PixieFlavor ( color: 3, net: 0)],
collects: [],
),
Terminus(
point: Vec2(-480.0, -240.0),
emits: [PixieFlavor ( color: 5, net: 0)],
collects: [],
),
// tr
Terminus(
point: Vec2(480.0, 288.0),
emits: [],
collects: [PixieFlavor ( color: 3, net: 0)]
),
Terminus(
point: Vec2(480.0, 192.0),
emits: [],
collects: [PixieFlavor ( color: 4, net: 0)]
),
Terminus(
point: Vec2(576.0, 192.0),
emits: [],
collects: [PixieFlavor ( color: 5, net: 0)]
),
],
obstacles: [
// corners
Rect(Vec2(-624, -192), Vec2(-528, -288)),
Rect(Vec2(-624, 336), Vec2(-528, 240)),
Rect(Vec2(528, 336), Vec2(624, 240)),
Rect(Vec2(528, -192), Vec2(624, -288)),
// random
Rect(Vec2(-384, -96), Vec2(-336, -48)),
Rect(Vec2(-336, -240), Vec2(-288, -192)),
Rect(Vec2(-336, 240), Vec2(-288, 288)),
Rect(Vec2(-240, -96), Vec2(-192, -48)),
Rect(Vec2(-240, 240), Vec2(-192, 288)),
Rect(Vec2(-192, -288), Vec2(-144, -240)),
Rect(Vec2(-192, -240), Vec2(-144, -192)),
Rect(Vec2(-144, 48), Vec2(-96, 96)),
Rect(Vec2(-96, -144), Vec2(-48, -96)),
Rect(Vec2(48, 144), Vec2(96, 192)),
Rect(Vec2(96, -48), Vec2(144, 0)),
Rect(Vec2(144, 240), Vec2(192, 288)),
Rect(Vec2(144, 288), Vec2(192, 336)),
Rect(Vec2(192, -240), Vec2(240, -192)),
Rect(Vec2(192, 96), Vec2(240, 144)),
Rect(Vec2(288, -240), Vec2(336, -192)),
Rect(Vec2(288, 240), Vec2(336, 288)),
Rect(Vec2(336, 96), Vec2(384, 144)),
// extra
Rect(Vec2(-624, 96), (-576, 48)),
Rect(Vec2(576, -0), (624, -48)),
],
star_thresholds: [170, 190, 200],
)
143 changes: 143 additions & 0 deletions assets/levels/12.level.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
Level(
name: "Layers 2",
layers: 3,
terminuses: [
// tl
Terminus(
point: Vec2(-480.0, 288.0),
emits: [],
collects: [PixieFlavor ( color: 0, net: 1)]
),
Terminus(
point: Vec2(-480.0, 192.0),
emits: [],
collects: [PixieFlavor ( color: 1, net: 1)]
),
Terminus(
point: Vec2(-576.0, 192.0),
emits: [],
collects: [PixieFlavor ( color: 2, net: 1)]
),
// bl
Terminus(
point: Vec2(-576.0, -144.0),
emits: [],
collects: [PixieFlavor ( color: 4, net: 1)],
),
Terminus(
point: Vec2(-480.0, -144.0),
emits: [],
collects: [PixieFlavor ( color: 3, net: 1)],
),
Terminus(
point: Vec2(-480.0, -240.0),
emits: [],
collects: [PixieFlavor ( color: 5, net: 1)],
),
// tr
Terminus(
point: Vec2(480.0, 288.0),
emits: [PixieFlavor ( color: 3, net: 0)],
collects: []
),
Terminus(
point: Vec2(480.0, 192.0),
emits: [PixieFlavor ( color: 4, net: 0)],
collects: []
),
Terminus(
point: Vec2(576.0, 192.0),
emits: [PixieFlavor ( color: 5, net: 0)],
collects: []
),
// br
Terminus(
point: Vec2(576.0, -144.0),
emits: [PixieFlavor ( color: 0, net: 0)],
collects: []
),
Terminus(
point: Vec2(480.0, -144.0),
emits: [PixieFlavor ( color: 2, net: 0)],
collects: []
),
Terminus(
point: Vec2(480.0, -240.0),
emits: [PixieFlavor ( color: 1, net: 0)],
collects: []
),
// rtl
Terminus(
point: Vec2(384, -96),
emits: [],
collects: [PixieFlavor ( color: 0, net: 0)]
),
Terminus(
point: Vec2(384, 96),
emits: [PixieFlavor ( color: 0, net: 1)],
collects: []
),
Terminus(
point: Vec2(240, -96),
emits: [PixieFlavor ( color: 2, net: 1)],
collects: []
),
Terminus(
point: Vec2(240, 96),
emits: [],
collects: [PixieFlavor ( color: 2, net: 0)]
),
Terminus(
point: Vec2(96.0, -96.0),
emits: [],
collects: [PixieFlavor ( color: 4, net: 0)]
),
Terminus(
point: Vec2(96, 96),
emits: [PixieFlavor ( color: 4, net: 1)],
collects: []
),
Terminus(
point: Vec2(-96, -96),
emits: [PixieFlavor ( color: 1, net: 1)],
collects: []
),
Terminus(
point: Vec2(-96.0, 96.0),
emits: [],
collects: [PixieFlavor ( color: 1, net: 0)]
),
Terminus(
point: Vec2(-240, -96),
emits: [],
collects: [PixieFlavor ( color: 3, net: 0)]
),
Terminus(
point: Vec2(-240, 96),
emits: [PixieFlavor ( color: 3, net: 1)],
collects: []
),
Terminus(
point: Vec2(-384, -96),
emits: [PixieFlavor ( color: 5, net: 1)],
collects: []
),
Terminus(
point: Vec2(-384, 96),
emits: [],
collects: [PixieFlavor ( color: 5, net: 0)]
),
],
obstacles: [
// corners
Rect(Vec2(-624, -192), Vec2(-528, -288)),
Rect(Vec2(-624, 336), Vec2(-528, 240)),
Rect(Vec2(528, 336), Vec2(624, 240)),
Rect(Vec2(528, -192), Vec2(624, -288)),
//
Rect(Vec2(-432.0, 48.0), Vec2(-48.0, -48.0)),
Rect(Vec2(48.0, 48.0), Vec2(432.0, -48.0))

],
star_thresholds: [200, 240, 280],
)
Loading

0 comments on commit 622abd2

Please sign in to comment.