Author Topic: New version released; v0.6  (Read 28709 times)

Guilect

  • Guest
New version released; v0.6
« on: July 27, 2013, 07:50:26 PM »
New version released. v0.6
Saturday, July 27, 2013

fixed Chrome browser not opening correctly from the editor.
added getFPS   note: it is internally locked to run at 60 fps.
Fixed bug in draw positions of ellipses.
added Atan2 syntax in addition to the existing Atn2.
added some physics commands.
added ability of the editor to go to error line by clicking on the error message in       the output window.
added abilty to have types in types.
added ability to to declare and assign a value to numeric and string variables
      e.g.  var x as number = 55
added ability to have an external JS function return multiple values
    Type TPoint
var x as number
var y as number
EndType
var point as TPoint
point = GetPosition()
        'returns point.x and point.y
Changed the way that file names are look at so that file names with a
2 character extension e.g. .bb should work.
added CreateCanvas, setCanvas, and getCanvas commands (for example see ex_paint.txt)
added a preview hotkey for the Opera Browser
F8 - Runs the HTML page in Opera.
F9 - Starts the BrowserBasic WiFi Server
F10 - Launches help file.


Download Here

SteveOW

  • Guest
Re: New version released; v0.6
« Reply #1 on: August 14, 2013, 04:07:00 PM »
@Guilect,

Looks like a nice set of new features in v0.6.
Tried the ex_paint example which uses the new canvas stuff and it works well.
Hope to have some time soon to get into the other stuff.

SteveOW

  • Guest
Re: New version released; v0.6 - Bug when calling user defined function
« Reply #2 on: August 16, 2013, 01:25:42 AM »
Hi Guilect,

I found a bug in BB v0.6, when compiling my POND txt file (attached) it gives this message:-
Error.  Line: 516 ---- Function Call - Undeclared function: SOW_Zap_pea_at_MousePos.
When I comment out calls to this function the v0.6 compiler reports that the next user-defined function is undefined.

The same POND txt file compiles OK using BB v0.5.

When I test v0.6 with a small simple txt file (attached) it compiles OK.

cheers, SteveOW.

Guilect

  • Guest
Re: New version released; v0.6
« Reply #3 on: August 16, 2013, 01:47:15 PM »
I'll look into it.

Guilect

  • Guest
Re: New version released; v0.6
« Reply #4 on: August 16, 2013, 11:20:05 PM »
Fixed.

There is an array in BB that stores variable and function names.
After adding all the physics functions there was not so much room left for user variable and function names.
I have increased the size of that array.

v0.61
Download here

SteveOW

  • Guest
Re: New version released; v0.6
« Reply #5 on: August 16, 2013, 11:53:26 PM »
@Guilect

Many thanks, that fixed my problem. 
I had just run into the same thing using BB version 0.5.
Will the BB compiler now report an error if at some time in the future that array runs out of space?

Guilect

  • Guest
Re: New version released; v0.6
« Reply #6 on: August 17, 2013, 01:30:23 PM »
I will see about putting that in the next release.

SteveOW

  • Guest
Touchscreen in BrowserBasic
« Reply #7 on: August 18, 2013, 09:32:18 AM »
@Guilect

Could you possibly make and post a simple BrowserBasic app that demonstrates basic Touchscreen capabilities?

I dont yet have a touch-enabled device and I dont want to waste money buying something unsuitable.  I have been trying out various devices in my nearest tech shop (12 miles away).  I have realized there is a lot of variation in capabilities when it comes to running html/javascript apps with touch. Touchscreen laptops are the best performers.  Personally I find anything with a screen size under 10 inches is awkward to use for control by touch.  Low end devices (£100) are painfully slow.  For me the best touchpad I have seen so far is the Samsung Galaxy Note 10.1 inch which has a little pen (which is just great for my fumbly fingers) but at £350 it is rather expensive and its html/javascript performance is only moderate.

I am trying to make my POND app respond to touch but the 24 mile round trip between coding and testing is going to make development rather slow!

cheers, SteveOW.

Guilect

  • Guest
Re: New version released; v0.6
« Reply #8 on: August 18, 2013, 05:16:59 PM »

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: New version released; v0.6
« Reply #9 on: August 21, 2013, 02:58:43 PM »
By the way, is BrowserBasic made with GLBasic?  :o

Guilect

  • Guest
Re: New version released; v0.6
« Reply #10 on: August 21, 2013, 10:00:47 PM »
@Cybermonkey

Yes it is.
Did you recognize the icon?

SteveOW

  • Guest
Re: New version released; v0.6
« Reply #11 on: August 22, 2013, 12:06:33 AM »
@Guilect

FYI the attached code causes the BB compiler to get stuck in a loop.
I have to kill the process in Windows Task Manager.

cheers, SteveOW.

PS During the recent  forum outage I could not find a way to contact you (I wanted a copy of the touchscreen code).
BrowserBasic website has no contact details and Brutus2D was not accepting new users.
Is there a regular forum elsewhere that you visit where contact could be made in such a case?

Guilect

  • Guest
Re: New version released; v0.6
« Reply #12 on: August 22, 2013, 12:45:15 AM »
@SteveOW

What attached code   ;)

This is the only place I hang out.
If this site was to go away, I would put something up at the BrowserBasic home page.
But, Cybermonkey has things humming along again.


SteveOW

  • Guest
Re: New version released; v0.6
« Reply #13 on: August 22, 2013, 08:17:46 AM »
What attached code   ;)

Doh! :-[
And now I have modified the file and cannot reproduce the error.
Double Doh! :-[ :-[

Ill get back to you if I encounter it again.
cheers, SteveOW.



SteveOW

  • Guest
Re: New version released; v0.6
« Reply #14 on: August 22, 2013, 08:21:16 AM »
This is the only place I hang out.
If this site was to go away, I would put something up at the BrowserBasic home page.
But, Cybermonkey has things humming along again.

Thanks.