Search found 1021 matches

by paul doe
Jan 16, 2020 20:24
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 86
Views: 3560

Re: Unable to access fb.net forums

@badidea: Hahaha pretty amusing. And I would certainly want to take a look at the code for a bot that cracks these, especially the first one. Makes me wonder how would I code one of such generators ;)
by paul doe
Jan 16, 2020 12:21
Forum: General
Topic: Sorting Numbers As Strings
Replies: 8
Views: 316

Re: Sorting Numbers As Strings

I have a text file composed of numbers in the format below. I can bring these into a single-dimension array using "Line Input #." The issue is the gap between. I cannot sort these numerically. I could replace the space with a comma using a "Mid" statement. Doing this would requi...
by paul doe
Jan 15, 2020 4:02
Forum: Game Dev
Topic: Another freebasic miner
Replies: 25
Views: 1096

Re: Another freebasic miner

For what is worth, I use GitHub Desktop to sync with my repository . Very simple and integrates seamlessly under Windows. You specify a local folder for the repository and it will sync it automatically with GitHub. Then, create a pull request, drag and drop files to the local folder and it automatic...
by paul doe
Jan 14, 2020 15:46
Forum: Community Discussion
Topic: Pull Requests
Replies: 27
Views: 1518

Re: Pull Requests

Just my two cents: ... But before make any decision: I hope that the './fbc-int/*.bi' files can be a way to share fbc internals with users & casual developers. I also hope that we are not required to support this exact API forever, as that could impede development. So I will say this, './fbc-int...
by paul doe
Jan 12, 2020 20:15
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 2171

Re: Windows graphics tutorial

Charles Petzold's Programming Windows uses "Return (0)" en every case, at least the copy I have. DefWindowProcA: Calls the default window procedure to provide default processing for any window messages that an application does not process. This function ensures that every message is proce...
by paul doe
Jan 11, 2020 21:03
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 2171

Re: Windows graphics tutorial

Here: /' ---------------------------------------------------------------------------- - Plantilla Programación Gráfica - SWGPTG - FreeBasic - ----- ----- - AUTOR : Alfonso Víctor Caballero Hurtado - ----- ----- - VERSION : 1.0 - ----- ----- - (c) 2020. http://www.abreojosensamblador.epizy.com - - Sm...
by paul doe
Jan 11, 2020 14:22
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 2171

Re: Windows graphics tutorial

It crashes when closing the window here (Win10 fbc 1.07.1 compiled with gcc 5.x). Most likely due to this part: '' ... Select Case message Case WM_CHAR If (wParam = VK_ESCAPE) Then Goto wmDestruimos End If Return 0 '' ... Case WM_DESTROY wmDestruimos: KillTimer (hWnd, cdIdTimer) hGDITmp = SelectObje...
by paul doe
Jan 10, 2020 22:26
Forum: Beginners
Topic: pushing and popping
Replies: 25
Views: 628

Re: pushing and popping

... What I do not understand is the redim right at the beginning. If redim is changed to dim, errors evolve. So it should be as you say. But why a redim when there has not yet been a dim. That I do not understand. ... There are other possibilities to declare a dynamic array, too. Look at MrSwiss po...
by paul doe
Jan 09, 2020 17:05
Forum: Game Dev
Topic: xbox controler read try
Replies: 2
Views: 147

Re: xbox controler read try

Nothing is wrong with your controller. You need to link to FBGFX for getJoystick() to work (set a screen mode first): #include once "fbgfx.bi" '' Some common ASCII codes namespace ASCIICode const as string _ KEY_UP => chr( 255, asc( "H" ) ), _ KEY_DOWN => chr( 255, asc( &...
by paul doe
Jan 08, 2020 13:15
Forum: General
Topic: OPENGL NEHE EXAMPLES
Replies: 12
Views: 502

Re: OPENGL NEHE EXAMPLES

... how do i change _opengl.bas to full screen ? ... You should not use Screen() anymore. ScreenRes() is more versatile: #include once "fbgfx.bi" screenRes( _ 800, 600, 32, , _ Fb.GFX_FULLSCREEN or Fb.GFX_OPENGL ) Make sure your card supports the fullscreen resolution. ......
by paul doe
Jan 08, 2020 2:06
Forum: General
Topic: Mutexlock inside or outside function calls?
Replies: 3
Views: 239

Re: Mutexlock inside or outside function calls?

Hey, no prob ;)
by paul doe
Jan 07, 2020 20:19
Forum: General
Topic: OPENGL NEHE EXAMPLES
Replies: 12
Views: 502

Re: OPENGL NEHE EXAMPLES

i shal try to translate as many a nehe examlpe as i can ... Most of these examples were already translated to FreeBasic, and can be found in the examples/graphics/opengl/NEHE folder of your FreeBasic distribution. Unless you're using them as an excercise, to learn OpenGL. But in that case, I'd say ...
by paul doe
Dec 30, 2019 20:54
Forum: Game Dev
Topic: Game Engine Black Book DOOM
Replies: 2
Views: 230

Re: Game Engine Black Book DOOM

Quite an interesting resource, indeed. Already downloaded ;)

Thank you so much for sharing!
by paul doe
Dec 29, 2019 12:11
Forum: Beginners
Topic: Uint (float) to color fradient
Replies: 6
Views: 152

Re: Uint (float) to color fradient

dafhi wrote:...
[update 2] one small correction

Mmm? I don't understand. Did I made a mistake there? I can't really find where the error is...
by paul doe
Dec 29, 2019 11:31
Forum: Beginners
Topic: Uint (float) to color fradient
Replies: 6
Views: 152

Re: Uint (float) to color fradient

@12val12newakk: it would be pretty nice if the snippet at least worked, buddy: type as single _ float type as ulong _ FbColor Function CLR_Gradient (Byval highest As float, Byval CLR As float,Byval lowest As float) As FbColor dim as FbColor temp ,grad dim as single st1 st1 =(highest - lowest ) /1024...

Go to advanced search