Log 8 - Making Puzzles
Pico² is releasing soon on PICO-8! Follow on itch.io for updates!
See the Pico² Design Document!
We’re so back!!
It’s been a minute - had lots of work to do and had to pause development. But I’m back into it now, and have spent the last two days thinking about how I’m going to create the puzzles themselves.
I wanted a way to quickly edit and test puzzles without editing raw text. I considered making a separate PICO-8 app for this, but this platform isn’t great for saving data to external sources.
Then I realised: Excel! It’s perfect for grid-based data, can be customised with macros, and I can read .xlsx
in Python with a library. I can even then inject this straight into the Lua code, creating a super convenient pipeline that lets me edit puzzles and play them in Pico² within just a few seconds.
Excel to Pico²
The Excel sheet has square cells in the first columns, and conditional formatting to fill in the cell when it has value y
. Macros are used to toggle between filled and crossed cells - this editing mode can be toggled with the “on
” cell at the top of each sheet.
Excel makes for a very intuitive Picross puzzle editor.
Next, in Python, I load this using openpyxl
, reading each line and compiling them into a Puzzle
object. This includes all the puzzle solving functions I made previously, so as soon as they’re loaded in I get a report in the terminal about which puzzles are solvable. Nice!
Puzzle 16 in World 2 isn’t solvable!
I’ve also got a text file with the puzzle names. These are all written directly into levels.lua
, which is #include
’d in the game cart. Best of all, I can use my solver in PICO-8 itself to fill the puzzle as far as possible, highlighting which parts of the grid need changing to make the puzzle solvable.
Pico² reveals which parts of the unsolvable puzzle are causing issues.
This makes designing and testing puzzles really fast and convenient, and I’m super happy with it!
Next Steps
As of right now, with puzzle data for all worlds loaded, I’m sitting at:
- 6005 / 8192 tokens
- 41862 / 65535 characters
Not great - I was hoping for more than 2000 for the world art, but it’ll have to do. Stay tuned for more (probably still irregular) developments!
Follow on Twitter @wsasaki01 Follow on Bluesky at wsasaki.bsky.social
Pico²
Relaxing Picross game for PICO-8
Status | In development |
Author | wsasaki01 |
Genre | Puzzle |
Tags | PICO-8 |
Languages | English |
Accessibility | Configurable controls, Interactive tutorial |
More posts
- Log 7 - Mid-Development ReviewFeb 23, 2025
- Log 6 - I Can't Stop Playing PicrossFeb 04, 2025
- Log 5 - Design Design Design!Jan 28, 2025
- Log 4 - Picross Hint Guide SystemJan 27, 2025
- Log 3 - Visual Inspiration + Making a Picross SolverJan 18, 2025
- Log 2 - ConceptingJan 15, 2025
- Log 1 - Setting OutJan 09, 2025
Leave a comment
Log in with itch.io to leave a comment.