Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Alex_R

#31
In c:/program Files (x86) searh for: glbasic/Platform folders There you have one iPhone folder. Replace this folder whith Spacefactral's. If you have not that folder just put Spacefactral iPhone folder there.
#32
You must replace the old iPhone folder with Spacefractal content. It should work.
#33
No hay que hacer nada complicado. Simplemente sustituye la carpeta de ios (quizá es iPhone?) en Plattform Compiler (creo que es ese el nombre de la carpeta donde están todos los compiladores) y debería funcionar. Ahora no tengo mi ordenador con glBasic pero en las instrucciones de Spacefractal está explicado el proceso.
#34
Hola!! Que no, que quedamos 3 gatos. Yo también ando por aquí, aunque hacía tiempo que no le echaba un vistazo al foro en Español. Creí que estaba muerto.

Yo programo para IOS y mi última aplicación va muy bien. Tengo beneficios gracias a las in app purchases! GlBasic compila muy bien para Ios gracias a que Spacefractal hizo que compilara para 64bits. Lo que no entiendo es por qué los archivos para compilar en IOS no están en la sección de descargas oficial. Los tienes que descargar del foro. Pero van muy bien.

Siento no poder ayudarte con Android. No tengo nada de Android y nunca he programado para Android.
#35
Announcements / Re: Update
2016-Aug-18
Other update? Great news!! Many thanks   :good:
#36
GLBasic is very alive!! My last game for iOS is working very well and I'm very happy with it. I have not much time to develope games  :( but I enjoy very much this little time with GLBasic. With my brother's help we are developing Facebook, Tweeter and GameCenter integration and improving inApp purchases (with full errors responses and purchases restore, etc) Soon I will share with you all this work.  :good:
#37
Wow!! A GLBasic game on Steam!! What good news!! Congrats Spacefractal!!  :good:  :good:  :good:
#38
Welcome to GLBasic!! Enjoy this great software!  ;) You'll love it!! <3  <3
#39
Very useful Mentalthink. I'll take a look. Thanks  :good:
#40
De nada mentalthink. Siempre que puedo y me acuerdo me paso por aquí. Me sigue gustando hacer cosas con GLBasic.

Es verdad que usa un "goto" en su código. Si te soy sincero no sabía ni que existiera  :noggin:

A ver si se unen más hablantes de español al foro. Yo estoy intentando convencer a unos amigos a que programen con GLBasic, por lo fácil que es y lo rápido que salen las cosas.
#41
Hola Catoct!

Bienvenido al foro. Como dice mentalthink antes éramos más hablantes de español pero aún quedamos alguno.

El problema que te dice mental de tu código es que no haces un loop que lo ejecute de forma ininterrumpida hasta que le des a la tecla escape o ejecutes un END.

Tu código lo ejecuta una vez y lo pinta una sola vez y luego acaba el programa (cuando se acaba la ejecución del programa ya no se pinta más). Entonces debes poner tu función MAIN dentro de un loop y al final de cada ciclo del loop ejecutar siempre un showscreen porque si no no pintará nada. Así que tu código, que no he probado, debería tener este aspecto:

Code (glbasic) Select

// --------------------------------- //
// Project: JacquardScroll1
// Start: Wednesday, March 23, 2016
// IDE Version: 12.308

// SETCURRENTDIR("Media") // go to media files


GLOBAL gwidth ,gheight
gwidth = 800
gheight = 600
SETSCREEN gwidth ,gheight,0

GLOBAL sprite, VistaGrandx1, VistaGrandy1, VistaGrandx2, VistaGrandy2 // Zone to view
VistaGrandx1 = 1 ; VistaGrandy1 = 1 ; VistaGrandx2 = 600 ; VistaGrandy2 = 430
GLOBAL speedH, speedW, imgX, scrW, imgWide, imgY, scrH, imgHeight
GLOBAL worldX, worldY ,MundoX, MundoY

GLOBAL mx,my, b1,b2 ,phi
GLOBAL tile
LOADFONT "smalfont2.png",1
SETFONT 1
GLOBAL map = GENSPRITE()
SYSTEMPOINTER TRUE
map=1 //  sprite 1
LOADSPRITE "cachemir01.jpg", map //actualmente el tamaño es 1200*920. La imagen tiene que ser mas grande que lo que aparece en pantalla.
                        //  salen 80 tiles X 60 de 16 pinxels
GETSPRITESIZE map, imgWide, imgHeight

scrW=imgWide ; scrH= imgHeight // <-------I do this solution, even it is was the best it works FOR my purpose.


imgX=0 ; imgY=0 ; speedW=4 ; speedH=4

//Esto seria para hacer un array de los tiles poniendo zonas
GLOBAL tilex,tiley
tilex= MOD (MundoX/16,imgWide)
tiley= MOD (MundoY/16,imgHeight)



//-------------------------------------------------------------------------
//                           inicio

LIMITFPS 60
//Un sprite A
//DRAWRECT 0,0,64,32,RGB(255,255,0)
//DRAWRECT 7,23,4,4,RGB(255,0,0)
//GRABSPRITE 0, 0,0,64,32

GLOBAL id =0

FUNCTION main:

VIEWPORT VistaGrandx1, VistaGrandy1, VistaGrandx2, VistaGrandy2

        DRAWLINE VistaGrandx1-1,VistaGrandy1-1,VistaGrandx2+1,VistaGrandy1-1, RGB(0,0,255)    // horizontal - arriba - derecha
    DRAWLINE VistaGrandx2+1,VistaGrandy1-1,VistaGrandx2+1,VistaGrandy2+1, RGB(0,0,255)    //vertical - derecha -abajo
    DRAWLINE VistaGrandx2+1,VistaGrandy2+1,VistaGrandx1-1,VistaGrandy2+1, RGB(0,0,255)    //horizontal -abajo izquiuierda
    DRAWLINE VistaGrandx1-1,VistaGrandy2+1,VistaGrandx1-1,VistaGrandy1-1, RGB(0,0,255)    //Vertical-arriba-izquierda

        IF KEY(200) THEN imgY=imgY-speedH ; IF (imgY+scrH)<0 THEN imgY=imgY+scrH
        IF KEY(208) THEN imgY=imgY+speedH ; IF imgY>0 THEN imgY=imgY-scrH
        IF KEY(203) THEN imgX=imgX-speedW ; IF (imgX+scrW)<0 THEN imgX=imgX+scrW
        IF KEY(205) THEN imgX=imgX+speedW ; IF imgX>0 THEN imgX=imgX-scrW

// Convert world coordinates into imgX AND imgY (the IF makes it handles POSITIVE world coordinates too)
        MundoX = MOD (worldX,imgWide) ;MundoX = -imgX ; IF worldX < 0 THEN MundoX = imgX - imgWide
        MundoY = MOD (worldX,imgHeight) ; MundoY = -imgY ; IF worldY < 0 THEN MundoY = imgY - imgHeight
        GENSPRITE()
        DRAWSPRITE map, imgX, imgY
        DRAWSPRITE map, imgX, imgY+scrH
    DRAWSPRITE map, imgX+scrW, imgY
        DRAWSPRITE map, imgX+scrW, imgY+scrH

//-------------------
PRINT " imgX = "+imgX + " imgY = "+imgY,1,384 // no se ve el texto fuera del viewport
PRINT " worldX = "+MundoX + " worldY = "+MundoY,1,400
PRINT " tilex = "+tilex + " tiley = "+tiley+ "bla-bla-bla---bla"+map,1,416
//Cambiar el middlehandle del sprite
MOUSESTATE mx,my,b1,b2

         IF b1=1

//       DRAWRECT mx-1,my-1,20,20, RGB(0,255,0)
       GRABSPRITE id,  mx-1,my-1, 20,20
       //  USESCREEN 1  // con esto se cuelga
         DRAWSPRITE id, mx-20,my                   // <-- ¿Como pongo esto en el fondo o blaground?
         USEASBMP
     //    ¡USESCREEN -1 // con esto se cuelga


ENDIF

ENDFUNCTION


WHILE TRUE //Bucle infinito que ejecuta tu función main hasta que pulses ESC
main()
SHOWSCREEN
WEND

#42
Thank you, kanonet. I didn't know there was a URLDECODE$ instruction in GLBasic!

Indeed, I did not use that instruction on my tests. I was hopping to achieve in PHP the very same encryption I get from ENCRYPT$ in GLBasic (I wanted to obtain the same encrypted file no matter what language I used). But it seems that, in order to do so, I'll have to modify my GLBasic code too and insert a URLENCODE$/URLDECODE$ instruction before/after encrypting my texts, respectively. Thank you again for the hints.

Although I assume this is not the optimum choice. Since GLBasic is already capable of encrypting and correctly decrypting "campeón" without having to previously use URLENCODE$, this PHP instruction should be able to do the same, right? Maybe there is a way to update this blowfish.php file so that it can encrypt non-english Windows-1252 characters too?

Anyway, thank you all, again, for your input.
#43
Thank you for your answer, spacefractal.

Unfortunately, it doesn't seem to completely solve my problem: now first I use urlencode in PHP, then encrypt the string in PHP, and finally send the encrypted string to GLBasic where I get "campe%C3%B3n" instead of "campeón". My GLBasic app doesn't crash, but the resulting texts are unreadable. Is there any other way?
#44
Hello!

Does anyone know if this PHP code can be used with non-english characters and Windows-1252 encoding?

Whenever I try to encrypt something like "campeón" ('champion' in Spanish) I get an encrypted string which is a different string than the string GLBasic would give with ENCRYPT$ (so that is not good). But also, when I try to decrypt this encrypted string with GLBasic the app crashes, or if I try to decrypt the string using the PHP function it returns nothing. The same PHP code works perfectly if I don't use special characters (but that is not a solution for me) or if I use UTF-8 instead of Windows-1252, but I think we need to use Windows-1252 if we want to use the encrypted string in GLBasic, don't we?

Any help or hint would be much appreciated.

The PHP code I use to test (in case you see something there that I don't):
Code (GLBasic) Select

include('blowfishEncrypt.php');
$obj = new MyBlowfish("MyStrongPswd");
$test = iconv("UTF-8","Windows-1252//TRANSLIT", "campeón");
$testEnc = $obj->encryptString($test);
$testDec = $obj->decryptString($testEnc);
echo("Encrypted: ".$testEnc."<br>Decrypted: ".$testDec);
#45
It is a good question. I want to know as well about the next future of GlBasic.