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

Thread: basic 2D

  1. #1

    basic 2D

    hey peeps im new to the scene so i would like to first say hi
    however my question
    i am fairly new to pascal and i know only a little but one of the things i want to make is just a simple guy that you can move with the arrow keys...

    however i have no clue as to what to do for for graphics i want something with decent quality as i have read a few tutorials and it seems quality has been an issue in pascal, i don't know how to combined the programing itself and the images so if i push a button a person will move so i was wondering if there were any more tutorials or a script that could help me out
    and get me on the right track

  2. #2

    basic 2D

    Sorry if i don't understand but u said that graphic quality in pascal is poor :?: :?:

    Soldat, Monsters Math, Wicked Defest... have vry good quality
    From brazil (:

    Pascal pownz!

  3. #3

    basic 2D

    Quite. Graphics in Pascal has the same quality as other languages. You just read old tutorials. Just search for Project "W", or Genesis Device here.

    Goodness, Genesis Device even looks a lot like Oblivion and Crysis!!


    Firstly, Pascal/Object Pascal is not a scripting language. You can't just "find a script" that does these things. It is a programming language that is a high level programming language with full assembler support. Secondly, these things are really elementary ... why do you even care what it looks like? You are just moving the location of a sprite.

    Regardless I'd suggest looking into the Phoenix library.

  4. #4

    basic 2D

    ok so graphics are all good eh...

    whats a sprite i assume you don't mean the drink obviously and ok so let me rephrase my question...were can i go or what can i do to learn how to implement graphics into my game i would have to start from the very beginning to learn that and it mite also help if i could find a good tutorial on Delphi as i'm pretty sure its needed to incorporate graphics

    o and i didnt mean a script to do that i ment a source code sorry

  5. #5

    basic 2D

    Quote Originally Posted by Robert Kosek
    Quite. Graphics in Pascal has the same quality as other languages. You just read old tutorials. Just search for Project "W", or Genesis Device here.

    Goodness, Genesis Device even looks a lot like Oblivion and Crysis!!


    Firstly, Pascal/Object Pascal is not a scripting language. You can't just "find a script" that does these things. It is a programming language that is a high level programming language with full assembler support. Secondly, these things are really elementary ... why do you even care what it looks like? You are just moving the location of a sprite.

    Regardless I'd suggest looking into the Phoenix library.
    this engine looks awesome, when i move to 3d i will take a deep look
    From brazil (:

    Pascal pownz!

  6. #6

    basic 2D

    Quote Originally Posted by arthurprs
    this engine looks awesome, when i move to 3d i will take a deep look
    Same here ;-)

    to Demonkid43:

    I'll try to show you the easiest way to achive this, without any additional graphics library. So here it goes:

    1.Create new vcl application.
    2.Put image component on the form.
    3.Load to the image your desired image (by double clicking on its picture property)
    4.On your main form (the one on which is the image lying) go to the events tab and double click on the OnKeyDown event.
    5.Describe event like this:
    Code:
    procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    begin
      if Key=VK_RIGHT then
        Image1.Left:=Image1.Left+5;
      if Key=VK_LEFT then
        Image1.Left:=Image1.Left-5;
      if Key=VK_UP then
        Image1.Top:=Image1.Top-5;
      if Key=VK_DOWN then
        Image1.Top:=Image1.Top+5;
    end;
    Compile and move your image through the arrow keys.

    Good luck!

  7. #7

    basic 2D

    I believe DelphiGameDev would be a good source for beginner tutorials. Reading the tutorials should give you a good starting point into making games.

    ps. Don't wait for the tutorials that says 'Almost there'. It's been like that for years
    Imagine I've written something clever here inspiring you to make something awesome. If that happens give me credits

  8. #8

    basic 2D

    Hey, I just wanted to let you guys know... Demonkid is my friend Daniel, and he's fairly new (very very new...) to pascal, and doesn't exactly know the specifics... He's not using delphi, even though he might think he is. He's using Free Pascal, just the IDE, without Lazarus or anything similar.

    He can understand coding you give him, and learns best from things like wodzu posted...

    I'm teaching him what I know personally (not much but enough to get him started)... He is not so technical, and when he said 'script' he really just meant a chunk of coding...

    What he's attempting to accomplish, is to display a little animated graphic, and move it across the screen.
    --MagicRPG--

  9. #9

    basic 2D

    If he's completely new I would suggest him to start out with Turbo Delphi or Lazarus. I believe it would be easier to get some quick results with a solid IDE.
    Of course if he have never done ay coding he should perhaps look at a place like delphi.about.com and read their beginner tutorials to introduce the basics of the language. (Then again I never really bother that and went strait on to coding games of course the games sucked and I eventually started learning some basics and I'm still learning)
    If he uses Delphi or Lazarus he could use the tutorials I linked to before. They start out making the same basics thing like the code example wodzy wrote, but they also explains how it works. Something that is valuable to a beginner.
    Imagine I've written something clever here inspiring you to make something awesome. If that happens give me credits

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

    basic 2D

    Hi Demonkid43, welcome to PGD!

    I would strongly recommend that you start out with the minimal amount of setup required (to me that means either Turbo Delphi or Lazarus and a beginners level graphics library) just to get your feet wet learning the basics.

    Once you have gotten into it and understand how to make a simple game like Pong/Arkanoid, Tron or even a Scorched Earth clone, you can move on to more complex stuff like a platformer, shooter or even tactical or strategy if you feel bold enough.

    BUT, and I would ward you away from getting into the BIG projects while you are still learning. Huge epic games are very attractive and exciting to be involved in, but you learn slower as there is a LOT more to do to complete them. Stick to the smaller projects, you'll learn a lot more a lot faster. And they can be just as fun. Plus you won't always feel as if you 'dropped' or 'gave up' on most of your early projects. (<-- Years of Experience, free of charge )
    Jason McMillen
    Pascal Game Development
    Co-Founder





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
  •