Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2622e2b51 |
No files matched your search
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## [0.2.9] - 2026-10-27
|
||||
|
||||
- More portal rooms in the mountains: five more boards have a walled corner room whose doorway closes, so a ring is the only way in, and boards there that bring portals use their room. Seven of the last twenty boards now have a portal room.
|
||||
|
||||
## [0.2.8] - 2026-10-27
|
||||
|
||||
- After the meadow, a new idea arrives every few dozen levels and keeps coming back: squirrels that dash and sit from level 45, hedgehogs that curl into a spiky ball as you come close from 85, keys that open a gate from 101, frogs that hop two tiles from 125, switch stones that open and close a gate from 141, rolling stones from 165 and portal rooms, reached only through a ring, from 181.
|
||||
|
||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.4 KiB |
@@ -186,17 +186,17 @@ DesignedLevelText :: (level: s32) -> string {
|
||||
if level == 177 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100000000000000003311003311001100000000000400003311003311001100000090000011001111001111001100000000000011001111001111001100000000000011000000000000001100000000000011000000000000001100000000000011003311003311001100000000000011003311003311001100000000000011001111001111001100000000000011001111001111001100000000000011000000000000001100000000000011000000000000001100000000000011003311003311001100000000000011003311003311001100000000000011001111001111001100000000000011001111001111001100000000000011000000000000001100000000000011000000000000001100000000000011003311003311001100000000000011003311003311001100000000000011081111001111001100000000000011001111001111001100400000000011000000000000001100000000000011000000000000001100000000000011003311003311001100000000600011003311003311001100000000000011001111001111001100000000000011001111001111001100000000000011000000000000001100000000000011000000007000001100000000000011003311003311001100000000000011003311003311001100000000000000001111001111001100000000000000001111001111001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 178 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100000000400008000000000000001100000000000000000000008000001100000011331100000000000000001100000011331100000000000000001100001133111100000000000000001100001133111100000000000000001100003311113300000000000000001100003311113300000000000000001100001111331100000000000000001100001111331100000000000000001100001133111100000000000000001100001133111100000000000000001100000000007011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000011000000000000001100001111111111111111111100001100001111111111111111111100001100000000000011000000000000001100009000000011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000011000400000000001100000000000011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000011000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 179 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000070000001100000000000000000000000000001100000000000000000900000000001100000000000000000000000000001111111111110000000011111111111111111111110000000011111111111100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100400000000000000000000000001100000000000000000000002200001100000000000000000000002200001100000000000000000000222222221100000000000000000000222222221100000000000000000022222200001100000000000000000022222200001100000000000000802222222200001100000000000000002222222200001100000000000000000000000000001100000000000080000000000000001111111111110000000000000000001111111111110000000040000000001100000000002200000000000000001100000000002200000000000000001100000000222200000000000000001100000000222200000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 180 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100001100000000000000000011001100001109000000000000000011001111400000000000000000000000001111000000000000000000000000001100000000001100000011000000001100000000001100000011000000001100000000000000000000000000111100000000040000000000000000111100000022222222222222220000001100000022222222222222220000001100001111111122002211111100001100001111111122002211111100001100000011111122002211110000001100080011111122002211110000001100000011111122002211110000001100000011111122002211110000001100000033111100001133110000001100009033111100001133110000001100000022222222002222220000001100000022222222002222220000001111001111111122002211110000111111001111111122002211110000111100000011111122002211110000001100000011111122002211110000001100000000000000000000110000001100000000000000000000110000001100000000001100000000000000001100000000001100000000000000001100000000000000000000000000001100000000700000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000011001100000000000000000000000011001100110000000000000000000000001100110000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 180 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100001100000000000000000011001100001100000000000000000011001111000000000000000000000000001111090000000000000800000000001100000000001100000011000000001100000000001107000011000000001100000000900000000000000000111100000000000000000000000000111100000022222222222222220000001100000022222222222222220000001100001111111122002211111100001100001111111122002211111100001100000011111122002211110000001100000011111122002211110000001100000011111122002211110000001100000011111122002211110000001100000033111100001133110000001100000033111100001133110000001100000022222222002222220000001100000022222222002222220000001111001111111122002211110000111111001111111122002211110000111100000011111122002211110000001100000011111122002211110000001100000000000000000040110000001100000000000000000000110000001111001111001100000000000000001111001111001100000000000000001100000011000000000000000000001100000011000000000000000000001100000011000000000000004000001100000011000000000000000000001100000011000000000000000011001100000011000000000000000011001100000011000000000000000000001100000011000000000000000000001111111111111111111111111111111" }
|
||||
if level == 181 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100111100000000000400001111001100111100700000000000001111001100111111111100111111111111001100111111111100111111111111001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000900000001100001100001100000000000000001100001100001100000400000000001100001100001100000000000000001100001100001100000000000000001100001100000000000000000000000000001100000000000000000000000000001100701100000000000000001100001100001100000000000000001100001100001100000800000000001100001100001100000000000000001100001111111111111100111111111111111111111111111100111111111111111111111111111100111111111111111111111111111100111111111111111111111111111100111111111111111111111111111100111111111111111111111111111100111111111111111111111111111100111111111111111111111111111100111111111111111111111111111100111111111111111111111111111100001111111111111111111111111100001111111111111111111111111100001111111111111111111111111100001111111111111111111111111111111111111111111" }
|
||||
if level == 182 { return "111111111111111111111111111111100000000001100000000000000001100000000001100000000000000001100001100001100000040001111001100001100001100000000001111001100001111111100001111111111001100001111111100001111111111001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000040000001100001100000000000000000000001100001100000000000000000000001100001100700000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000000000001100000000000000000000000000001100000000000000000000001100001100000000000800000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000007000000000000001100001100000000000000000000001100001100000000000000000000901100001100000000000000000000001100001100001100111100001111111111001100001100111100001111111111001100001100001100000000001111001100001100001100000000001111001100001100001100000000000000001100001100001100000000000000001111111111111111111111111111111" }
|
||||
if level == 182 { return "111111111111111111111111111111100000000001100000000110000001100000000001100000000110000001100001100401100000000110000001100001100001100000000110000001100001111111100001100000000001100001111111170001100000000001100000000000000000000110000001100800000000000000000110000001100000000000000000000111111111100000000000000000000111111111100000000000000000000001100001100000000000000000000001100001100070000000400000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000000000001100000000000000000000000000001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100000090000000000000001100001100000000000000000000001100001100000000000000000000001100001100000000000000000000001100001100001100111100001111111111001100001100111100001111111111001100001100001100000000001111001100001100001100000000001111001100001100001100000000000000001100001100001100000000000000001111111111111111111111111111111" }
|
||||
if level == 183 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100118011001100000000000000001100110011001100000000000000001100000000000000000011000000001100000000000000000011007000001100110011001100110011000000001100110011001100110011000000001100000000000000000011000000001100000000000900000011000000001100110011001100110011000000001100110011001100110011000000001100000000000000000011000000001100000000000000000011000000001100001100110000110011000000001100001100110000114011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110005110011000000001100041100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100001100110000110011000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 184 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000060000000000000001100000022000000000000000000001100000022000000000000000000001100000500000000000000000000001100000000000000000000000000001100000000000000000000002200001100000000000000000000002200001100000000000000000000002200001100000000000000000000002200001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000111100000000000000000000000000111100000000040000000000000000001100009000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100002200000000000011111111111100002200000000000011111111111100000000000000000000000000001100000000000000000000000000001100000000000000111111111111001100000000000000111111111111001100000000000000000000000000001100000000700000000000000000001100000000001111111111111111111100000000001111111111111111111100000000000000000004000000001100000000000000000000000000001100000011111100001111111111001100000011111100001111111111001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 184 { return "111111111111111111111111111111100000011000000000000000000001100000011000000000000000000001100000011000000000000090000001100000011000040000000000000001100000000000000000000000000001100000000000000000000000000001100000011000000000000000000001100000011000000000000000000001111111111070000000000002200001111111111000000000000002200001100000000000000000000002200001100000000000000000000002200001100000000400000000000000000001100000000000000000000000000001100000000000000000000000000111100000000000000000000000000111100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100002200000000000011111111111100002200000000000011111111111100000000000000000600000000001100000000000000000000000000001100000000000000111111111111001100000000000000111111111111001100000000000000000000000000001100000000000000000000000000001100000000001111111111111111111100000000001111111111111111111100000000000000000000000000001100000000000000000000500000001100000011111100001111111111001100000011111100001111111111001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 185 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000007000000001100000000000000000000000000001100000000009000000000000000001111111111111111111100000000001111111111111111111100004000001100000000222222222222221100001100000000222222222222221100001100000000222200000600000000001100000000222200000000000000001100000000222200222222220000001100000000222200222222220000001100000000222240220000000000001100000000222200220000000000001100000000222200220000000000001100000000222200220000000000001100000000222200220000000000001100000000222200220000000000001100000000222200222222220000001100000000222200222222220000001100000000222200000000000000001100000000222200000000000000001100000000000000051111111100001100000000000000001111111100001111111111111111111100000000001111111111111111111100000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 186 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100111111000000000000000000001100111111000000000000000000001100116011000000000000000000001100110011000000000000000000001100110011000000000000000000001100110011000000000000000000001100000000000000000005000000001100000000000000000000000000001100000000000000000000000000001100000000000000800000000000001100000000000000001111000000001100000000000000001111000000001100000000000000000011000000001100000000000000000011000000001100000000000000000011000000001100400000000000000011000000001100000000000000000011000000001100000000000000000011000000001100000000000000000011000000001100000000004000000011000000001100000000000000000011000000001100000000000000000011000000001100222200000022220000002222001100222200700022220000002222001100222200000022220000002222001100222200000022220000002222001100222200222222222222222222001100222200222222222222222222001100222200000022220000002222001100222200000022220000002222001100222200000022220000002222001100222200000022220000002222001100222200000000000000002222001100222200000000000000002222001122222222222200002222222222221122222222222200002222222222221111111111111111111111111111111" }
|
||||
if level == 187 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100001111110000001111111111001100001111110000001111111111001100001150000000001111111111001100001100000000001111111111001100111100001100000000000000001100111100001100000000000000001100001111000000001111111111001100001111000000601111111111001100000511000000001111111111001100000011000000001111111111001100000000000000000000000000001100000000000000000000000000001100000000001111001111111111001100000000001111001111111111001100000000000011001111111111001100000000000011001111111111001100000000111111000000000000001100000000111111000000000000001100000000110011111111111111001100000000110011111111111111001100000011110000001111111111001100000011110000001111111111001100000000000011110000000000001100000040000011110000000000001100000000000000111111111111001100000000000000111111111111001100000011000000001111111111001100000011000000001111111111001100000011000000000000000000001100000011400000000000000000001100111111000000001111111111001100111111000000001111111111001100001100000000001111111111001100081100000000001111111111001133001100000000000000000000001133001100000000000000000000001111111111111111111111111111111" }
|
||||
if level == 188 { return "111111111111111111111111111111100001122000000000000001100001100001122000000000000001100001100002211000000000000111111001100002211000000000000111111001100000000000000001100001100001100000000000000001100001100001100000000000000001111000000001100050000000000001111000000001100000000000011221100001100001100000000000011221100001100001100000000000022111100111111001100006000000022111100111111001100000000000000001111001100001100000000000000001111001100001100110004110000001100000000001100110000110000001100000000001100000011111100000000110000001100000011111100000000110000001100000000110000000011111100001100000000110000000011111100001100005000000011000000110000001100000000000011000000110000001100001100001111110000001100001100001100001111110000001100001100111111000011000000111111001100111111000011000000111111001100001100000000000000001100001100001100000000000000001100001100000000000011000011000000001100000800000011000011000000001100000000001111111111110000001100000000001111111111110000001100001100000011000011000011001100401100000011000011000011001100111111000000000000001111001100111111000000000000001111001100001100000000000000000011001100001100000000000000000011001111111111111111111111111111111" }
|
||||
if level == 188 { return "111111111111111111111111111111100001122000000000000001100001100001122000000000000001100001100002211000000000000111111001100002211000000000000111111001100000000005000001100001100001100000000000000001100001100001100000000000000001111000000001100000000000000001111000000001100000000000011221100001100001100080000000011221100001100001100000000000022111100111111001100000000000022111100111111001100000000000000001111001100001100000000000000001111001100001100110000110000001100000000001100110005110000001100000000001100000011111100000000110000001100000011111100000000110000001100400000110000000011111100001100000000110000000011111100001100000000000011000000110000001100000000000011000000110000001100001100001111110000001100001100001100001111110000001100001100111111000011000000111111001100111111000011000000111111001100001100000000000000001100001100001100000000000000001100001100600000000411000011111111111100000000000011000011111111111100000000001111111111110000001100000000001111111111110000001100001100000011000000000000001100001100000011000000000000001100111111000000000000110000001100111111000000000000110000001100001100000000000000110000001100001100000000000000110000001111111111111111111111111111111" }
|
||||
if level == 189 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100111111001100000011001100001100111111001100000011001100001100110000000000117011001100001100110000000000110011001100001100111111001111110011111100001100111111001111110011111100001100110011001100000011001100001100110011001100000011001100001100116011001111110011001100001100110011001111110011001100001100000000000000000000000000001100000000000000000000000000001100111111001111110000000000111100111111001111110000000000111100400011001100110000000000111100000011001100110000000000111100001111001100110000001100001100001111001100110000001100001100050011081100000000111111111100000011001100000000111111111100111111001111110011111111111100111111001111110011111111111100000000000000001111111111111100000000000000001111111111111100110011001111111111111111111100110011001111111111111111111100110011001111111111111111111100110011001111111111111111111100110011000000111111111111111100110011000000111111111111111100110011111100111111111111111100110011111100111111111111111100114011111100001111111111111100110011111100001111111111111100001111111100001111111111111100001111111100001111111111111111111111111111111111111111111" }
|
||||
if level == 190 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100111111001100001111111111001100111111001100001111111111001100112222041100000000900011001100112222001100000000000011001100111111001100000000000011001100111111001100000000000011001100112222001100000000000011001100112222001100000000000011001100111100040000001111110011001100111100000000001111110011001100112200000000000000000011001100112200000000000000000011001100111100000000000000000011001100111100000000000000000011001100112200000000000000000011001100112200000000000000000011001100071100000000000000000000001100001100000000000000000000001100112200000000000000000000001100112200000000000000000000001100111100000000000000000011001100111100000000000000000011001100112200000000000000000011001100112200000000000050000011001100111111001100000000000011001100111111001100000000000011001100112222001100000000000011001100112222001100000008000011001100111111001100000000000011001100111111001100000000000011001100112222001100000000000011001100112222001100000000000011001100111111001100001111111111001100111111001100001111111111001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 190 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100111111001100001111111111001100111111001100001111111111001100112222001180000000000011001100112222001100000000000011001100111111901100000400000011001100111111001100000000000011001100112222001100000000000011001100112222001100000000070011001100111100000000001111110011001100111100000000001111110011001100112200000000000000000011001100112200000000000000000011001100111100000000000000000011001100111100500000000000000011001100112200000000000000000011001100112200000000000000000011001100001100000000000000000000001100001104000000000000000000001100112200000000000000000000001100112200000000000000000000001100111100000000000000000011001100111100000000000000000011001100112200000000000000000011001100112200000000000000000011001100111111001100000000000011001100111111001100000000000011001111111111001100000000000011001111111111001100000000000011001100000011001100000000000011001100000011001100000000000011001100000000001100000000000011001100000000001100000000000011001100000011001100001111111111001100000011001100001111111111001100000011000000000000000000001100000011000000000000000000001111111111111111111111111111111" }
|
||||
if level == 191 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100111111111100002222222222001100111111111100002222222222001100111111111100220090000000001100111111111100220000000000001100000000000000220000000000001100000000000000220000000000001100111111111100220000000000001100111111111100220000000000001100111111111100220000000000001100111111111100220000000000001100007000005000220080000000001100000000000000220000000000001100111111111100220000000000001100111111111100220000000000001100111111111100220000000000001100111111111100220000000000001100000000000000220000000000001100000000000000220000000000001100111111111100220000000000001100111111111100220000000000001100111111111100220000000000001100111111111100220000000000001100001100000400000000001100001100001100000000000000001100001100001100000000400000001100001100001100000000000000001100001100001100111111111111111100001100001100111111111111111100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001100001100000000000000001100001111111111111111111111111111111" }
|
||||
if level == 192 { return "111111111111111111111111111111100000000000000000000000000001100000000000000000000000000001100110011001100000000001111001100110011001100000000001111001100000000007000000000111111001100000000000000000000111111001100110011001100110011111100001100110011001100110011111100001100000000000900000000110000001100000000000000000000110000001100110011001100110000000000001100110011001100110000000000001100000000000000000000000000001100000000000000000000000000001100110011001100110000000000001100110011001100110000000000001100000000000000700000000000001100000000000000000000000000001100000011001100110000000000001100000011001100110000000000001100000000000000000000000000001100000000000000000000000000001100110011001100110000000000001100110011051100110000000000001100000000000000000000000000001100000040000000004000000000001100110011001100110000000000001100110011001100110000000000001100000000000000000000110000001100000000000000000000110000001100110011001100110611111100001100110011001100110011111100001100000000000000000000111111001100000000000000000000111111001100110011001100000000001111001100110011001100000000001111001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
if level == 193 { return "111111111111111111111111111111100000000110000001111111111111100000000110000001111111111111100000022000000002222222222001100000022000400002222222222001100000022000011000000000000001100070022000011000000000000001100000000000000220000000000001100000000000007220000000000001100000011600000000000000000001100000011000000000000000000001100220000000022000000000000001100220000000022000000000000001100000000000022000000000000001100000000000022000000000000001100220000000022000000000000001100220000040022000000000000001100220000000022000000000000001100220000000022000000000000001100000000000022000000000000001100004000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000000000000001100220000000022000009000000001100220000000022000000000000001100222222222200002222222222001100222222222200002222222222001100000000000000000000000000001100000000000000000000000000001111111111111111111111111111111" }
|
||||
|
||||
@@ -541,6 +541,12 @@ PlaceIdeas :: (game: *Game) {
|
||||
feature := BoardFeature(game.level)
|
||||
reached: [CELLS]bool
|
||||
if feature == FEATURE_PORTALS {
|
||||
// In the last landscape a board with a closed room puts its portal
|
||||
// there.
|
||||
if game.level >= IDEA_PORTAL_ROOM && PlaceGate(game, FEATURE_PORTAL_ROOM, reached[:]) {
|
||||
game.feature = FEATURE_PORTAL_ROOM
|
||||
return
|
||||
}
|
||||
pairs: s32 = ifx game.level >= IDEA_PORTAL_ROOM && Mix(cast(s64)game.level * 3) % 2 == 1 then PORTAL_PAIRS else 1
|
||||
if PlacePortals(game, pairs, reached[:], false) { game.feature = feature }
|
||||
return
|
||||
|
||||
@@ -2166,7 +2166,7 @@
|
||||
"reverse": 1
|
||||
},
|
||||
{
|
||||
"seed": 11820418,
|
||||
"seed": 11812499,
|
||||
"route": 0,
|
||||
"reverse": 0
|
||||
}
|
||||
@@ -2190,7 +2190,7 @@
|
||||
"reverse": 0
|
||||
},
|
||||
{
|
||||
"seed": 11927735,
|
||||
"seed": 11967330,
|
||||
"route": 0,
|
||||
"reverse": 0
|
||||
}
|
||||
@@ -2257,12 +2257,12 @@
|
||||
],
|
||||
[
|
||||
{
|
||||
"seed": 12423904,
|
||||
"seed": 12320957,
|
||||
"route": 0,
|
||||
"reverse": 0
|
||||
},
|
||||
{
|
||||
"seed": 12360552,
|
||||
"seed": 12423904,
|
||||
"route": 0,
|
||||
"reverse": 0
|
||||
}
|
||||
@@ -2281,12 +2281,12 @@
|
||||
],
|
||||
[
|
||||
{
|
||||
"seed": 12483707,
|
||||
"seed": 13038037,
|
||||
"route": 0,
|
||||
"reverse": 0
|
||||
"reverse": 1
|
||||
},
|
||||
{
|
||||
"seed": 12491626,
|
||||
"seed": 12650006,
|
||||
"route": 0,
|
||||
"reverse": 0
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#import, file "../src/game.zi";
|
||||
// campaign-cases:begin
|
||||
// Generated from campaign_cases.json by tools/design_levels.py.
|
||||
CampaignSeeds: [400]u32 = .[1, 1, 65538, 65538, 131075, 131075, 196612, 196612, 262149, 262149, 327686, 327686, 393223, 401142, 466679, 458760, 532216, 540135, 589834, 597753, 655371, 679128, 728827, 720908, 786445, 786445, 867820, 851982, 917519, 917519, 1014732, 983056, 1064431, 1064431, 1114130, 1114130, 1195505, 1211343, 1245204, 1261042, 1318660, 1326579, 1384197, 1392116, 1441815, 1544762, 1586542, 1546947, 1596646, 1572889, 1638426, 1638426, 1703963, 1703963, 2070422, 1824933, 1898389, 1850875, 1932250, 1900574, 1966111, 1974030, 2039567, 2047486, 2303079, 2105104, 2202317, 2210236, 2252016, 2236178, 2293796, 2301715, 2367252, 2391009, 2440708, 2456546, 4525590, 3155603, 2595539, 2650972, 2637319, 2621481, 2726613, 2900831, 2752555, 2752555, 2857687, 2826011, 2891548, 2891548, 2949166, 2949166, 3030541, 3022622, 3080240, 3088159, 3201210, 3153696, 3211314, 3235071, 3292689, 3276851, 3342388, 3350307, 3439601, 3423763, 3473462, 3631842, 3538999, 3538999, 3604536, 3762916, 3670073, 3670073, 3751448, 3767286, 3809066, 3816985, 3874603, 3866684, 4003492, 4003492, 4005677, 3997758, 4118728, 4205837, 4279293, 4366402, 4210207, 4233964, 4299501, 4299501, 4349200, 4325443, 4390980, 4406818, 4464436, 4496112, 4577487, 4545811, 4619267, 4643024, 4668966, 4661047, 4766179, 4750341, 4879230, 4815878, 5895047, 4849739, 6966297, 6950459, 5004570, 4980813, 5062188, 5101783, 5135644, 5230672, 5256614, 5399156, 5250880, 5242961, 5356012, 5332255, 5389873, 5405711, 5534600, 5463329, 5505109, 5560542, 5633998, 5784459, 5652021, 5652021, 5717558, 5812586, 5767257, 5767257, 6315853, 6426719, 5898331, 5953764, 5979706, 6019301, 6061081, 6037324, 6094942, 6094942, 6168398, 6160479, 6233935, 6241854, 6845883, 7827839, 7299451, 6626336, 6478060, 7103661, 6543597, 6488164, 7084274, 6846704, 6619238, 6761780, 7128239, 7452918, 6845340, 6766150, 6831687, 6926715, 6889305, 6936819, 7129060, 6970680, 8627936, 8279500, 7173025, 7196782, 7689945, 7872082, 7612940, 7351613, 7298365, 7892290, 7411416, 7474768, 8633127, 10715824, 7487057, 7502895, 7560513, 8106924, 7736916, 7602293, 7675749, 7683668, 7772962, 8160993, 11085289, 12455276, 7911955, 8054497, 8025006, 8436794, 8027191, 8145976, 8076890, 8068971, 8134508, 8158265, 8643509, 8564319, 8281420, 8257663, 8394471, 8552851, 12783782, 9980456, 8454274, 8881900, 8527730, 8535649, 8617024, 8617024, 8658804, 8872617, 8866883, 8771855, 8797797, 8813635, 8918767, 9203851, 8944709, 9055575, 13294425, 14632736, 11491078, 9107459, 9220510, 9172996, 9191019, 9175181, 9280313, 9565397, 9306255, 9314174, 9514334, 9743985, 9476924, 9508600, 9613732, 9708760, 9576322, 9584241, 9816077, 9903186, 9865776, 9762829, 9947151, 10343101, 9830551, 9838470, 9911926, 9911926, 10009139, 9977463, 10027162, 10130109, 10092699, 10092699, 10205750, 10308697, 10683075, 10302963, 10344743, 10289310, 10536984, 10639931, 10444141, 10555007, 10485921, 10604706, 10717757, 10630648, 11092135, 10862484, 10706289, 10690451, 10819340, 10803502, 10861120, 10971986, 11417635, 11758152, 11047627, 11023870, 11176516, 11422005, 11083673, 11202458, 11212562, 11141291, 11222666, 11262261, 11351555, 11723748, 11417092, 11377497, 11466791, 11680604, 11532328, 11500652, 11550351, 11558270, 12447383, 11972243, 11681425, 11665587, 11739043, 11826152, 12303477, 11820418, 12424447, 12273986, 11927735, 11927735, 12001191, 12207085, 12454759, 12066728, 12251050, 13486414, 12221559, 12197802, 12287096, 12271258, 12423904, 12360552, 12608226, 19949139, 12483707, 12491626, 12580920, 12881842, 12662295, 13002812, 12775346, 12648642, 15002770, 17291361, 12795554, 12803473, 12861091, 12845253, 12926628, 13243388, 131452486, 33446942, 13659546, 15124561];
|
||||
CampaignSeeds: [400]u32 = .[1, 1, 65538, 65538, 131075, 131075, 196612, 196612, 262149, 262149, 327686, 327686, 393223, 401142, 466679, 458760, 532216, 540135, 589834, 597753, 655371, 679128, 728827, 720908, 786445, 786445, 867820, 851982, 917519, 917519, 1014732, 983056, 1064431, 1064431, 1114130, 1114130, 1195505, 1211343, 1245204, 1261042, 1318660, 1326579, 1384197, 1392116, 1441815, 1544762, 1586542, 1546947, 1596646, 1572889, 1638426, 1638426, 1703963, 1703963, 2070422, 1824933, 1898389, 1850875, 1932250, 1900574, 1966111, 1974030, 2039567, 2047486, 2303079, 2105104, 2202317, 2210236, 2252016, 2236178, 2293796, 2301715, 2367252, 2391009, 2440708, 2456546, 4525590, 3155603, 2595539, 2650972, 2637319, 2621481, 2726613, 2900831, 2752555, 2752555, 2857687, 2826011, 2891548, 2891548, 2949166, 2949166, 3030541, 3022622, 3080240, 3088159, 3201210, 3153696, 3211314, 3235071, 3292689, 3276851, 3342388, 3350307, 3439601, 3423763, 3473462, 3631842, 3538999, 3538999, 3604536, 3762916, 3670073, 3670073, 3751448, 3767286, 3809066, 3816985, 3874603, 3866684, 4003492, 4003492, 4005677, 3997758, 4118728, 4205837, 4279293, 4366402, 4210207, 4233964, 4299501, 4299501, 4349200, 4325443, 4390980, 4406818, 4464436, 4496112, 4577487, 4545811, 4619267, 4643024, 4668966, 4661047, 4766179, 4750341, 4879230, 4815878, 5895047, 4849739, 6966297, 6950459, 5004570, 4980813, 5062188, 5101783, 5135644, 5230672, 5256614, 5399156, 5250880, 5242961, 5356012, 5332255, 5389873, 5405711, 5534600, 5463329, 5505109, 5560542, 5633998, 5784459, 5652021, 5652021, 5717558, 5812586, 5767257, 5767257, 6315853, 6426719, 5898331, 5953764, 5979706, 6019301, 6061081, 6037324, 6094942, 6094942, 6168398, 6160479, 6233935, 6241854, 6845883, 7827839, 7299451, 6626336, 6478060, 7103661, 6543597, 6488164, 7084274, 6846704, 6619238, 6761780, 7128239, 7452918, 6845340, 6766150, 6831687, 6926715, 6889305, 6936819, 7129060, 6970680, 8627936, 8279500, 7173025, 7196782, 7689945, 7872082, 7612940, 7351613, 7298365, 7892290, 7411416, 7474768, 8633127, 10715824, 7487057, 7502895, 7560513, 8106924, 7736916, 7602293, 7675749, 7683668, 7772962, 8160993, 11085289, 12455276, 7911955, 8054497, 8025006, 8436794, 8027191, 8145976, 8076890, 8068971, 8134508, 8158265, 8643509, 8564319, 8281420, 8257663, 8394471, 8552851, 12783782, 9980456, 8454274, 8881900, 8527730, 8535649, 8617024, 8617024, 8658804, 8872617, 8866883, 8771855, 8797797, 8813635, 8918767, 9203851, 8944709, 9055575, 13294425, 14632736, 11491078, 9107459, 9220510, 9172996, 9191019, 9175181, 9280313, 9565397, 9306255, 9314174, 9514334, 9743985, 9476924, 9508600, 9613732, 9708760, 9576322, 9584241, 9816077, 9903186, 9865776, 9762829, 9947151, 10343101, 9830551, 9838470, 9911926, 9911926, 10009139, 9977463, 10027162, 10130109, 10092699, 10092699, 10205750, 10308697, 10683075, 10302963, 10344743, 10289310, 10536984, 10639931, 10444141, 10555007, 10485921, 10604706, 10717757, 10630648, 11092135, 10862484, 10706289, 10690451, 10819340, 10803502, 10861120, 10971986, 11417635, 11758152, 11047627, 11023870, 11176516, 11422005, 11083673, 11202458, 11212562, 11141291, 11222666, 11262261, 11351555, 11723748, 11417092, 11377497, 11466791, 11680604, 11532328, 11500652, 11550351, 11558270, 12447383, 11972243, 11681425, 11665587, 11739043, 11826152, 12303477, 11812499, 12424447, 12273986, 11927735, 11967330, 12001191, 12207085, 12454759, 12066728, 12251050, 13486414, 12221559, 12197802, 12287096, 12271258, 12320957, 12423904, 12608226, 19949139, 13038037, 12650006, 12580920, 12881842, 12662295, 13002812, 12775346, 12648642, 15002770, 17291361, 12795554, 12803473, 12861091, 12845253, 12926628, 13243388, 131452486, 33446942, 13659546, 15124561];
|
||||
CampaignRoutes: [400]s32 = .[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0];
|
||||
// campaign-cases:end
|
||||
libc :: #system_library "libc";
|
||||
ParseNumber :: (text: *u8) -> s32 #foreign libc "atoi";
|
||||
|
||||
@@ -170,7 +170,7 @@ main :: () -> s32 {
|
||||
}
|
||||
print("Ideas placed: portals % keys % switches % rooms %; animals after 180: flames % squirrels % hedgehogs % frogs % stones %\n",
|
||||
placed[1], placed[2], placed[3], placed[4], later_animals[0], later_animals[1], later_animals[2], later_animals[3], later_animals[4])
|
||||
Expect(placed[FEATURE_PORTALS] >= 20 && placed[FEATURE_KEY] >= 8 && placed[FEATURE_SWITCH] >= 6 && placed[FEATURE_PORTAL_ROOM] >= 3,
|
||||
Expect(placed[FEATURE_PORTALS] >= 20 && placed[FEATURE_KEY] >= 8 && placed[FEATURE_SWITCH] >= 6 && placed[FEATURE_PORTAL_ROOM] >= 7,
|
||||
"every puzzle idea comes back in later levels")
|
||||
Expect(later_animals[1] > 0 && later_animals[2] > 0 && later_animals[3] > 0 && later_animals[4] > 0, "the last boards mix every animal")
|
||||
Expect(key_level >= 0 && switch_level >= 0 && room_level >= 0 && portal_level >= 0, "every puzzle idea is placed somewhere")
|
||||
|
||||
@@ -164,6 +164,41 @@ def layout(stage,within,attempt):
|
||||
return source,accent,walls
|
||||
|
||||
|
||||
# Mountain boards that close a corner room with a single doorway. The game
|
||||
# seals that doorway, so a portal is the only way in; with the doorway open
|
||||
# the room is ordinary floor for the certificate.
|
||||
PORTAL_ROOMS=(181,183,185,189,191)
|
||||
|
||||
|
||||
def portal_room(walls,number):
|
||||
# Each corner room is 4x3 blocks, walled toward the middle, with its door
|
||||
# on the side or the bottom; the boards try them in a per-level order.
|
||||
corners=[]
|
||||
for right in (False,True):
|
||||
for bottom in (False,True):
|
||||
xs=range(15,19) if right else range(0,4)
|
||||
ys=range(11,14) if bottom else range(0,3)
|
||||
wall_x=14 if right else 4
|
||||
wall_y=10 if bottom else 3
|
||||
ring=[(wall_x,y) for y in (range(10,14) if bottom else range(0,4))]+[(x,wall_y) for x in (range(14,19) if right else range(0,5))]
|
||||
side=(wall_x,12 if bottom else 1);outside_side=(wall_x+(-1 if right else 1),side[1])
|
||||
below=(16 if right else 2,wall_y);outside_below=(below[0],wall_y+(-1 if bottom else 1))
|
||||
for door,outside in ((side,outside_side),(below,outside_below)):
|
||||
corners.append(({(x,y) for x in xs for y in ys},ring,door,outside))
|
||||
tile=Counter(walls.values()).most_common(1)[0][0] if walls else 20
|
||||
order=list(range(len(corners)));random.Random(number*977).shuffle(order)
|
||||
for index in order:
|
||||
room,ring,door,outside=corners[index]
|
||||
shaped=dict(walls)
|
||||
for p in room:shaped.pop(p,None)
|
||||
for p in ring:shaped[p]=tile
|
||||
shaped.pop(door,None);shaped.pop(outside,None)
|
||||
allowed=ALL-set(shaped)
|
||||
if reachable(allowed,(9,13))==allowed and not (set(shaped)&GATES):
|
||||
return shaped,room
|
||||
return None,set()
|
||||
|
||||
|
||||
def campaign():
|
||||
levels=[];known=set()
|
||||
for stage,(stage_name,first,end) in enumerate(STAGES):
|
||||
@@ -171,6 +206,10 @@ def campaign():
|
||||
number=first+within+1
|
||||
for attempt in range(512):
|
||||
source,accent,walls=layout(stage,within,attempt)
|
||||
room=set()
|
||||
if number in PORTAL_ROOMS:
|
||||
walls,room=portal_room(walls,number)
|
||||
if walls is None:continue
|
||||
floors=ALL-set(walls);key=signature(walls)
|
||||
if key in known or len(floors)<88 or (within>=6 and len(walls)<8):continue
|
||||
known.add(key);break
|
||||
@@ -181,8 +220,10 @@ def campaign():
|
||||
for dy in range(2):grid[1+mx*2+dx][1+my*2+dy]=tile
|
||||
cycle=safe_cycle(floors,number*4099)
|
||||
count=0 if stage==0 and within<6 else min(8,1+stage+within//16)
|
||||
# Creatures stay out of a portal room, leaving it room for the ring.
|
||||
candidates=[p for p in cycle if 3<=p[0]<=36 and 3<=p[1]<=23 and
|
||||
abs(p[0]-20)+abs(p[1]-27)>=14 and abs(p[0]-37)+abs(p[1]-14)>=10]
|
||||
abs(p[0]-20)+abs(p[1]-27)>=14 and abs(p[0]-37)+abs(p[1]-14)>=10 and
|
||||
((p[0]-1)//2,(p[1]-1)//2) not in room]
|
||||
rng=random.Random(number*65537);rng.shuffle(candidates);placed=[];kinds=[]
|
||||
for x,y in candidates:
|
||||
if len(placed)>=count:break
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"version": "0.2.8",
|
||||
"version_code": 18
|
||||
"version": "0.2.9",
|
||||
"version_code": 19
|
||||
}
|
||||