Hack Club’s Scrapbook
A daily diary of what Hack Clubbers are learning & making every day.
spade-serial
and spade-upload
! They can upload games to a #C02UN35M7LG| or whatever device running Spade. I spent a lot of time writing the tests and documentation.. I wanted to get it right since this is my first time, so I know what to do in the future. spade-serial
is the crate that does the actual work while spade-upload
is the application that makes use of the crate. It's useful to me because I use Safari on my MacBook and Firefox on my other laptop, neither of which implement the Web USB API, so this provides a way for me to put games on my Sprig without installing another browser that I don't want to use. I made spade-serial
into a crate because I wanted to keep the logic separate so that people could apply it in multiple places, like maybe a GUI app.
The game uploaded in the video is this game. I did not create it.
GitHub Repository | spade-serial on crates.io | spade-upload on crates.io:heavysob:
emoji! Meet :hdheavysob:, :hdheavysob:
! (it makes no practical difference and is a little smaller lol, but the thought is there)