Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fall Banner 2023 Idea - Dev Diary
#13
(09-02-2023, 03:37 AM)dbox Wrote:
(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 @dbox for making qbjs it's great.
Thanks @grymmjack, glad you're enjoying it!

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:
Wow, yes! Definitely will be using these! Thanks man, saved loads of time right there.

I'd eventually love to have these features in QB64PE too Smile but for now, I won't sweat that too much.

Thanks @dbox
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply


Messages In This Thread
Fall Banner 2023 Idea - Dev Diary - by grymmjack - 09-02-2023, 12:59 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 01:11 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 01:17 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 01:45 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 02:01 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 02:07 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 02:33 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 02:40 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 02:49 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 03:18 AM
RE: Fall Banner 2023 Idea - by grymmjack - 09-02-2023, 03:29 AM
RE: Fall Banner 2023 Idea - Dev Diary - by dbox - 09-02-2023, 03:37 AM
RE: Fall Banner 2023 Idea - Dev Diary - by grymmjack - 09-02-2023, 12:33 PM
RE: Fall Banner 2023 Idea - Dev Diary - by dbox - 09-02-2023, 02:02 PM
RE: Fall Banner 2023 Idea - Dev Diary - by bplus - 09-02-2023, 03:29 PM
RE: Fall Banner 2023 Idea - Dev Diary - by bplus - 09-06-2023, 01:59 PM



Users browsing this thread: 1 Guest(s)