sorry about the blunt title, it's just my humble viewpoint about
as reference, I might cite amos/stos, sdlbasic, processing, nodebox, shoebot, ansi-basic manuals from 8bit computers from the 80s, etc., having plenty of minimal examples (with less than 10 lines of code, for example) covering each feature or command, that might be used like “lego bricks“ in a moer complex code - imho this can help smoothing the learning curve
(I actually have some experience coding in lua, like grafx2 scripts, tic80, etc. - só I really wonder why am I struggling on playdate lua development, and specially from the default sdk available examples (even compiling them) - I think i'm not alone here struggling… )
It’s an interesting suggestion for sure, I remember seeing such examples on an SDK like Qt, where every feature/functionality was super detailed in the documentation on how to use, alongside examples of how to use them. The SDK documentation includes some examples but I think we rarely look at them once past the beginner stage, and they only showcase limited ways to use functionality.
If you want to throw out some ideas of features/functionality you’d like to see more documentation/examples on, let me know! I can get us started
thanks! years ago I made this for sdlBasic: Some ideas for sdlBasic - so the idea would be doing something like this on Playdate (lua, c, etc...) - as small stuff covering “essentials” like text, tiles, sprites, sprite sheets, tiles, tile sheets, controls, sound, etc.
thanks, I didn’t notice them - they are indeed great, but the smallest one (around 30 lines of code) seems 3x larger than what I expected (10 lines of code or less), and ar less examples than what I expected as well - but they can indeed be a great start
anyway, as a minimal example, I think it’s essential you can see the whole code in a small screen size or window without having to scroll it, and it doesn't happen in most of the examples there…
(edit: these error messages are quite demotivating, are them usual? guest@macbookair:/opt/compilers/playdatesdk/bin$ ./pdc /opt/compilers/playdatesdk/Examples/SingleFileExamples/arcs.lua /opt/compilers/playdatesdk/Examples/SingleFileExamples/compiled/arcs.pdz
error: /opt/compilers/playdatesdk/Examples/SingleFileExamples/arcs.lua:1: No such file: CoreLibs/graphics - drawmode example didn’t show any error message, and isn’t opening on the simulator as well… - i’m on ubuntu gnu/linux here )