Author Topic: 123 basic - HTML5 for GLBasic  (Read 122770 times)

Offline Qedo

  • Dr. Type
  • ****
  • Posts: 389
  • to program what I have do how should programming?
    • View Profile
Now compile but there are still problems with the fonts.
Look at the links, as it is and as it should be.
Ciao
Qedo

http://web.tiscali.it/edoardobianchi/STUFF/HTML5/ETA.html

http://web.tiscali.it/edoardobianchi/STUFF/HTML5/123basic/123File.html

Offline metzzo

  • Mr. Polyvector
  • ***
  • Posts: 140
  • Coolo ist cool!
    • View Profile
    • programming with design
Thanks for reply, I've managed to fix the offset problem, well, at least I think (characters were moved by 1 on x/y which caused this graphical gliches), but this does not solve the color not being set properly (btw: you got a private message).
« Last Edit: 2013-Nov-16 by coolo »
That's no Bug, that's my project!

http://programming-with-design.at/

Offline metzzo

  • Mr. Polyvector
  • ***
  • Posts: 140
  • Coolo ist cool!
    • View Profile
    • programming with design
Hey, I've managed to fix the bugs that caused your application to not run properly. The problem was mainly caused by a problem with ALPHAMODE and font kerning. Now it looks pretty much the same.

Thank you for sending me code, it really helped :)

Changelog
Code: (glbasic) [Select]
Fixed: If no channel is available in audio, the first one is taken and problems with playing multiple PLAYSOUNDS fixed with both sound systems
Fixed: WebAudio supports "pan" parameter in PLAYSOUND
Fixed: Font characters were moved by x+1, y+1 (caused some graphical gliches)
Fixed: Kerning is more robust & Font rendering less blurry
Fixed: ALPHAMODE +X works as expected
Fixed: Font kerning works with more different fonts (I hope all) and whitespaces have correct size
That's no Bug, that's my project!

http://programming-with-design.at/

Offline Qedo

  • Dr. Type
  • ****
  • Posts: 389
  • to program what I have do how should programming?
    • View Profile
 :good:
The program work !!!!
Qedo

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3375
  • Integrated Brain
    • View Profile
Re: 123 basic - HTML5 for GLBasic
« Reply #109 on: 2013-Nov-20 »
Hi Coolo I leve here the .rar I comment.
Thanks.

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: 123 basic - HTML5 for GLBasic
« Reply #110 on: 2013-Nov-20 »
How are any of you testing it with no download link available?
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline metzzo

  • Mr. Polyvector
  • ***
  • Posts: 140
  • Coolo ist cool!
    • View Profile
    • programming with design
Re: 123 basic - HTML5 for GLBasic
« Reply #111 on: 2013-Nov-20 »
Hey!

Project is open source on GitHub .
That's no Bug, that's my project!

http://programming-with-design.at/

MrTAToad

  • Guest
Re: 123 basic - HTML5 for GLBasic
« Reply #112 on: 2013-Nov-20 »
How are any of you testing it with no download link available?
Online compiler!

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1137
    • View Profile
    • My GLBasic code archiv
Re: 123 basic - HTML5 for GLBasic
« Reply #113 on: 2013-Nov-21 »
Online compiler!
That one is not working for me I always get the error message "Index or size is negative or greater than the allowed amount" on compile (using FF 25.0.1).
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3375
  • Integrated Brain
    • View Profile
Re: 123 basic - HTML5 for GLBasic
« Reply #114 on: 2013-Nov-21 »
HI Kanonet don't worry about this it's only when you satrt the ide, if you delete and make something like draw a Sprite equal tahn GLBasic works. (I think any kind of program have to run), but really this it's a bug in the ide of Coolo.

MrTAToad

  • Guest
Re: 123 basic - HTML5 for GLBasic
« Reply #115 on: 2013-Nov-21 »
Online compiler!
That one is not working for me I always get the error message "Index or size is negative or greater than the allowed amount" on compile (using FF 25.0.1).
Even with the default example ?

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1137
    • View Profile
    • My GLBasic code archiv
Re: 123 basic - HTML5 for GLBasic
« Reply #116 on: 2013-Nov-21 »
Online compiler!
That one is not working for me I always get the error message "Index or size is negative or greater than the allowed amount" on compile (using FF 25.0.1).
Even with the default example ?
Yes I can not compile or run anything. Tried the default example and even a more basic Hello World - nothing works. Since it works for you, I guess it must be something with my many AddOns or changed settings in FF.

@mentalthink: sorry not sure what you mean, I cant get it working.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

MrTAToad

  • Guest
Re: 123 basic - HTML5 for GLBasic
« Reply #117 on: 2013-Nov-21 »
Might be worth having a look at.  It's worth it :



Edit by kanonet: fixed youtube link.
« Last Edit: 2013-Nov-21 by kanonet »

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3375
  • Integrated Brain
    • View Profile
Re: 123 basic - HTML5 for GLBasic
« Reply #118 on: 2013-Nov-21 »
@kanonet sorry... I said for me works, I don't touch nothing in Firefox (I have the last Update)...
I comment I only delete the code and put a code for draw a only one sprite, and for me works.

After I try to record a video... ok?¿.  :good:

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1137
    • View Profile
    • My GLBasic code archiv
Re: 123 basic - HTML5 for GLBasic
« Reply #119 on: 2013-Nov-21 »
I fixed your link.

Haha of cause I do it like this - I get the error posted above, feels a bit strange to get a video that explains how to do such a basic thing, but thank you for trying to help.

@mentalthink I think a video wont change anything since Im sure I dont use it wrong - see MrTs video.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64