Generate QR codes on your MSX

By salutte

Expert (69)

salutte의 아바타

22-05-2020, 23:21

Hi all,

I planned to create a small game for the msx-dev competition, and, as a surprise and technical novelty, use QR codes to save progress. But ultimately I don't have time to finish the game, and I thought that the community might benefit from a QR code generator for MSX.

It is here:
https://github.com/MartinezTorres/msx_qrcode

And a live demo in:
https://webmsx.org/?ROM=https://github.com/MartinezTorres/msx_qrcode/raw/master/out/msx/qr_demo.rom

It's based on an open source C code, but I cut as much as I could to make it fit 6 kb and run in a few seconds. Still it should be able to generate all possible sizes of QR codes, but those must be configured during compile time.

I just put the repo together, so it is pretty ugly, so I'd appreciate contributions and suggestions.

Login or 등록 to post comments

By salutte

Expert (69)

salutte의 아바타

23-05-2020, 11:24

By Manuel

Ascended (16696)

Manuel의 아바타

23-05-2020, 16:02

Cool, it actually works Smile Now I'd like to see applications of this Smile

By thegeps

Champion (476)

thegeps의 아바타

23-05-2020, 16:58

cool, but how is supposed to make QR code read from msx if you use them to save progress? I mean, the game will generate a QR code, and that's really cool. How can it be passed again to msx to load game progress?

By salutte

Expert (69)

salutte의 아바타

23-05-2020, 17:10

thegeps,
you are right, this is only a compact way to store a long "password", and you can use your phone to read it, or it can direct you to an URL, or something else. But this does not help you into putting the password back into the MSX, there you must do it by hand...

By thegeps

Champion (476)

thegeps의 아바타

23-05-2020, 21:24

Ok, now I get it Wink

By sd_snatcher

Prophet (3296)

sd_snatcher의 아바타

24-05-2020, 15:05

It's a nifty proof of concept! Thanks!

By NYYRIKKI

Enlighted (5556)

NYYRIKKI의 아바타

24-05-2020, 15:50

I would say as password system this is pretty dead idea (You can take a photo of plain-text password probably even more easily), but this can be used to create a really nice and relatively fake proof online hi-score list! Just create secret checksum system for name & hi-score and use QR-link to send user to page where he can then see "best of day/week/month/all time"-list and his location on it.

By salutte

Expert (69)

salutte의 아바타

25-05-2020, 07:03

I agree NYYRIKKI, the actual target I had in mind is that the QR code would bring you to an URL with a code, and the webpage would take this code, and give you the password to save, and register the high score. I even registered a URL, but... no time...