Author Topic: Announcing BrowserBasic  (Read 11317 times)

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #30 on: 05. June 2013, 14:25:58 »
Attached is a Zipped  HTML file produced by coding in "Browzic" and converting to Javascript.
It is not pretty.
But it demonstrates the concept.

It runs in Firefox 20 on my Windows7 laptop.
It wont work if your browser doesnt support HTML5 Canvas.

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #31 on: 06. June 2013, 00:55:39 »
Looks good SteveOW.
Seems you and I have had the same kind of ideas.
I, for instance, had named my project BrowserBasic.
The BASIC language that you can translate is very complete looking.

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #32 on: 06. June 2013, 01:07:43 »
Here is a sample from my project.
The text file is the original BASIC source that gets translated.

Arrow keys to move.

John

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Re: Announcing BrowserBasic
« Reply #33 on: 06. June 2013, 01:33:34 »
I gave it a try in Firefox on my Ubuntu 64 laptop. Works fine as far as I can tell. (slight delays in movement of Bob)


SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #34 on: 06. June 2013, 02:23:15 »
Guilect I am impressed. :D
You are far ahead of me with your graphics and user interface (and probably most other things!).


The BASIC language that you can translate is very complete looking.

There is no pre-existing Basic language plan there as such.  :-[ It is an evolving prototype.
I am just adding simple and essential Basic-style language structures that I need for each new task.
It is constrained mainly by my limited understanding of javascript and html.
Quite a bit of the functionality in the demo comes from raw javascript which has not been translated from browzic.
Browzic acts as a friendly wrapper that will help to keep the novice amateur app developer away from horrible html & javascript.
With time hopefully Browzic will be able to do more and more things that currently require html & js.



Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #35 on: 08. June 2013, 15:44:32 »
I have added spritesheet aninimation functionallity.
Hope to add touch and have something out in about a week.

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: Announcing BrowserBasic
« Reply #36 on: 08. June 2013, 19:03:03 »
Here is a sample from my project.
The text file is the original BASIC source that gets translated.

Arrow keys to move.
Looks very cool. I see you are using the Love2d Javascript port as your game library. Is this port complete, yet?
Best regards,
Cybermonkey

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #37 on: 09. June 2013, 00:13:26 »
There are 3 ports that I know of.
None are a complete replacement for the hundreds of commands that Love2D has.
This particular port has all the necessary commands to make nice HTML5 games.

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #38 on: 13. June 2013, 20:30:04 »
Thanks Cybermonkey,

123 Basic looks very interesting,  :D
I am investigating further.

cheers,
SteveOW

123Basic looks very nice as a proposal.
Recently heard from author of 123Basic. 
Project is currently stalled for lack of time and not tryable.
( https://github.com/metzzo/123-basic)

Motive for 123Basic is to make it easy to port GL Basic games to Javascript/HTML.
So not quite what I am looking for.

So I am continuing to develop BROWZIC as a basic-like "language" which translates into Javascript/HTML and hides their horribleness from the casual app developer.  Present thinking is that BROWZIC will be capable of being used as a simple platform for game development while not being focussed only on game development.  So then it can be used with external libraries written in javascript or anything callable from javascript.
So then any person wishing to make a game-development-platform for browser-based games could let the game-developer use BROWZIC as a scripting language.  And the game-development-platform itself can be written in BROWZIC.  In fact the BROWZIC-to-JS/HTML translator could itself be written in BROWZIC. And then there will be universal peace and happiness.
(But words are cheap.    ;D)

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #39 on: 13. June 2013, 22:56:39 »
...so heres Browzic demo # 2

Now available online at:- 
http://www.zen226082.zen.co.uk/PongGoneWrong4.html

also available as attached zip file:-
It should run straight from the zip file by opening the zip file and then double-clicking on the .html file.
but for sound and image to work from zip you will need to install the .html file and the _files folder on your local disk.

« Last Edit: 15. June 2013, 19:20:42 by SteveOW »

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #40 on: 15. June 2013, 02:32:23 »
Lots of colors swirling around there.
Runs smooth.
Keep it going.
I like the idea of being able to do any kind of application.

I just finished coding and testing my WiFi BrowserBasic server.
This allows you to code a BrowserBasic game on your desktop and then immediately be able to test it on your WiFi enabled smartphone or tablet.  No need for uploading to a webhost first.
No need to download to the device.  Just set your device's web browser to point to the server and viola.

I am almost done with what I want to accomplish for a first release.
I have spent most of the development time on the workings of the project and not on demos.
I hope once BrowserBasic is released someone can make a sweet demo to share with us all.
« Last Edit: 15. June 2013, 17:11:05 by Guilect »

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #41 on: 15. June 2013, 17:17:08 »
Here is a release for you to play with.
Download, unzip, run pn.exe
(pn.exe (programmer's notepad) is the editor that is setup for BrowserBasic)

There are a few examples in the examples folder.

F5 - Compiles the active page.
F6 - Runs the HTML page in Firefox
F7 - Runs the HTML page in Chrome.
F8 - Starts the BrowserBasic WiFi Server
F9 - Launches this help file.

You might have to adjust the install location for Firefox and Chrome depending upon your system.
It is currently set for their default installation locations in Windows XP 32-bit.
Instructions on how to change the settings are in the help file.

BrowserBasic

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Announcing BrowserBasic
« Reply #42 on: 15. June 2013, 18:00:12 »
WOW! :o :D ;D
That is a really impressive-looking package GUIlect!
It didnt run out of the opened zip file because it couldnt find a dll but
I just extracted everything in the zip file to C:Program Files/BrowserBasic and all seemed OK.
All the example HTMLs seemed to work fine on my Windows7-32bit/Firefox20.
Compilation works OK. The editor seems to work OK too.

= = = = = = = = = = = = =
Minor Questions (Trying to port my demo to BB)

Q1
Is there a Draw_Filled_Triangle/Polygon function?

Q2
Line 1: var MyVar as number
Line 2: MyVar = 1 + MyVar/12
Line 3: MyVar = 1 + (MyVar/12)  ==> Compilation error: Expected: Value - value but got: ( (ascii 40) on Line: 3

Q3
var MyStr1 as string
MyStr1 = Str$(11) ==> Compilation error: String expression error Str$

Q4
var jjj as number
var R_Width as number
var moiRects_PosXmax[1000] as array
var moiRects_PosXmin[1000] as array
jjj=1
moiRects_PosXmax[1]=1
moiRects_PosXmin[1]=1
R_Width   =  moiRects_PosXmax[jjj]
R_Width   =  R_Width - moiRects_PosXmin[jjj]
R_Width   =  moiRects_PosXmax[jjj] - moiRects_PosXmin[jjj] ==> Compilation error: Expected: Match - = but got:

« Last Edit: 15. June 2013, 20:05:49 by SteveOW »

cvirus

  • Regular Member
  • Jr. Member
  • *
  • Posts: 76
    • View Profile
Re: Announcing BrowserBasic
« Reply #43 on: 15. June 2013, 19:05:23 »
Fantastic, Love it.   ;D

Guilect

  • Moderator
  • Full Member
  • *****
  • Posts: 110
    • View Profile
Re: Announcing BrowserBasic
« Reply #44 on: 15. June 2013, 22:39:54 »
@cvirus - thanks

@ steveOW
Yah, it is usually best to not try to run something in the zip file.  Best to unpack it.

A1 - there is no draw triangle
A2 - BB does not expect 'extra' parentheses.  I may have to change that in the parser, but for now just omit them.
A3 - will look in to it.
A4 - bug in compiler, will look in to it.

I knew something would show up as soon as someone else tried it.  :)
« Last Edit: 15. June 2013, 22:46:44 by Guilect »