Skip to main content

(I) Download FreeBASIC compiler & help

Welcome everybody!


You can download FreeBASIC from SourceForge in this link: https://sourceforge.net/projects/fbc/files/

If you use Microsoft Windows on your computer you can go to Binaries - Windows folder and download the zip file with the name FreeBasic-1.07.1-win32.zip that will run both 32 and 64 bits systems. Note: 1.07.1 is the last version while doing this blog entry.

We will also download the help file going back and entering the folder Documentation and downloading the zip file FB-manual-1.07.1-chm.zip

Now decompress both downloaded files in the path you desire. Me I decided to use my desktop.
Go into FreeBASIC-1.07.1-win32 folder and create a Projects folder that we will use to save our programs and their resources.
This is enough by now, in the next entry we will download and setup our IDE to write and run our programs.

Contact me for any question, see you!

Go to the next entry

Comments

Popular posts from this blog

(II) Download & setup FreeBASIC's IDE FBIde

Hi everybody! If you use Microsoft Windows on your computer you can download FBIde from SourceForge in this link:  https://sourceforge.net/projects/fbide/files/ Go to fbide 0.4 folder and then fbide 0.4.6 r4  folder and download the zip file with the name  FBIde0.4.6r4.zip . Note: 0.4.6 r4 is the last version while doing this blog entry. Now decompress downloaded file in the path you desire. Me I decided to use my Desktop, beside my FreeBASIC compiler and help folders. Go into  FBIde0.4.6r4  folder and execute the application  fbide Click Yes in the message window. And search fbc application inside your FreeBASIC's compiler folder to open it. Go to View/Settings to Choose your Theme for the editor, I like obsidian theme. Add some new Keywords in Group 2 . Choose the path for FreeBASIC Help file (.chm) downloaded in the previous entry of this blog. Remember to click OK to submit the changes. This is e nough by now, i...

(X) Writing in the screen: draw string, locate & print

How everybody! In this entry we will see how to write in the screen, to know for exemple how to show things like information or our score. Take a look at this code: We have already seen drwa string but l et me explain the new keyword used: locate  to drive the cursor used by print to the desired position in the screen. print to print a value in the screen. When we execute this code we can see this: locate and print works together and understand the screen like tiles of 8x8 pixels where there's only place for a character (1,2,3,...,a,b,c,d,e,...,!"·$%&/..., etc) in each tile, starting at 1,1 position whre the fist number is the value of the row and the second value the column that's why the second message appears at the second row and starts at the fist column. The colors used are the default (black/white) or the one's selected by the color instruction that we talk about in the past entry. This is e nough by now, i...

(IX) Colors: depth, color & rgb

Helo everybody! In this entry we will see how to work with colors . We will use the already known screenres instruction to define a depth color of 4 bits per pixel (4 bpp) to have 2^4=16 colors labeled from 0 to 15. Color 0 is black and also works as transparent in 4bpp. Take a look at this code: Let me explain the new keyword used: color  to change foreground and background colors. Must be followed with a cls to submit the changes. When we execute this code we can see foreground and background colors changing with every step of the loop through all its possible values. This is one of this: If we want to define 24 bpp depth we can use the instruction rgb to generate the color value. rgb means red, green & blue components and we can use numbers from 0 to 255 to indicate the amount of each color this way: rgb(0,0,0) for black rgb (255,255,255) for white rgb(255,0,0) for all red rgb(0,255,0) for all green rgb(0,0,255) for all blue rgb...