SpiderBasic 1.00 is out !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
useful
Enthusiast
Enthusiast
Posts: 367
Joined: Fri Jul 19, 2013 7:36 am

Re: SpiderBasic 1.00 alpha 3

Post by useful »

Code: Select all

Procedure DesktopWidth()
    ;
    ; Returns the width of the browser area
    ;
    !var width;
    !require(["dojo/window"], function(win){
    !  width = win.getBox().w;
    !});
    !return width;
EndProcedure

Procedure DesktopHeight()
    ;
    ; Returns the height of the browser area
    ;
    !var height;
    !require(["dojo/window"], function(win){
    !  height = win.getBox().h;
    !});
    !return height;
EndProcedure
I missed? Where mentioned about the syntax of inline javascript [ ! ] ?
Аnd this is also true for HTML?
Dawn will come inevitably.
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: SpiderBasic 1.00 alpha 3

Post by Danilo »

useful wrote:I missed? Where mentioned about the syntax of inline javascript [ ! ] ?
Look in the help for topic "Inline x86 ASM". ;)

In PureBasic it is !DirectASM, in SpiderBasic it is !DirectJS
useful wrote:Аnd this is also true for HTML?
Don't know, yet.

Would also be nice to include own JavaScript files. Something like

Code: Select all

IncludeJS "/my.js"
ImportJS "/my.js"
would generate

Code: Select all

<script type="text/javascript" src="/my.js"></script>
in the final HTML at the beginning.

I also noticed that SpiderBasic removes the ending ';' from my !DirectJS lines (because this are SB comments).
Would be nice if lines starting with '!' would be inserted completely untouched to prevent any issues.
User avatar
useful
Enthusiast
Enthusiast
Posts: 367
Joined: Fri Jul 19, 2013 7:36 am

Re: SpiderBasic 1.00 alpha 3

Post by useful »

The <iframe> <=> webgadget planned? :wink:

And really want to understand the roadmap dates alpha, beta, release (albeit very roughly)
Dawn will come inevitably.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: SpiderBasic 1.00 alpha 3

Post by netmaestro »

alpha to beta: when it happens
beta to release: Fred says approx. end of 2014
A project of this scope is just too large to make accurate predictions.
BERESHEIT
karu
Enthusiast
Enthusiast
Posts: 255
Joined: Fri Jan 13, 2006 12:14 am

Re: SpiderBasic 1.00 alpha 3

Post by karu »

if i use

Code: Select all

 WindowBounds(#win, 800, 600, #PB_Ignore, #PB_Ignore)
and trying to resize window, window will be about 10 points width or height.
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: SpiderBasic 1.00 alpha 3

Post by Fred »

karu wrote:if i use

Code: Select all

 WindowBounds(#win, 800, 600, #PB_Ignore, #PB_Ignore)
and trying to resize window, window will be about 10 points width or height.
Please use the right forum section, thanks: http://www.purebasic.fr/english/viewforum.php?f=41
User avatar
useful
Enthusiast
Enthusiast
Posts: 367
Joined: Fri Jul 19, 2013 7:36 am

Re: SpiderBasic 1.00 alpha 3

Post by useful »

Can create a partition Tricks 'n' Tips (SpiderBasic) for such

Code: Select all

Procedure DesktopWidth()
    ;
    ; Returns the width of the browser area
    ;
    !var width;
    !require(["dojo/window"], function(win){
    !  width = win.getBox().w;
    !});
    !return width;
EndProcedure

Procedure DesktopHeight()
    ;
    ; Returns the height of the browser area
    ;
    !var height;
    !require(["dojo/window"], function(win){
    !  height = win.getBox().h;
    !});
    !return height;
EndProcedure
; (c) Danilo
Dawn will come inevitably.
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: SpiderBasic 1.00 alpha 3

Post by Paul »

Well, after messing around with alpha3 for a bit I was able to port an app I made in PureBasic back in 2003.
It functions pretty close to the original after making a number of tweeks.
In my opinion its not to bad for an Alpha version of a new product :)

http://reelmedia.org/spiderbasic/spideroids.html

All are welcome to give it a try.
Image Image
karu
Enthusiast
Enthusiast
Posts: 255
Joined: Fri Jan 13, 2006 12:14 am

Re: SpiderBasic 1.00 alpha 3

Post by karu »

Fred wrote:
karu wrote:if i use

Code: Select all

 WindowBounds(#win, 800, 600, #PB_Ignore, #PB_Ignore)
and trying to resize window, window will be about 10 points width or height.
Please use the right forum section, thanks: http://www.purebasic.fr/english/viewforum.php?f=41
My mistake.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: SpiderBasic 1.00 alpha 3

Post by srod »

Paul wrote:Well, after messing around with alpha3 for a bit I was able to port an app I made in PureBasic back in 2003.
It functions pretty close to the original after making a number of tweeks.
In my opinion its not to bad for an Alpha version of a new product :)

http://reelmedia.org/spiderbasic/spideroids.html

All are welcome to give it a try.
That is pretty cool. :)
I may look like a mule, but I'm not a complete ass.
fastbit66
New User
New User
Posts: 9
Joined: Tue Jan 17, 2012 2:05 pm

Re: SpiderBasic 1.00 alpha 3

Post by fastbit66 »

COOL COOL COOL 8)

Waiting for the Linux version!
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: SpiderBasic 1.00 alpha 3

Post by luis »

@paul

Very nice, it would make a nice demo if it were possible to ship the source with the final product.
"Have you tried turning it off and on again ?"
A little PureBasic review
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: SpiderBasic 1.00 alpha 3

Post by davido »

@Paul

Very nice demo - remarkable!
DE AA EB
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: SpiderBasic 1.00 alpha 3

Post by Paul »

Here's another just for fun...
http://reelmedia.org/spiderbasic/spiderpong.html

Enjoy :D
(press spacebar to start)
Image Image
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: SpiderBasic 1.00 alpha 3

Post by PB »

> http://reelmedia.org/spiderbasic/spideroids.html

WOW! :shock: Very nice example of an alpha product indeed!

Question: it is a tad slow here... is that perhaps just my Firefox,
or just the way it's coded, or indicative of SpiderBasic's speed?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply