Author Topic: Announcing BrowserBasic  (Read 10258 times)

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #75 on: 23. June 2013, 18:42:49 »
@Guilect,

Thanks.
My app runs fine on BrowserBasic v0.41. ;D

White space and comments... yeah Ive been having "fun" with that stuff in writing Browzic. ::)

cheers, SteveOW.



SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #76 on: 27. June 2013, 04:50:30 »
@Guilect

Having fun with v.0.41 of Browserbasic. :)
Minor bugs:-
1. FillPolygon draws outline (stroke).
2. sgn(1) --> 0

Restrictions:-
3. elseif ... only 1 "elseif" allowed per "if...endif" structure, this is probably by design, but (if easy to do) would be very useful to have unlimited elseif's
4. BB does not permit superfluous brackets in math expressions but resulting "stark" code can be hard to read/decipher.
cheers, SteveOW.

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #77 on: 27. June 2013, 05:52:28 »
POND v05

New functions:- Pull, Push, Triangles, Faster, Slower, Input, Output, Frog
Not a game, just a Plaything and a Demo of BrowserBasic (by Guilect)

http://www.zen226082.zen.co.uk/POND.html
- just click and it will run in your browser
(if you have html5/canvas capable browser like Firefox, Chrome,Safari)

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #78 on: 27. June 2013, 17:31:39 »
Only just realized that the frog goes after the small triangles and sticks its tongue out to eat them. ;D

Also, pressing and holding the left mouse button while moving it over the objects is the way to go.  Originally, I was just trying to individually click on an object.

Nice demo.  Is this going to migrate into a pond with a frog eating stuff game?

Quote
FillPolygon draws outline (stroke).
Have not seen this.  Is there a minimum code that produces this?

Quote
sgn(1) --> 0
Fixed. Will be in next release.
For now you can edit bb_core.js and replace :
Sgn(e){if(e==0){return 0}else{if(e<0){return-1}else{return 0}}}
with
Sgn(e){if(e==0){return 0}else{if(e<0){return-1}else{return 1}}}

Quote
unlimited elseif's
superfluous brackets
will look into


SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #79 on: 27. June 2013, 19:20:51 »
@Guilect
Is this going to migrate into a pond with a frog eating stuff game?
Dont know where it is heading gamewise.  One motive is modelling animal behavior systems, learning and evolution. Another influence is playing Lego Star Wars on Wii with my son where rules are discovered thru playing rather than from a rule book, quite exasperating at first but good practice for real life I think.

Quote
FillPolygon draws outline (stroke)......Have not seen this.  Is there a minimum code that produces this?
Voila...gives first triangle with red fill and green edge, second triangle  with just green edge.
Code: [Select]
var Poly1[7] as array
var Poly2[7] as array
'--------------------------------------------
Function OnLoad()
setBackgroundColor(0,0,0)
Poly1[0] =  100
Poly1[1] =  100
Poly1[2] =  10
Poly1[3] =  310
Poly1[4] =  200
Poly1[5] =  310
Poly1[6] =  100
Poly1[7] =  100

Poly2[0] =  500
Poly2[1] =  100
Poly2[2] =  410
Poly2[3] =  310
Poly2[4] =  600
Poly2[5] =  310
Poly2[6] =  500
Poly2[7] =  100
EndFunction
'--------------------------------------------
Function OnDraw()
setColor(255,0,0)
FillPolygon(Poly1) '...Red 
setcolor(0,255,0)  '...Green
StrokePolygon(Poly2)
EndFunction

Quote
sgn(1) --> 0  ...Fixed. Will be in next release.

Fine.

Quote
unlimited elseif's superfluous brackets.....will look into
  Fine.

P.S. Just reread an earlier post from you re: "hopeful ownership"...sudden thought should I be citing credits /displaying licenses on my Demo/Webspace?.  Not sure of the etiquette on this kind of stuff.  Maybe helpful to have a small section in the Browserbasic Manual telling future app developers/hosters what to do when hosting apps in public?
cheers, SteveOW.

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #80 on: 27. June 2013, 22:58:53 »
For next release:
added ability to have multiple elseif statements
added ability to use Parentheses in mathematical statements
   ex: z = ((x + y) * (4/2)) - (11 * 1)
        and in logical expressions
   ex: If (foo = 3) OR (bar = "good") then

@SteveOW,
Regarding the FillPoly/StrokePoly commands; ah now I see.
This is an issue in the js library.  I will investigate.
« Last Edit: 28. June 2013, 03:09:44 by Guilect »

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #81 on: 28. June 2013, 01:29:39 »
Quote
citing credits /displaying licenses
No need to give credits.
It would be nice to get more users of BB and any 'advertising' of it would help.
Anything you make with BB is yours to do with as you see fit.
Any sample code I put out there is up for grabs.
No need to include a copy of the license with any of your work,
because there is none.  I looked at GPL, BSD, MIT, etc.
None of them seemed to apply to my particular case.

I will try to remember to put something in the help file expressing these feelings.

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 574
    • View Profile
    • Home of EGSL
Re: Announcing BrowserBasic
« Reply #82 on: 28. June 2013, 09:24:13 »
Will there be a website for BB eventually?
Best regards,
Cybermonkey

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #83 on: 28. June 2013, 15:45:06 »
Hi Cybermonkey,

Sorry if I am taking up too much of this board.
Yes, eventually I hope to find the time to put a website up for it.

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 574
    • View Profile
    • Home of EGSL
Re: Announcing BrowserBasic
« Reply #84 on: 28. June 2013, 17:03:19 »
Hi Cybermonkey,

Sorry if I am taking up too much of this board.
Yes, eventually I hope to find the time to put a website up for it.
Oh, no that's no problem at all. It's good to see some nice talk here. But I thought about other who are not members here. I remember Brutus2d having a nice web site.
And the thread seems not about BrowserBasic? ;D
If you or any other wish I can add a board here for BrowserBasic.
« Last Edit: 28. June 2013, 18:16:05 by Cybermonkey »
Best regards,
Cybermonkey

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #85 on: 28. June 2013, 17:19:04 »
Hi Cybermonkey,

I would love to have BrowserBasic join the likes of EGSL and NaaLaa in having a board here.
Similar to NaaLaa, BrowserBasic will have its own website that can direct people to Retrogamecoding.org for the forum.  This will help drive people from BrowserBasic to the other languages here and vice versa.  I think it would be good for everyone.

Regards,
Guilect

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #86 on: 28. June 2013, 18:05:49 »
If you or any other wish I can add a board here for BrowserBasic.

I think it would be good for everyone.

Gets my vote. :)

@Guilect
Suggest BB could also benefit from a logo

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 574
    • View Profile
    • Home of EGSL
Re: Announcing BrowserBasic
« Reply #87 on: 28. June 2013, 18:09:25 »
Ok, already done!  ;) As you may have seen Guilect is also a moderator of his board. Have a lot of fun here.
Best regards,
Cybermonkey

bolbo

  • Newcomer
  • *
  • Posts: 25
    • View Profile
Re: Announcing BrowserBasic
« Reply #88 on: 29. June 2013, 14:49:52 »
Keep it up guys. This forum is a gold mine. I'm very excited with Naalaa and BB so I'll try to make some demos with them over this summer. Not to mention EGSL, which I haven't taken a look at yet.