GLBasic forum

Main forum => Off Topic => Topic started by: okee on 2011-Jul-09

Title: HTML5
Post by: okee on 2011-Jul-09
Are there any plans down the line to support HTML5
I know Gernot is busy with Android at the moment but in the long run ?
I'm just discovering the joys of the chrome app store with games like
Angry Birds https://chrome.google.com/webstore/detail/aknpkdffaafgjchaibgeefbgmgeghloj?hl=en-US (https://chrome.google.com/webstore/detail/aknpkdffaafgjchaibgeefbgmgeghloj?hl=en-US)  and
The Secret of Grisley Manor https://chrome.google.com/webstore/detail/kpaadcbfeeiehmjlfbgpafdjbeikhgff?hl=en-US (https://chrome.google.com/webstore/detail/kpaadcbfeeiehmjlfbgpafdjbeikhgff?hl=en-US)

seems a nice easy way to play online or simply install to play offline.

okee
Title: Re: HTML5
Post by: Kitty Hello on 2011-Jul-11
It's in the Labs. The main problem is, that JavaScript won't allow a Main() function. You would have to return the borwser and update frame by frame. Something like: SUB GLB_ON_MAIN_STEP: or so would have to be introduced.
Title: Re: HTML5
Post by: Leginus on 2011-Jul-11
Would flash be a better option?
I have seen some flash vs html5 arguments recently and flash seems to be outperforming html5.

Title: Re: HTML5
Post by: Kitty Hello on 2011-Jul-11
html5 can do OpenGL :/
Title: Re: HTML5
Post by: Leginus on 2011-Jul-11
nuff said :)   :nw:
Title: Re: HTML5
Post by: trucidare on 2011-Jul-11
the next big thing hehe
html5 bridge
Title: Re: HTML5
Post by: Omadan on 2011-Jul-11
Bring it on :P
Title: Re: HTML5
Post by: monono on 2011-Jul-12
@Leginus: Flash has only a better performance if you are running it in Firefox. Try Chrome or IE instead.
Title: Re: HTML5
Post by: Leginus on 2011-Jul-12
@monono  I do already use chrome, but thanks for the heads up.
I was referring to something I had read in another forum. I can't relay the information to them though as I would have to buy the other product to be able to post, and i have NO intention of buying it, I am extremely happy where i am :)
Title: Re: HTML5
Post by: DaCarSoft on 2011-Aug-11
ohh my god...

GLBasic throught HTML5 or Webkit? yes!!!!! please!!!!!!

I know that could be a knightmare for Gernot to try to make it... but if it is possible it could be very handful.


Cheers.
Title: Re: HTML5
Post by: mentalthink on 2011-Aug-11
awesoming, abosuly Brutal!!!.
Thanks Again....
:nw: :nw: :nw:  :-* :-* :-*
Title: Re: HTML5
Post by: ketil on 2011-Aug-11
Another interesting option would be to make glbasic target HAXE, that itself targets HTML5, Flash and some other languages.
Title: Re: HTML5
Post by: MrTAToad on 2011-Aug-11
The easiest thing would be to keep HTML5 as a seperate application - that way it would be easier to debug.
Title: Re: HTML5
Post by: bigsofty on 2011-Aug-15
GLB is GCC, how can this be linked to GCC? Or are we talking about a new cross-compiler altogether?
Title: Re: HTML5
Post by: Kitty Hello on 2011-Aug-16
Yes. See http://labs.glbasic.com (http://labs.glbasic.com) for details.
Title: Re: HTML5
Post by: bigsofty on 2011-Aug-16
 Wow! :nw:
Title: Re: HTML5
Post by: pinete on 2011-Sep-01
Hi All!
is there any news regarding this feature or maybe a confirmation this is something we will see in next updates of GLBasic?!
fingers crossed ;)
Title: Re: HTML5
Post by: metzzo on 2011-Sep-02
Yes!

I'm working on a complete rewrite of the GLBasic compiler, which produces fast and lightweight HTML5 code. The compiler itself is fully working and does a great job so far.

At the moment I'm porting the whole GLBasic engine to HTML5.

Port GLBasic applications to HTML5 is not as easy as the other platforms, because there is no mainloop (as Kitty said). You have to do all the job in the SUBs "GLB_ON_INIT" and "GLB_ON_LOOP". Networking will not be supported and GOTO also (JavaScript does not offer a keyword like this).

More informations (in german ;( ): http://www.glbasic.com/forum/index.php?topic=4524.msg53624#msg53624 (http://www.glbasic.com/forum/index.php?topic=4524.msg53624#msg53624)
Title: Re: HTML5
Post by: spicypixel on 2011-Sep-02
This sounds absolutely awesome, any compiled code you can publish to show any results from your compiler ?
Title: Re: HTML5
Post by: pinete on 2011-Sep-02
Thanks coolo,
I've been taking a look at your link, german is very complicated to me ;) but I guess I got the idea behind :P
This project seems incredible, as having your app in a web can be freakin' amazing!
Could you please provide, if possible, more information?
milestones you expect, when we will be able to get it, what kind of features can be parsed or ported, sprites, 3D, DDBB connectivity via xmlrequest get/post,...
thanks a lot!

Title: Re: HTML5
Post by: metzzo on 2011-Sep-02
Okay:
Milestone 1: Get Syntax working (done)
Milestone 2: Get 2D functions working (DRAWSPRITE/ROTOSPRITE/... already works)
Milestone 3: Get Input functions working
Milestone 4: Get Sound working
Milestone 5: Get Data IO working (that's difficult to do)
Milestone 6: Get X_ commands working

Title: Re: HTML5
Post by: okee on 2011-Sep-02
QuoteI've been taking a look at your link, german is very complicated to me

In Chrome right click and select Translate, not perfect but gives a pretty close translation.
Title: Re: HTML5
Post by: pinete on 2011-Sep-13
Hi Coolo!
how is it going? any advances?! :)
best!
Title: Re: HTML5
Post by: jboadas on 2011-Sep-16
With HTML5 you can make BlackBerry applications using Phonegap
Title: Re: HTML5
Post by: Wampus on 2011-Sep-21
So, in theory, GLBasic could come to be used to create games for social networking sites like Google+ and Facebook?
Title: Re: HTML5
Post by: backslider on 2011-Sep-23
Quote from: Wampus on 2011-Sep-21
So, in theory, GLBasic could come to be used to create games for social networking sites like Google+ and Facebook?

Yes.
Title: Re: HTML5
Post by: Albert on 2011-Sep-23
Game Maker new version for HTML5:
Sample games (compiled to HTML5): http://html5.yoyogames.com/
Article: http://www.yoyogames.com/gamemaker/html5
Title: Re: HTML5
Post by: MrTAToad on 2011-Sep-23
Will 3D be available ?
Title: Re: HTML5
Post by: backslider on 2011-Sep-27
*push* :)