Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: New to this

  1. #1

    New to this

    Hi
    I want to make my own game in pascal(....)
    But i dont know were to start
    So i had an idea for it
    Code:
    Type
    TDuck = Object
    Procedure MakeSound;
    Procedure MoveLeft;
    ...
    But i dont know if that would work....
    Im also using the Lazarus compiler...
    THNX

  2. #2

    Re: New to this

    Hmm... first of all. Do you know how to program in an object oriented way?

    It would become something like this:
    [pascal]
    Type
    TDuck = class
    public
    Procedure MakeSound;
    Procedure MoveLeft;
    end;

    ...

    implementation

    ....

    Procedure TDuck.MakeSound();
    begin
    //play the sound here
    end;

    Procedure TDuck.MoveLeft();
    begin
    //Make the duck move left
    end;

    [/pascal]

    But most important of all, you need to:

    > Know how a game works. I'm talking about the essentials: Making a game loop, reading input etc..
    > You have to get some libraries to do stuff for you: Play sound, draw graphics etc
    > You need to make all the art

    So tell us. What is your level of programming skill? Have you looked into some libraries?

    Hope it helps.

    P.S: Lazarus is not a compiler. It's an IDE that uses the FreePascal compiler.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  3. #3

    Re: New to this

    Well i know that theres more then one way of doing OOP
    [code=Pascal]
    Type
    TDuck = Object

    end;
    [/code]
    [code=Pascal]
    TDuck = Class

    end;
    [/code]
    And ive worked with OOP many times before.. I know how to implement it
    I guess im pretty good at it.
    I've made small CLI and GUI programs
    I can work with text files
    Has far as reading input i know
    Code:
    Readln(MyStr);
    And things like TEdit Etc Etc
    So...

  4. #4

    Re: New to this

    Any one?
    I just want to know how to get started...
    What Units am i gonna use?
    DO I need a certain compiler?
    Etc Etc

  5. #5

    Re: New to this

    Hey captain jaster.

    Welcome to the forums.

    A compiler: Delphi is of course a popular choice. There's the commercial product, but Turbo Delphi works equally well. Chronozphere also mentioned FreePascal as a possible option.

    Next, choose a directx/opengl wrapper. There are many available, DelphiX used to be quite popular, but nowadays Asphyre or Hadron Game Engine (aka PyroGine) are two of the better options to choose from. Note that it is not required to use these packages, but they tend to make life a lot easier as much of the hard work is already done for you. i.e You don't have to think anymore setting up the graphical interface, capturing input, setting up sound, working out collision detection systems etc etc. Mind you, these are 2d engines, there are other libraries for 3d. Also, both come with demos. Have a look at them, learn from them.

    Ok, with that out of the way, next thing you should be thinking about is what kind of game you want to make. A puzzle game, platform game, shooter etc. Also consider for a moment if you're able to get the assets for it, especially the graphical content.
    Judging from your post I'd say you are quite new to all of this so I would recommend choosing something simple like a Space Invaders or an Asteroids clone.

    Anyway, I hope this help a bit





  6. #6

    Re: New to this

    I would recommend learning to use Lazarus. It looks like Delphi, uses Free pascal compiler, works on Windows and Linux and doesn't cost a thing.

    You can download it (Use latest snapshot always. The recent "stable" version is very very outdated and in fact less usable.) here: http://www.hu.freepascal.org/lazarus/
    "Lazarus + fpc 2.4.0 - win32" is propably the most common pick, but choose the fitting for your system.

    First question you may have concerns executable size being over 11mb on empty form. This is solved removing debug symbols from .exe, this is done in compiler-linking options.
    - Strip Symbols From Executable (-Xs) -> Checked
    - User external gdb debug symbols file (-Xg) -> Checked
    (edit: fixed)

    Also, if you are using other libraries you will be forced to type their directory path in the project paths aswell, for each project.

  7. #7

    Re: New to this

    Quote Originally Posted by User137
    I would recommend learning to use Lazarus. It looks like Delphi, uses Free pascal compiler, works on Windows and Linux and doesn't cost a thing.

    You can download it (Use latest snapshot always. The recent "stable" version is very very outdated and in fact less usable.) here: http://www.hu.freepascal.org/lazarus/
    "Lazarus + fpc 2.4.0 - win32" is propably the most common pick, but choose the fitting for your system.

    First question you may have concerns executable size being over 11mb on empty form. This is solved removing debug symbols from .exe, this is done in compiler options.
    - Strip Symbols From Executable (-Xs) -> Checked
    - Link Smart (-XX) -> Checked

    Also, if you are using other libraries you will be forced to type their directory path in the project paths aswell, for each project.
    I am using lazarus
    Quote Originally Posted by Traveler
    Hey captain jaster.

    Welcome to the forums.

    A compiler: Delphi is of course a popular choice. There's the commercial product, but Turbo Delphi works equally well. Chronozphere also mentioned FreePascal as a possible option.

    Next, choose a directx/opengl wrapper. There are many available, DelphiX used to be quite popular, but nowadays Asphyre or Hadron Game Engine (aka PyroGine) are two of the better options to choose from. Note that it is not required to use these packages, but they tend to make life a lot easier as much of the hard work is already done for you. i.e You don't have to think anymore setting up the graphical interface, capturing input, setting up sound, working out collision detection systems etc etc. Mind you, these are 2d engines, there are other libraries for 3d. Also, both come with demos. Have a look at them, learn from them.

    Ok, with that out of the way, next thing you should be thinking about is what kind of game you want to make. A puzzle game, platform game, shooter etc. Also consider for a moment if you're able to get the assets for it, especially the graphical content.
    Judging from your post I'd say you are quite new to all of this so I would recommend choosing something simple like a Space Invaders or an Asteroids clone.

    Anyway, I hope this help a bit




    Thnx Im Hoping to make a small 2D platformer
    But do you know how i can get started with Asphyre.
    Theres alot of Files In the Src

  8. #8

    Re: New to this

    Welcome to the world of pascal.

    Follow these tutorials to get started. You are told what you need and how you use it.
    http://www.schoolfreeware.com/Free_P...Tutorials.html
    This course includes 32 tutorials building things up at the end you are ready to start programming your game :-)
    http://3das.noeska.com - create adventure games without programming

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

    Re: New to this

    I've thought about writing a book for those that want to learn how to program in [Object] Pascal with a skew towards making games. I remember when I was taking Computer Science classes in highschool that was how they presented new game concepts to us past the basics and on to functions and procedures and so on.

    Problem these days is that you can't really pull up modern day graphics modes with your usual Pascal compiler because it's all APIs now. If you want to work with graphics you have to learn SDL, DirectX or OpenGL. However to still can make a game using console ASCII text, but I don't know if young people these days would be interested in starting with that.

    Game programming isn't for the instant gratification crowd these days, of that I'm sure.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  10. #10

    Re: New to this

    Quote Originally Posted by noeska
    Welcome to the world of pascal.

    Follow these tutorials to get started. You are told what you need and how you use it.
    http://www.schoolfreeware.com/Free_P...Tutorials.html
    This course includes 32 tutorials building things up at the end you are ready to start programming your game :-)
    Hey, those are quite good Pascal tutorials

    cheers,
    Paul

Page 1 of 2 12 LastLast

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
  •  
Comodo SSL