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

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
New version released; v0.6
« on: 27. July 2013, 21:50:26 »
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

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: New version released; v0.6
« Reply #1 on: 14. August 2013, 18:07:00 »
@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

  • Full Member
  • ***
  • Posts: 119
    • View Profile
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

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: New version released; v0.6
« Reply #3 on: 16. August 2013, 15:47:15 »
I'll look into it.

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: New version released; v0.6
« Reply #4 on: 17. August 2013, 01:20:05 »
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

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: New version released; v0.6
« Reply #5 on: 17. August 2013, 01:53:26 »
@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

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: New version released; v0.6
« Reply #6 on: 17. August 2013, 15:30:23 »
I will see about putting that in the next release.

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Touchscreen in BrowserBasic
« Reply #7 on: 18. August 2013, 11:32:18 »
@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

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: New version released; v0.6
« Reply #8 on: 18. August 2013, 19:16:59 »

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 574
    • View Profile
    • Home of EGSL
Re: New version released; v0.6
« Reply #9 on: 21. August 2013, 16:58:43 »
By the way, is BrowserBasic made with GLBasic?  :o
Best regards,
Cybermonkey

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: New version released; v0.6
« Reply #10 on: 22. August 2013, 00:00:47 »
@Cybermonkey

Yes it is.
Did you recognize the icon?

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: New version released; v0.6
« Reply #11 on: 22. August 2013, 02:06:33 »
@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

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: New version released; v0.6
« Reply #12 on: 22. August 2013, 02:45:15 »
@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

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: New version released; v0.6
« Reply #13 on: 22. August 2013, 10:17:46 »
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

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: New version released; v0.6
« Reply #14 on: 22. August 2013, 10:21:16 »
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.