Author Topic: Announcing BrowserBasic  (Read 40284 times)

SteveOW

  • Guest
Re: Announcing BrowserBasic
« Reply #75 on: June 23, 2013, 04:42:49 PM »
@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

  • Guest
Re: Announcing BrowserBasic
« Reply #76 on: June 27, 2013, 02:50:30 AM »
@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

  • Guest
Re: Announcing BrowserBasic
« Reply #77 on: June 27, 2013, 03:52:28 AM »
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

  • Guest
Re: Announcing BrowserBasic
« Reply #78 on: June 27, 2013, 03:31:39 PM »
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

  • Guest
Re: Announcing BrowserBasic
« Reply #79 on: June 27, 2013, 05:20:51 PM »
@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

  • Guest
Re: Announcing BrowserBasic
« Reply #80 on: June 27, 2013, 08:58:53 PM »
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: June 28, 2013, 01:09:44 AM by Guilect »

Guilect

  • Guest
Re: Announcing BrowserBasic
« Reply #81 on: June 27, 2013, 11:29:39 PM »
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
  • *****
  • Posts: 0
Re: Announcing BrowserBasic
« Reply #82 on: June 28, 2013, 07:24:13 AM »
Will there be a website for BB eventually?

Guilect

  • Guest
Re: Announcing BrowserBasic
« Reply #83 on: June 28, 2013, 01:45:06 PM »
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
  • *****
  • Posts: 0
Re: Announcing BrowserBasic
« Reply #84 on: June 28, 2013, 03:03:19 PM »
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: June 28, 2013, 04:16:05 PM by Cybermonkey »

Guilect

  • Guest
Re: Announcing BrowserBasic
« Reply #85 on: June 28, 2013, 03:19:04 PM »
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

  • Guest
Re: Announcing BrowserBasic
« Reply #86 on: June 28, 2013, 04:05:49 PM »
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
  • *****
  • Posts: 0
Re: Announcing BrowserBasic
« Reply #87 on: June 28, 2013, 04:09:25 PM »
Ok, already done!  ;) As you may have seen Guilect is also a moderator of his board. Have a lot of fun here.

bolbo

  • Guest
Re: Announcing BrowserBasic
« Reply #88 on: June 29, 2013, 12:49:52 PM »
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.