123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|685|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Basic Basement -> Freebasic Stuff

Sat, 15 Sep 2007, 07:11
shockwave
I remember some of the people here from Blitz Coder and probably some of you remember how I used to plaster my GFX demos all over the place.

I learned more languages since I used to post those old showcases and now I mainly code in Freebasic.

I am glad that there is a section of this board that allows postings in other languages, so I will include the source to one of my demos in this post so you can see what a freebasic program looks like.

Before that I want to tell you about why I chose Freebasic.
I get similar results to C++, in terms of flexibility, size, speed.

It effortlessly allows inclusion of assembly language, the latest version of Freebasic allows you to use either structured programming or OOP, use directx, opengl, sdl, tinyptc, pixeltoaster, freebasic gfx, whatever lib easily. Static and DLLs are both supported.

There are libraries available to play future composer songs, c64 sid songs, .wav, and all tracker songs.

I have released something like 20 small intros into the scene using freebasic now.

There are even people who have used Freebasic to create 1kb intros using pixelshaders.

About the intro, it was made to promote my friends demo scene portal. It's an old intro and I've made much better since then.

I am not sure about posting some of them as they were created for release groups.. The intros themselves have no illegal content though, but as this is only my first post here I do not want to annoy anyone.

Here is a link to the exectuable version;

www.intro-inferno.com/production.php?id=1400

And the source is below (this source has had the gfx and music removed so it doesn't need to include anything and will run with no problems);

Before the code I really hope this won't degenerate into a "my language is better than yours" lamer diuscussion, but for those who are interested in taking a look at some freebasic source, here you are;



Ps. Thanks Jayenkai for rebuilding Blitzcoder

-=-=-
https://www.dbfinteractive.com
Sat, 15 Sep 2007, 11:28
Nolan
Really awesome job! Thanks for providing the source, too.

I've been thinking about using Freebasic for my next project, and after seeing your demo, I'm inspired.

Just curious though.. do you always code in uppercase?

-=-=-
nolandc.com
Sat, 15 Sep 2007, 13:03
shockwave
All these things are written in freebasic if you need more inspiration;

www.intro-inferno.com/production.php?id=2483
www.intro-inferno.com/production.php?id=3520
www.intro-inferno.com/production.php?id=2950
www.intro-inferno.com/production.php?id=1912

About the caps.. I start off with good intentions, I put all reserved words in CAPS and variables etc in lowercase and then I usually lose the plot as I am going along and adding things.

You'd definately not want to use my code as an example, but of course I would help you in any way I can if you decide to have a go at FB



-=-=-
https://www.dbfinteractive.com
Sun, 16 Sep 2007, 12:17
Phoenix
Hey Shockwave! Nice to see you over here, and thanks for sharing that code with us. I think you should, put it in the code snippet section.

Perhaps Freebasic is worth a look, one day I'll have to try it out.
Sun, 16 Sep 2007, 16:17
mike_g
I downloaded Freebasic once, but I think I needed to get an IDE for it as everything was in a yucky looking console screen. I might download it again and have a go at making a prog or two with it. ATM I cant see myself getting too involved with it. But then you never know....

Oh and dutch colours intro was very nice btw
Sun, 16 Sep 2007, 17:28
Jayenkai
I've never tried FreeBasic, but it does look like something nice to try out.

I really have to try and get some coding finished, though, so now's probably not the best time to be playing about with new languages!

-=-=-
''Load, Next List!''
Mon, 17 Sep 2007, 08:33
shockwave
Ah Mike, some people I know have fallen into the same trap, but there is a download available that installs an IDE along with the freebasic language, the download isn't big at all either.

I put together a tutorial that goes through the installation here;
dbfinteractive.com/index.php?cat=127

There are further tutorials that go on to explain about my softrender library, here it is by the way;



But a couple of caveats go with that library, it uses tinyptc which is the method I prefer to draw my things because it is the closest to Amiga style coding, rasterising everything basically.

It will draw simple things like lines, filled circles, rectangles, beziers etc very quickly but it doe not do bitmap loading etc.. I have routines to do this but this library was really designed to get people started

If people were interested in using Freebasic, they'd be better off following the tutorials I already wrote and are in the link I posted above, you do not need to register at my place to use them, don't worry.

I like to keep all my things there because it's easier to keep them up to date that way, Freebasic is evolving and the libraries I make have to change sometimes to make them compatible with new versions, or I sometimes find optimisations and add things.

Everything is freely usable, if it gets more people coding I am happy. Btw, that attachment (softrender lib) in it's current incarnation has been downloaded 61 times, the last version was downloaded 84 times. I plan to add gourad triangles, affine texture mapping and a highly optimised version of perspective correct texture mapping to that lib in the coming months to bring it up to date.

AgentSmith, you should not be angry at yourself for getting Purebasic, it's an impressive language and I own it myself too, although I haven't done a lot with it, just some vectors and a few starfields I must be honest.

-=-=-
https://www.dbfinteractive.com
Wed, 26 Sep 2007, 13:50
dna
I haad trouble with your .rar files.

They downloaded into the windows explorer.
---
I haad trouble with your .rar files.

They downloaded into the windows explorer.

-=-=-
DNA
Thu, 04 Oct 2007, 10:45
Clyde
Shockwave thats a very impressive demo dude.

All those after an IDE for Free Basic, you can use FBIDE.

FBIDE


-=-=-

Tue, 13 Nov 2007, 14:42
dna
I finally got FreeBasic to run.

Agent Smith, You're right. Freebasic is almost worth kicking oneself over except that it lacks TCP/UPD commands.

I also never knew that it could imbed assembly language like Purebasic.



-=-=-
DNA
Tue, 13 Nov 2007, 14:49
dna

This is incredible shockwave!! It's much easier than purebasic.

I never knew this language could do this.

An incredible demo.



-=-=-
DNA
Fri, 16 Nov 2007, 17:44
dna

<<** When I saw just how good FreeBASIC was, I felt like kicking myself for buying PureBasic. **>>

I now know how you felt. I could never get the Jellyfish interface running but now that someone has bundled the IDE I can see that it rivals purebasic.

It will be interesting to see what direction FRED takes Purebasic to keep it ahead of Freebasic.

-=-=-
DNA