Results 1 to 5 of 5

Thread: SDL tuts for pascal/lazarus?

  1. #1

    SDL tuts for pascal/lazarus?

    Hello there. Has anybody links to pascal sdl tuts? I found some for c++, but there was too hard to translate into pascal. The library/help doesn't help me too.

  2. #2

    Re: SDL tuts for pascal/lazarus?

    Hi Darkhog,

    Welcome to PGD! The library is still a work in progress, we hope to add more links and information in the near future.

    As for SDL, have you looked into jedi-sdl?

  3. #3

    Re: SDL tuts for pascal/lazarus?

    JEDI-SDL's documentation will help a lot. Though there are a few mistakes in it. Especially when it comes to pointer references:

    A simple example for the input handling chapter:

    [pascal]
    var
      event_: TSDL_Event;

    procedure ...
    begin
      ...
      ...
      while (SDL_PollEvent(^event_)) do
      begin
        ...
      end;
    end;
    [/pascal]

    The SDL_PollEvent(^event_) is wrong, it should look like this...

    [pascal]
    SDL_PollEvent(@event_);
    [/pascal]

    That is important, especially for Lazarus.

  4. #4
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Re: SDL tuts for pascal/lazarus?

    I have a whole series 'Artillery Game Tutorial' that I'm still not finished writing (Don't worry I'll get to it soon enough ) You can check out the first one in the PGD Library, or go to my blog (http://redantproductions.blogspot.com/) and read the first 2 that have been reposted.

    I know it's not too much to go on right now, but it's a start and you can see how to get started with JEDI-SDL at least.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5

    Re: SDL tuts for pascal/lazarus?

    Quote Originally Posted by WILL
    I have a whole series 'Artillery Game Tutorial' that I'm still not finished writing (Don't worry I'll get to it soon enough ) You can check out the first one in the PGD Library, or go to my blog (http://redantproductions.blogspot.com/) and read the first 2 that have been reposted.

    I know it's not too much to go on right now, but it's a start and you can see how to get started with JEDI-SDL at least.
    Those tutorials are good. I went through them myself on the old PGD site. It helped me a lot.

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
  •