Official Soldat Forums

Misc => The Lounge => Topic started by: truup on August 03, 2007, 08:27:50 pm

Title: *Source included* A little demo I coded
Post by: truup on August 03, 2007, 08:27:50 pm
Here is a little demo I coded today. It's actually nothing special, a simple effect with chiptunes on it. They used to put intro's like this on the old cracked games on amiga, and other stuff.

For people who wants to know, it was coded in Freebasic. Freebasic is kind of a QBASIC clone, it doesn't have anything to do with Coolbasic, Realbasic or any other **** like that. You can get FreeBasic from http://freebasic.net

I'm planning on making it use SDL or TinyPTC, due to FreeBasic's build-in graphic functions being a bit slow. Then I also might add a plasma-effect on background, only if I figure out how it works, or if my friend gets it done. :P

* Note that it might do some flickering, if it does, please tell me and tell me also your computer's specs. *

As for the tune on it.. I didn't make it myself so I'm giving the link for it. I got it from http://www.chiptune.de/

Here is the sourcecode too. Note that it's modified version of the binary.
Title: Re: A little demo I coded
Post by: rfreak on August 03, 2007, 08:43:36 pm
It's a good start BRAVO! are you gonna make a little game for it?
Title: Re: A little demo I coded
Post by: truup on August 03, 2007, 09:08:11 pm
It's a good start BRAVO! are you gonna make a little game for it?
Nah. :D Usually when making games you start by coding the game and then the intro. :P I'm still trying to do this little stuff for beginning, I'm not ready to make (big) games yet. :D Well, I've coded a snake but that's another story... I might change the variables and functions to english tomorrow, and release source too. :P

How ever, this is good training too. You have to optimate the code a bit to make it run smoother, do some FPS handling etc.. So it's basically like coding a game. :)
Title: Re: A little demo I coded
Post by: rfreak on August 03, 2007, 09:13:19 pm
I know all this but maybe you can start to do a small game after the intro
Title: Re: A little demo I coded
Post by: NinjaGimp369 on August 03, 2007, 10:49:38 pm
Man, I love this music
Title: Re: A little demo I coded
Post by: blackdevil0742 on August 03, 2007, 11:24:13 pm
Awsome!

I really love these kind of graphics and music.
Title: Re: A little demo I coded
Post by: Veritas on August 04, 2007, 01:22:01 am
SDL = :D
FreeBasic = D:
Title: Re: A little demo I coded
Post by: a-4-year-old on August 04, 2007, 06:50:17 am
what was that purple beam of light for? i would have just apreciated like a space ship flying by with the banners behind it, you know, like those planes that fly by beaches?
Title: Re: A little demo I coded
Post by: blackdevil0742 on August 04, 2007, 07:01:26 am
Iis the programing language easy to learn?
Title: Re: A little demo I coded
Post by: truup on August 04, 2007, 07:43:33 am
SDL = :D
FreeBasic = D:
Wtf? :D

what was that purple beam of light for? i would have just apreciated like a space ship flying by with the banners behind it, you know, like those planes that fly by beaches?
Heres the answer:
Awsome!

I really love these kind of graphics and music.

Iis the programing language easy to learn?
I'd say it is as easy as QBASIC is. QBASIC is a good language for beginners, and still powerful if programmer has got the skill. Most of the intros and demos were coded in some BASIC language for Amiga back at the old times. Well, FreeBasic is kind of "today's basic". :D
Title: Re: *Source included* A little demo I coded
Post by: mxyzptlk on August 04, 2007, 09:29:34 am
I remember apple basic, on my apple IIe, coding liitle simple "if... then...goto" scripts and seeing how they turned out. Is the syntax much like that of apple basic?
10
20
30
...

that kind of stuff?
Title: Re: *Source included* A little demo I coded
Post by: Clawbug on August 04, 2007, 09:51:32 am
I remember apple basic, on my apple IIe, coding liitle simple "if... then...goto" scripts and seeing how they turned out. Is the syntax much like that of apple basic?
10
20
30
...

that kind of stuff?

Not really. Line numbers were quite abandoned in QBasic, though they were still usable. I am not quite sure about FreeBASIC though, but I guess they are not supported anymore.

I remember downloading some old GW-BASIC compiler and was like "WTF IS THIS....?" when I had to actually type line numbers and such.

There are some demos and intros made with GW-BASIC and QBASIC around though, fun to browse the code and guess how it works and stuff like that.
Title: Re: *Source included* A little demo I coded
Post by: truup on August 04, 2007, 09:52:56 am
I remember apple basic, on my apple IIe, coding liitle simple "if... then...goto" scripts and seeing how they turned out. Is the syntax much like that of apple basic?
10
20
30
...

that kind of stuff?
Just check the sources. :) Though GOTO is pretty out-dated, and it is recommend to use Subs and functions instead of it.

Edit: Claw was faster. :(
Title: Re: *Source included* A little demo I coded
Post by: Clawbug on August 04, 2007, 09:55:27 am
I remember apple basic, on my apple IIe, coding liitle simple "if... then...goto" scripts and seeing how they turned out. Is the syntax much like that of apple basic?
10
20
30
...

that kind of stuff?
Just check the sources. :) Though GOTO is pretty out-dated, and it is recommend to use Subs and functions instead of it.

Edit: Claw was faster. :(

Well, it is what, 20-30 years old method? Not *so* out-dated really! ;)

Enough of sarcasm. ;d
Title: Re: *Source included* A little demo I coded
Post by: mxyzptlk on August 04, 2007, 09:57:46 am
I was about 5 when I was coding it, cut me some slack ;)

Eh, I still might check Freebasic out.
Title: Re: *Source included* A little demo I coded
Post by: blackdevil0742 on August 04, 2007, 11:19:17 am
how does the program work. Do i write in the cmd?? That's all that opens when clicking the exe.
Title: Re: *Source included* A little demo I coded
Post by: Evil-Ville on August 04, 2007, 11:20:05 am
I've got a pile of Amiga disks behind my back right now with lots of demos and intros on them. None of them are even nearly this bad and I've got some obscure stuff there.
Title: Re: *Source included* A little demo I coded
Post by: truup on August 04, 2007, 11:26:52 am
how does the program work. Do i write in the cmd?? That's all that opens when clicking the exe.
It is meant for compiling sources only. You need to use another program to write the code, like Notepad or something. But I would recommend using an IDE, FBIDE seems to be the best IDE for FB this far, get it from http://fbide.freebasic.net

I've got a pile of Amiga disks behind my back right now with lots of demos and intros on them. None of them are even nearly this bad and I've got some obscure stuff there.
Good for you.