09-02-2023, 12:33 PM
(09-02-2023, 03:37 AM)dbox Wrote:Wow, yes! Definitely will be using these! Thanks man, saved loads of time right there.(09-02-2023, 03:29 AM)grymmjack Wrote: can cookies be set or localstorage on a qbjs banner? if so we could add a little speaker icon default to muted, but then when a user clicks, enables sounds? we wouldn't want these to be on all the time. but clicking it might be fun to have some audio in the banner (or whatever qbjs thing we make).Thanks @grymmjack, glad you're enjoying it!
Thanks @dbox for making qbjs it's great.
You can use local storage by importing the Storage library.
One thing to keep in mind is that audio will not play automatically due to browser security rules and must be initiated by a user action. (This is partially why there is a "play" mode vs. "auto".)
You may also want to consider the 2D graphics library extension in QBJS for some of the drawing primitives you have outlined:
I'd eventually love to have these features in QB64PE too but for now, I won't sweat that too much.
Thanks @dbox