QR Code Generator
By dsilverz – Adventure level – uploaded 19 Apr 2025 from LinuxThis is my first public creation for Principia, a proof-of-concept of generating QR Codes in-game. It allows for real-time QR Code updating, which in turn allows for real-time debugging beyond game:show_numfeed and/or game:message() (as well as the Lua's built-in print() which, unbeknownst to Principia's Wiki, does print text when Principia is launched from a terminal).
It uses part of the code from the GitHub repository "luaqrcode" from "speedata" (to whom I'm not affiliated to, I'm just adapting their implementation to the Principia's environment because it's the closest to a pure, native implementation of doing QR Codes, without having to deal with external libraries and dependencies), whose library qrencode.lua is embedded (almost) ipsis literis within this level's Lua Source and whose credits/licensing (3-clause BSD license) was kept intact.
Views: 59 - Downloads: 84 - Level ID: 1220
You may also add "this:set_sprite_filtering(0)" string in your qr code generator in order to remove the blur effect