Author Topic: Announcing BrowserBasic  (Read 39916 times)

SteveOW

  • Guest
Re: Announcing BrowserBasic
« Reply #30 on: June 05, 2013, 12:25:58 PM »
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

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

  • Guest
Re: Announcing BrowserBasic
« Reply #32 on: June 05, 2013, 11:07:43 PM »
Here is a sample from my project.
The text file is the original BASIC source that gets translated.

Arrow keys to move.

ScriptBasic

  • Guest
Re: Announcing BrowserBasic
« Reply #33 on: June 05, 2013, 11:33:34 PM »
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

  • Guest
Re: Announcing BrowserBasic
« Reply #34 on: June 06, 2013, 12:23:15 AM »
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

  • Guest
Re: Announcing BrowserBasic
« Reply #35 on: June 08, 2013, 01:44:32 PM »
I have added spritesheet aninimation functionallity.
Hope to add touch and have something out in about a week.

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: Announcing BrowserBasic
« Reply #36 on: June 08, 2013, 05:03:03 PM »
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?

Guilect

  • Guest
Re: Announcing BrowserBasic
« Reply #37 on: June 08, 2013, 10:13:26 PM »
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

  • Guest
Re: Announcing BrowserBasic
« Reply #38 on: June 13, 2013, 06:30:04 PM »
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

  • Guest
Re: Announcing BrowserBasic
« Reply #39 on: June 13, 2013, 08:56:39 PM »
...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: June 15, 2013, 05:20:42 PM by SteveOW »

Guilect

  • Guest
Re: Announcing BrowserBasic
« Reply #40 on: June 15, 2013, 12:32:23 AM »
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: June 15, 2013, 03:11:05 PM by Guilect »

Guilect

  • Guest
Re: Announcing BrowserBasic
« Reply #41 on: June 15, 2013, 03:17:08 PM »
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

  • Guest
Re: Announcing BrowserBasic
« Reply #42 on: June 15, 2013, 04:00:12 PM »
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: June 15, 2013, 06:05:49 PM by SteveOW »

cvirus

  • Guest
Re: Announcing BrowserBasic
« Reply #43 on: June 15, 2013, 05:05:23 PM »
Fantastic, Love it.   ;D

Guilect

  • Guest
Re: Announcing BrowserBasic
« Reply #44 on: June 15, 2013, 08:39:54 PM »
@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: June 15, 2013, 08:46:44 PM by Guilect »