Results 1 to 5 of 5

Thread: need a good 2d library

  1. #1

    need a good 2d library

    Hello all,

    I am trying to write a remake of an old (1990 vintage) game called "Close Combat",

    While i am an experienced programmmer, i am having dificulties.

    I dont like delphi or lazarus environment (i feel claustrophobic using then) or any kind of RAD tool or paradigm.

    So i am stuck...

    I tested Andorra 2D and liked it a lot (Very simple and easy to use indeed !) but it needs (or looks like it needs) Lazarus/Delphi to work...

    It's there any way to use Andorra 2D from pure FreePascal ? Or any other library that does this ?

    Thanks in advance,
    J. Aldo

  2. #2

    Re: need a good 2d library

    You can use Andorra 2D with any text editor and without any RAD tool but it would still need to depend on some Lazarus/Delphi units.
    Same applies to other libraries like Phoenix and Asphyre.

    Alternatively you could try to use SDL and write your own little library around that.
    Freeze Development | Elysion Game Framework | Twitter: @Stoney_FD
    Check out my new book: Irrlicht 1.7.1 Realtime 3D Engine Beginner's Guide (It's C++ flavored though)

    Programmer: A device for converting coffein into software.

  3. #3

    Re: need a good 2d library

    With Andorra 2D just have a look at the Non-VCL demo. This one only depends on the "Classes" and "SysUtils" Units, which are always shipped with FPC:
    http://andorra.cvs.sourceforge.net/v...view=markup#l1

    All you have to do is to set the "DO_NOT_INCLUDE_STD_FORMATS" and "DO_NOT_INCLUDE_STD_WINDOWMGR" compiler switches or simply set them in the "andorra_conf.inc".

    You can use the AdWin32Window Window-Framework-Provider-Unit for DirectX/OpenGL on Windows (as it is done in the demo) or AdGLFW and AdSDL for OpenGL only on Windows/Linux.

    Hope that helps you,
    Andreas

  4. #4

    Re: need a good 2d library

    Quote Originally Posted by igel457
    This one only depends on the "Classes" and "SysUtils" Units, which are always shipped with FPC
    I didn't know that. I was under general impression that you would need some more units, but I didn't know about those two compiler switches. Seems I going to give this another try.
    Freeze Development | Elysion Game Framework | Twitter: @Stoney_FD
    Check out my new book: Irrlicht 1.7.1 Realtime 3D Engine Beginner's Guide (It's C++ flavored though)

    Programmer: A device for converting coffein into software.

  5. #5

    Re: need a good 2d library

    I was not completely honest, I think there indeed are some dependencies to "Math", "SyncObjs" and probably "Contnrs" (I'm not sure about that), but theese should also be included with the compiler... ;-)

    Edit: Here's the complete dependency chart: http://andorracommons.sourceforge.ne...Draws.gviz.svg - Units like "Forms" and "Graphics" are only included by the AdVCLFormats and AdComponentWindow Units which are deactivated with the compiler switches above...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •