Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fall Banner Contest?
#11
(08-30-2023, 04:19 PM)TerryRitchie Wrote: Where can I find command set documentation for QBJS? I've searched gGithub (what a mess) but can't seem to find documentation specific to QBJS' use.

For example, I see _LOADIMAGE is supported but obviously I'll need to have the image resources located on the web somewhere to load. From a few of the examples I've looked at _LOADIMAGE in QBJS can do this. Same with _SNDOPEN, etc..

However, when I click on _LOADIMAGE in the supported keyword list I'm taken to "QB64 Official"'s _LOADIMAGE Wiki page. Where is the Wiki specific to QBJS use?

Hi @TerryRitchie, the documentation is still definitely a work in progress.  I'm sorry you found it to be a mess.  I'm using the wiki in github simply because it's easier to maintain the code and documentation all in one place.  The links are to the QB64 official documentation because it is also in github wiki format and matches the look-and-feel.  My goal is not to recreate the QB64 documentation but rather indicate what is currently supported by QBJS and highlight any differences in functionality.

Here are the relevant pages in the wiki:

https://github.com/boxgaming/qbjs/wiki/Q...ge-Support
This page has a general overview of the level of support QBJS has at present with QBasic/QB64 as well as a summary of new functionality unique to QBJS.

https://github.com/boxgaming/qbjs/wiki/S...d-Keywords
This page is intended to be a comprehensive listing of what QB45 and QB64 keywords are supported by the current version of QBJS.

https://github.com/boxgaming/qbjs/wiki/S...rd-modules
At the bottom of this page is a list of all the new libraries that have been added to QBJS.  The links in this section are to other pages in the QBJS wiki with usage information and examples.

https://github.com/boxgaming/qbjs/wiki/Samples
This page has several sample programs.  (I need to add to this some of the great programs that have been created in this forum.)

https://github.com/boxgaming/qbjs/wiki/U...d-Keywords
This page lists all of the keywords that have not been implemented yet.  Some of them are marked as "Won't Do" because either there is not a mechanism (that I have found yet) for implementing it in Javascript, or it was not implemented in QB64 either.
Reply
#12
(08-30-2023, 04:45 PM)dbox Wrote:
(08-30-2023, 04:19 PM)TerryRitchie Wrote: Where can I find command set documentation for QBJS? I've searched gGithub (what a mess) but can't seem to find documentation specific to QBJS' use.

For example, I see _LOADIMAGE is supported but obviously I'll need to have the image resources located on the web somewhere to load. From a few of the examples I've looked at _LOADIMAGE in QBJS can do this. Same with _SNDOPEN, etc..

However, when I click on _LOADIMAGE in the supported keyword list I'm taken to "QB64 Official"'s _LOADIMAGE Wiki page. Where is the Wiki specific to QBJS use?

Hi @TerryRitchie, the documentation is still definitely a work in progress.  I'm sorry you found it to be a mess.  I'm using the wiki in github simply because it's easier to maintain the code and documentation all in one place.  The links are to the QB64 official documentation because it is also in github wiki format and matches the look-and-feel.  My goal is not to recreate the QB64 documentation but rather indicate what is currently supported by QBJS and highlight any differences in functionality.

Here are the relevant pages in the wiki:

https://github.com/boxgaming/qbjs/wiki/Q...ge-Support
This page has a general overview of the level of support QBJS has at present with QBasic/QB64 as well as a summary of new functionality unique to QBJS.

https://github.com/boxgaming/qbjs/wiki/S...d-Keywords
This page is intended to be a comprehensive listing of what QB45 and QB64 keywords are supported by the current version of QBJS.

https://github.com/boxgaming/qbjs/wiki/S...rd-modules
At the bottom of this page is a list of all the new libraries that have been added to QBJS.  The links in this section are to other pages in the QBJS wiki with usage information and examples.

https://github.com/boxgaming/qbjs/wiki/Samples
This page has several sample programs.  (I need to add to this some of the great programs that have been created in this forum.)

https://github.com/boxgaming/qbjs/wiki/U...d-Keywords
This page lists all of the keywords that have not been implemented yet.  Some of them are marked as "Won't Do" because either there is not a mechanism (that I have found yet) for implementing it in Javascript, or it was not implemented in QB64 either.
Thank you for the info. What I meant by "mess" was Github itself, not your information found there. Navigating that site is frustrating.

Do you have an FTP site that project assets can be uploaded to (images, sounds, etc..)? Or perhaps there is a way to have assets attached to projects in some other manner? I switched all my domains over to Google Sites a while back and I don't believe (I'll need to look into it) there is a way to upload individual files without them getting moved to Google Drive by default.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply
#13
(08-30-2023, 04:19 PM)TerryRitchie Wrote: Where can I find command set documentation for QBJS? I've searched gGithub (what a mess) but can't seem to find documentation specific to QBJS' use.

For example, I see _LOADIMAGE is supported but obviously I'll need to have the image resources located on the web somewhere to load. From a few of the examples I've looked at _LOADIMAGE in QBJS can do this. Same with _SNDOPEN, etc..

However, when I click on _LOADIMAGE in the supported keyword list I'm taken to "QB64 Official"'s _LOADIMAGE Wiki page. Where is the Wiki specific to QBJS use?

Test code here:
https://qbjs.org

Language support here:
https://github.com/boxgaming/qbjs/wiki/Q...ge-Support

Keywords:
https://github.com/boxgaming/qbjs/wiki/S...rd-modules

bplus notes to converting QB64 to QBJS:
https://qb64.boards.net/thread/141/qbjs-help
b = b + ...
Reply
#14
(08-30-2023, 02:54 PM)bplus Wrote:
Quote:@bplus Yes, there is a way to embed qbjs with play mode.

So it has to be through QBJS, having some trouble translating stuff that works fine in QB64.
Well I will get on dbox for last 2 troubles then... ;-))

OK back to Earth again with all the nuisance hassles Smile
Well no, it could be in QB64 but it'd have to be turned into an animated GIF or video or something to PLAY it on the web.
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#15
(08-30-2023, 05:07 PM)TerryRitchie Wrote: Do you have an FTP site that project assets can be uploaded to (images, sounds, etc..)? Or perhaps there is a way to have assets attached to projects in some other manner? I switched all my domains over to Google Sites a while back and I don't believe (I'll need to look into it) there is a way to upload individual files without them getting moved to Google Drive by default.

The most convenient way to create a project with assets is to just drag those assets into the Files tab in QBJS:

   

Then reference them as you would from the filesystem in your program as shown in the example below.  Save the project with the save button which will create a zip file of the code and any assets you uploaded.  Then you can attach the zip to your forum post and reference it in the qbjs tag like this (minus the spaces inside the brackets:

[ qbjs ]https://qbjs.org?src=https://qb64phoenix.com/forum/attachment.php?aid=2202[ /qbjs ]




(You can get the attachment id to use by clicking the "Insert Into Post" button.)


Attached Files
.zip   project.zip (Size: 1.57 KB / Downloads: 140)
Reply
#16
Ok, I just played around with that a little. Took a while to figure out that I had to click on the "show console" button to see the window you were referencing.

This is a very interesting project. I look forward to accompanying documentation.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply
#17
(08-30-2023, 04:25 PM)dbox Wrote:
(08-30-2023, 02:40 PM)grymmjack Wrote: @dbox I'm not sure how we resize the extents of the "stage" for a specific width and height, but I'm sure we could figure that part out. Also is it possible to make it so the play button auto-plays?

Yes, you can use mode=auto.
Heart 

It works. The scroll bars don't show up now (tonight) they did earlier (this morning). Did you change anything @dbox?
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#18
(08-30-2023, 02:54 PM)bplus Wrote:
Quote:@bplus Yes, there is a way to embed qbjs with play mode.

So it has to be through QBJS, having some trouble translating stuff that works fine in QB64.
Well I will get on dbox for last 2 troubles then... ;-))

OK back to Earth again with all the nuisance hassles Smile
We can fix things together @bplus. There is really no reason you can't help out. Smile

Part of the reason I wanted to do this in qbjs (aside from the fun factor of seeing our banner animated), is to help the qbjs project by exposing it, and hopefully getting others to pitch in. It is REALLY easy to write Javascript, there are differences obviously, but the way @dbox has setup how to contribute and build on qbjs together is very easy and simple. I would love it if all of you super talented coders would at least check it out and see; if for no other reason than to realize how fun it can be.

All this aside, if someone wants to do something in straight up QB64 as a program for the contest I think that'd be fine too, but as i mentioned we'd need to convert it into something PLAY-able on the web so animated GIF, or small video. Obviously this will take longer to download, so if you do use that method consider that. Or, if you prefer it doesn't even need to move - like @TerryRitchie submission with the flowers!

I think it'd be fun just to code for the banner in Fall theme, regardless, and the dimensions of 1400 x 256 are an interesting canvas to play in Smile

If you guys agree, then we can get going and start the contest on September 1st, and end it on October 1st!

@SMcNeill what about you? You haven't said "boo" Big Grin yet about the idea of a Fall contest.
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#19
@grymmjack I'm fine with whatever you guys want to do.  I'm still arguing with my gut about how it should be treating me, and it seems my gallbladder has more-or-less rebelled.  Sept 7th, I go and talk to the surgeon about getting that sucker removed permanently, so I've just been tied up finishing up things before then and waiting to see what the final verdict is.  I imagine I'll be sore and stiff and happy-loopy from whatever after-surgery pills they prescribe, so I'll probably sit this round of competition out and just chill out and be lazy for a while.

Whatever you finally decide to do is fine with me.  I wouldn't have made you a full-fledged administrator, if I didn't have full-fledged faith in you.  Big Grin
Reply
#20
(08-31-2023, 12:30 AM)SMcNeill Wrote: @grymmjack I'm fine with whatever you guys want to do.  I'm still arguing with my gut about how it should be treating me, and it seems my gallbladder has more-or-less rebelled.  Sept 7th, I go and talk to the surgeon about getting that sucker removed permanently, so I've just been tied up finishing up things before then and waiting to see what the final verdict is.  I imagine I'll be sore and stiff and happy-loopy from whatever after-surgery pills they prescribe, so I'll probably sit this round of competition out and just chill out and be lazy for a while.

Whatever you finally decide to do is fine with me.  I wouldn't have made you a full-fledged administrator, if I didn't have full-fledged faith in you.  Big Grin

Bummer @SMcNeill, I hope that your gallbladder surgery is a success. Will pray for you. 

Thanks for your trust, friendship, and approval.

You should be back in time to vote! Smile
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply




Users browsing this thread: 19 Guest(s)