Log in

View Full Version : Game programing in TP7/BP7 or in FreePascal(FPC)???


-22-
02-02-2004, 03:38 PM
hi

because I start to learning programing in Pascal in school(TP7/BP7 and freepascal(FPC) I want to ask is there any modern graphics and sound lib's for those compilers that could I use for game developing or maybe is there a GDK like Allegro or SDL with can be use with those compilers :confused:

Akura
02-02-2004, 04:10 PM
AFAIK, no, but Delphi (the new OO Pascal or whatever name it goes by these days) has a syntax very similar to Pascal and there are various game libraries for it. There is also a standard version of delphi selling for aroun 80-100 bucks if im not mistaken.

robx
02-02-2004, 04:52 PM
Freepascal is compatible with Object Pascal(delphi's sintax) so you can use delphi's libraries with no problems. Keep in mind that some libraries are system dependent.
Check out the open directory project (http://directory.google.com/Top/Computers/Programming/Languages/Delphi/?tc=1) for pascal/object pascal resources about graphics and game programming.

-22-
02-03-2004, 12:54 PM
thanks for reply's

to bad there,s no modern libs, but how about older graphics and sound lib's that could be use for game developing on TP7/BP7, can you recommend any :cool:

Lerc
02-04-2004, 02:06 AM
I used TB/BP 7 a bit and moved on through Delphi and have done a few projects that were complilable in both FPC and Delphi.

Do you have any compelling reason to be sticking to BP7? Using a 16 bit compiler is a bit outdated.

I used Xlib for a modeX graphics library back then. But really You talking distant past now with these things.

I wrote my own sound code, but we're talking back in the days where you needed a setup program to select Sound card IO port addresses, DMA, and IRQs

On a more modern front,

I did a bit of OpenGL work with FPC and that went quite well.

Unless you are planning a new DOS revolution I'd recommend sticking with FPC.

-22-
02-04-2004, 08:39 AM
I think you right that TP7/BP7 are to old.
so I want to ask if libs like DelphiX or PowerDraw will work with FPC , [on official site's of those components I find only info that works only with delphi,] and what graphics and sound lib's do you recommend for FPC

Lerc
02-04-2004, 02:22 PM
Originally posted by -22-
I think you right that TP7/BP7 are to old.
so I want to ask if libs like DelphiX or PowerDraw will work with FPC , [on official site's of those components I find only info that works only with delphi,] and what graphics and sound lib's do you recommend for FPC

A bunch of sound libraries like FMod and BASS have DLLs which FPC can interface to. You should probably be able to use the Delphi interfaces to the DLLs directly, if not they would in all likelyhood require only tiny changes.

A quick search engine look revealed.

http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME
http://www.caladon.de/allegro/allegro.pas.html

For DirectX interfaces.
http://members.yline.com/~tom_at_work/index.html
http://clootie.narod.ru/fpc/

If you really want to use BP7 there is even this which appears to be still supported.
http://www.crossfire-designs.de/showpage.php?lang=en&what=sourcecode&name=gx2.htm