Building some Black Box Puzzles for Panic's Playdate
Black Box Puzzles are a creation of James Lyndsay
pdc -k <input>
- Sublime build system:
"cmd": ["pdc", "-k", "$folder"]
pdc -k source pbbp.pdx
pdc -k -I source tests pbbp-tests.pdx
requires copy of assets into tests folder
- playdate.getButtonState() is cool but uses bitmasks
- Playdate SDK
- Mozart NBP Font by total FontGeek DTF, Ltd.
- followed instructions mentioned below
- requires building the tests, then running them in the simulator
- not sure what
testOutputFilename
does - ToDo: figure out how to get fonts and images into
tests
- Makefile:
cp
with-u
(update, UPDATE={all,none,older(default)} ) or-n
(no-clobber, i.e. no overwrites)
make lint
runsluacheck
on./source
- does require
luacheck
dev version for now:luarocks install --server=https://luarocks.org/dev luacheck dev-1
- https://github.com/lunarmodules/luacheck
- https://devforum.play.date/t/playdate-sdk-support-for-luacheck/6887
- puzzle that uses playdate.buttonIsPressed(button)
- https://play.date/dev/
- https://play.date/dev/links/
- https://sdk.play.date/2.0.3/Inside%20Playdate.html
- https://martin-fieber.de/blog/how-to-test-your-lua/
- https://github.com/mockagne/mockagne
- https://github.com/henry4k/lua-mock
- font conversion: https://kaasiand.cool/tophat/
- load fonts without file extention:
gfx.font.new("fonts/JetBrainsMono-Medium-20")