Here's the weird word puzzle thing I'm making to help me learn Lua / Playdate.
Three evenings work so far, it went something like:
Day 0 - Installed the SDK. Set up development environment in VSCode.
Day 1 - Pick from a dictionary of random words, one screen, 4 directional input. Learned: Drawing! File I/O! Fonts! Randomisation! Lua!
Day 2 - Multiple screens. Puzzle through the beginning of Moby Dick. Added a banner at the bottom to see the text as it is built. Learned: Animations! Dithering!
Day 3 - Use the crank to scroll the text at the bottom. History (go back if you keep pressing left). Learned: Crank input!
Kept up a nice pace but I've now got a nightmare code file with state all over the place so I think the next couple of days on this might just be tidying that up
Am also going to:
- Try some OO (I miss it).
- Look into unit testing so I have that in my tool belt.
- Look at alternatives to direct drawing.
Good experiences:
- Really quick to get going (development environment was easily the biggest pain, but thanks to Orta this was easy enough)
- Way more examples than I expected! I started building out my drawing code from the pathfinder example.
- Many of my questions quickly resolved by looking at the docs.
Bad experiences:
- Getting to grips with tables and for loops.
- Splitting strings
- Bit of a drag to get text centered vertically in a rect where horizontal alignment is handled.
- Simulator hanging - I had non-terminating code, had to kill the simulator every time I tried it.
Having fun though