Main forum > Announcements
123 basic - HTML5 for GLBasic
metzzo:
Qedo: HTML5 is async, which means the sprite size of image is known when it has properly loaded (GLB_ON_LOOP is then executed). If you want a loading screen use GLB_ON_LOADING and check whether the sprite has loaded with GETSPRITESIZE (which returns the proper size when it has sucessfully loaded the image)
spicypixel: Put the macro.bat into the IDE (blue one for example), when using the macro from the IDE GLB sets the specified variables automatically. For more information read the GLB help file which describes how to set macros in the IDE.
Qedo:
--- Quote ---Qedo: HTML5 is async, which means the sprite size of image is known when it has properly loaded (GLB_ON_LOOP is then executed). If you want a loading screen use GLB_ON_LOADING and check whether the sprite has loaded with GETSPRITESIZE (which returns the proper size when it has sucessfully loaded the image)
--- End quote ---
coolo: strange but the same program without modification works with HTML5 GLB (emscripten).
http://web.tiscali.it/edoardobianchi/STUFF/HTML5/bug/bug.html
Hark0:
Hi @coolo, triing my game....
First I make a simple Hello world and works without problems on Win64-Chrome... :good:
Now... Go for compiling my game to html5! It's very huge...
I have this error:
--- Code: (glbasic) --------------------------------------
Error: 'RESTORE label 'datos_Puertas' unknown. (parse error)'
in line '112' at character '0' near 'NEWLINE'
in file '\Variables.gbas'
'RESTORE datos_Puertas'
-----------------------------------
--- End code ---
And for all RESTORE parts...
Sample of code:
--- Code: (glbasic) ---Datos_Puertas_Cantidad=4
DIM Datos_Puertas_Descripcion$[Datos_Puertas_Cantidad]
DIM Datos_Puertas_Llaves[Datos_Puertas_Cantidad]
RESTORE Datos_Puertas
FOR n=0 TO Datos_Puertas_Cantidad-1
READ Datos_Puertas_Descripcion$[n]
READ Datos_Puertas_Llaves[n]
NEXT
STARTDATA Datos_Puertas:
DATA "null",0
DATA "Puerta 1 llave",1
DATA "Puerta 2 llaves",2
DATA "Puerta 3 llaves",3
ENDDATA
--- End code ---
TIA, ;)
DaCarSoft:
Hi Hark0!
mmm... May be that could be a "typo" only in your message here... But, have you seen that the error is showing "datos_Puertas" with a "D" in low case and your declarations appears to have "D" in upper case??? O_O
mentalthink:
I have problems again for compile anything... included the samples files. :O
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version