Recent Posts

Pages: [1] 2 3 ... 10
1
GLBasic - en / Re: Future of Glbasic or the ending?
« Last post by MrPlow on Yesterday at 09:21 pm »

Hi SF

By 'Gone' I assume you mean you took them off yourself?
My Android apps are all still there and working away etc.
Why didn't you just leave them up?

Today all my apps is now gone from App Store as well. So now im are back to only using Windows my self. So im cannot support Android and iOS anymore. Howover im do still have two apps on Ouya, which was a great little test console, even im never got some money from it. its was still fun.

Some of my games could do come to Amazon Fire exklusive on their tables throught.
2
GLBasic - en / Re: Future of Glbasic or the ending?
« Last post by Cliff3D on Yesterday at 04:56 pm »
That is... incredibly sad. I have always loved the BASIC language, and probably always will. Compiled BASIC over interpreted Python or Java any day!

On a slightly different tack, has anyone considered asking if Microsoft would like to give Gernot a huge pension to buy GLBasic and include it in future versions of Windows? I know that I for one would love GLB to get some serious backing.

Cheers,

Cliff
3
I will just add a little to above response from Qedo.
In GlBasic there are 3 types of variables: # - floating point (default), % - integer, $ - string. You should always use those chars in declaration of vars and also functions, so in this code use KONV$ instead of KONV (that would return floating point value).
Second issue: GLB converts code to C++ sources, that are later compiled by GCC, in C++ (and other languages) the '\' is an escape character for special commands like regex expressions, and compiler tries to handle '\\' as such special command. It only aplies to statically typed string's so it wont appear in string from Input, grabbed from files, made with Chr$() and so on.
To avoid this just use:
GLOBAL a$="Test" + CHR$(92) + CHR$(92) + "//Test"
4
Change KONV in KONV$ (2 places).
The second \ disappears because \ is a special character and works in tandem with the next
5
Hallo,
Eine Funktion zum ersetzen der "\" mit "/" (zum Dateinamenumwandeln für SHELLCMD) gibt keinen Wert zurück wenn der String Sonderzeichen wie "\" oder "/" enthält. Es wird auch nur ein "\" in der Funktion umgewandelt, das 2. verschwindet ....

Code: GLBasic [Select]
GLOBAL a$="Test\\//Test"
PRINT a$,10,30
PRINT KONV(a$),10,100
SHOWSCREEN
MOUSEWAIT

END


// ------------------------------------------------------------- //
// ---  KONV  ---
// ------------------------------------------------------------- //
FUNCTION KONV: wert1$
        // Diese Variablen sind als LOCAL definiert:
        // wert1$
LOCAL wert2$

FOR t=0 TO LEN(wert1$)-1
        IF MID$(wert1$,t,1)="/"
                wert2$=wert2$+CHR$(92)
        ELSE
                wert2$=wert2$+MID$(wert1$,t,1)
        ENDIF
NEXT
PRINT wert2$,10,50
RETURN wert2$
ENDFUNCTION // KONV

 
6
2D-snippets / Re: Fill Fast Line algorithm
« Last post by Qedo on 2018-Aug-17 »
dreamerman, I searched the internet for the best filling algorithm and implemented it in GLB. I do not think there are others, but I can be wrong.
At the beginning I was very doubtful about the efficiency of DIMPUSH / DELETE and the FOREACH / NEXT cycle but I have to say that I'm not a real bottleneck. To get rid of all doubts it would be interesting to implement it in c ++ but for the moment I am satisfied with this version.
7
GLBasic - en / Re: Future of Glbasic or the ending?
« Last post by spacefractal on 2018-Aug-15 »
Today all my apps is now gone from App Store as well. So now im are back to only using Windows my self. So im cannot support Android and iOS anymore. Howover im do still have two apps on Ouya, which was a great little test console, even im never got some money from it. its was still fun.

Some of my games could do come to Amazon Fire exklusive on their tables throught.
8
2D-snippets / Re: Fill Fast Line algorithm
« Last post by dreamerman on 2018-Aug-13 »
Nice, good to have such code ready for use in future. Did you tried other filling algorithms, even just to compare speed? Don't know what impact have those DIMPUSH / DELETE commands.
9
2D-snippets / Re: Fill Fast Line algorithm
« Last post by bigsofty on 2018-Aug-10 »
Cool, thanks Qedo!  :good:
10
2D-snippets / Fill Fast Line algorithm
« Last post by Qedo on 2018-Aug-10 »
After i have grabbing with both hands in the forum a small summer gift (I hope it will be appreciated).
You find the scanline floodfill algorithm using stack instead of recursion.
I converted the version I found in internet from C++ to GlBasic.
Compared to the standard version this is much faster about 10-15 times.
When you start the program for the first 10 seconds, the standard (more slow) version is executed and  after the scanline version.
The program uses my FASTMEM2SPRITE version (which you already sent a while ago and which I have now improved), but you can comment the command and activate the standard MEM2SPRITE to appreciate even more the change of speed.
Let me know
Pages: [1] 2 3 ... 10