Author Topic: JavaScript and HTML5  (Read 4493 times)

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
JavaScript and HTML5
« on: 07. February 2013, 22:21:02 »
I am really excited about the possibilities of the canvas element. Today I got this book: http://www.apress.com/9781430247104  and I can absolutely recommend it.

At the moment I start learning by doing and try to port some EGSL examples over to Javascript. First example is:
Code: [Select]
openwindow (300,200,32,"2D Drawing Test EGSL")
colour (0,0,255)
fillcircle (100,100,50)
colour (0,255,0)
fillbox (150,20,170,40)
colour (255,0,0)
for k=0,20 do
    aaline (10,10+k*8,200,0)
end
color (255,255,255)
drawtext (10,50,"Hello, this is a test")
redraw()
inkey()
closewindow()         

You can find the HTML5 version on: http://retrogamecoding.org/2ddrawing.html (have a look at the source.)
Now, that's rather unspectacular but I think I can show a "moving" example soon.
Best regards,
Cybermonkey

Marcus

  • Globaler Moderator
  • Full Member
  • *****
  • Posts: 245
    • View Profile
    • NaaLaa
Re: JavaScript and HTML5
« Reply #1 on: 08. February 2013, 18:11:36 »
Do you have any plans for writing a tool that translates from EGSL to html5/js?

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: JavaScript and HTML5
« Reply #2 on: 08. February 2013, 21:16:39 »
Do you have any plans for writing a tool that translates from EGSL to html5/js?
No, not yet.
Best regards,
Cybermonkey

Tomaaz

  • Guest
Re: JavaScript and HTML5
« Reply #3 on: 19. May 2013, 12:23:21 »
I've found some interesting opinion about JavaScript and HTML5 on the web.

Quote
I'm very worried about the html5/javascript standard growing like crazy. How can this worthless-piece-of-crap-shitty-ass-butt-sucking-monster-cock-blowing-stuff be so darned popular? Every cross mobile platform framework, except marmalade, these days use it, and it's a slow crapy webview plugin.

Quote
...is it easy to use? No? Is it convenient in any way? No. Does it make any sense? No.

Quote
But AS/html5/javascript aren't lowlevel or highlevel, they're just a complete mess. "Hey, let's mix crap with some OOP and hope for the best!..."

Some of you are probably familiar with these word. ;)

I also don't like the fact that almost everything moves to HTML5/JavaScript, but the technology itself is not that bad IMHO. Of course I'm talking as an amateur programmer.

Marcus

  • Globaler Moderator
  • Full Member
  • *****
  • Posts: 245
    • View Profile
    • NaaLaa
Re: JavaScript and HTML5
« Reply #4 on: 20. May 2013, 09:12:08 »
I've found some interesting opinion about JavaScript and HTML5 on the web.

Quote
I'm very worried about the html5/javascript standard growing like crazy. How can this worthless-piece-of-crap-shitty-ass-butt-sucking-monster-cock-blowing-stuff be so darned popular? Every cross mobile platform framework, except marmalade, these days use it, and it's a slow crapy webview plugin.

Quote
...is it easy to use? No? Is it convenient in any way? No. Does it make any sense? No.


Quote
But AS/html5/javascript aren't lowlevel or highlevel, they're just a complete mess. "Hey, let's mix crap with some OOP and hope for the best!..."

Some of you are probably familiar with these word. ;)

I also don't like the fact that almost everything moves to HTML5/JavaScript, but the technology itself is not that bad IMHO. Of course I'm talking as an amateur programmer.

That was the beer talking, not me :) I'm very amazed, however, about the fact that "How can this worthless-piece-of-crap-shitty-ass-butt-sucking-monster-cock-blowing-stuff be so darned popular?" didn't transform into "How can this worthless-piece-of-*-*-*-*-*-monster-*-*-stuff be so darned polular?"

Aurel

  • Regular Member
  • Sr. Member
  • *
  • Posts: 272
    • View Profile
Re: JavaScript and HTML5
« Reply #5 on: 20. May 2013, 14:04:08 »
giva me brake dude yo musta try ita
new basic pro forum on;
http://basicpro.spacefor.site/smf/
GUEST posting enabled

SteveOW

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: JavaScript and HTML5
« Reply #6 on: 29. April 2014, 12:41:03 »
@Cybermonkey,
Just out of interest
(seeing as you are now looking at C# etc)
how far did you get with JavaScript and HTML5?
« Last Edit: 29. April 2014, 12:43:35 by SteveOW »

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: JavaScript and HTML5
« Reply #7 on: 29. April 2014, 15:13:11 »
Well, that's my problem: I want to learn too many different languages ... ::) At the moment I am "back" at JavaScript since there are now so many great frameworks. My favourite is MelonJS at the moment.
Best regards,
Cybermonkey