Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: My 1st 2d game

  1. #11

    Re: My 1st 2d game

    sorry for bad english but just that is what i like to say

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

    Re: My 1st 2d game

    Well to be honest, of the first few games I made while learning to program with real graphics (non-ASCII) were simple clones of TRON, Arkanoid, Pong, Scorched Earth, a scrolling space shooter, etc. All of them I just drew basic shapes and lines to make up the objects in the game.

    The basic idea was that I was just learning how to make objects and move them around the screen and detect when they impacted each other or the walls, etc. Maybe this approach is best for your next game. I don't think a tiled graphics game would serve you best as your first game outside of using ASCII. Try something simple like an old classic arcade game from the 80s first. It won't be a best seller on Steam, but that's not really the point it's for you to have fun and learn new things so your next project or projects can be even better.

    Oh, but do post your progress here though. Sometimes the simple games can be fun too. (Remembering my old Arkanoid clone and Sky Blast/scrolling shooter games... )
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #13

    Re: My 1st 2d game

    i downloaded "Lazarus", but i dont understand nothing about it and uninstalled it and tryed notepad++ and it's way much better than lazarus
    pain++ looks old and i prefear to use my PS CS4 but can you kive me any 3d program thats runns on vista nice(3Ds max 9 failed)

  4. #14

    Re: My 1st 2d game

    Quote Originally Posted by est000dog
    i downloaded "Lazarus", but i dont understand nothing about it...
    pain++ looks old and i prefear to use my PS CS4 but can you kive me any 3d program thats runns on vista nice(3Ds max 9 failed)
    Do you think Lazarus is a graphics editor?

    For 3D modeling, check out blender (http://blender.org). It certainly isn't user friendly though, but it's free.

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

    Re: My 1st 2d game

    Lazarus is what is called an IDE which is short for integrated development environment, which is just a big winded wordy way of saying it's a cool program that you type your code into and save before you compile it.

    In Lazarus you have to first create a project before you start. Go to File -> New... and select Program NOT Application or you'll have a whole bunch of stuff you don't need. From there you go into the Code Editor and just write your game using whatever API you want, I'd recommend using SDL or for Pascal users JEDI-SDL. (http://jedi-sdl.pascalgamedevelopment.com/)

    Learn how to install and setup JEDI-SDL for Lazarus from the documentation OR by visiting the JEDI-SDL forum here at PGD. I believe my small list of instructions is still a sticky at the top of the forum. That'll help you get started with using 2D graphics for the first time. There is lots to learn about SDL so look at the included demos and read the tutorials and documentation. There are also other tutorials out there that can help teach you to use it in lessons.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #16

    Re: My 1st 2d game

    so i made one simple dot that moves in box but i have problem, who to read multypressed keys?

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

    Re: My 1st 2d game

    Well that's a good start. I assume you are using SDL now?

    SDL has an event handling system which will allow you to keep track on all your input devices (keyboard, mouse, joysticks, etc) button presses and releases along with Mouse cursor position and joystick analog stick positions. It's quite handy and it's all in the main SDL library so you only need to add any of the others for it.

    Have a read of the following pages, these will give you more information on how to work with input devices. Some of the code may be in C, but the variable, constant and function names are the exact same so all you have to understand is the proper usage...

    libsdl.org site's Quick tutorials: http://www.libsdl.org/cgi/docwiki.cgi/SDL_Guide (look into the Input section)

    Freepascal meets SDL is a great site: http://freepascal-meets-sdl.net/ (and it's ALL in Pascal! )

    freepascal wiki's information about SDL: http://wiki.freepascal.org/FPC_and_SDL (some extra stuff you can read to learn more about SDL, just don't get carried away until you learned the basics)
    Jason McMillen
    Pascal Game Development
    Co-Founder





  8. #18

    Re: My 1st 2d game

    Quote Originally Posted by WILL
    Well that's a good start. I assume you are using SDL now?

    SDL has an event handling system which will allow you to keep track on all your input devices (keyboard, mouse, joysticks, etc) button presses and releases along with Mouse cursor position and joystick analog stick positions. It's quite handy and it's all in the main SDL library so you only need to add any of the others for it.

    Have a read of the following pages, these will give you more information on how to work with input devices. Some of the code may be in C, but the variable, constant and function names are the exact same so all you have to understand is the proper usage...

    libsdl.org site's Quick tutorials: http://www.libsdl.org/cgi/docwiki.cgi/SDL_Guide (look into the Input section)

    Freepascal meets SDL is a great site: http://freepascal-meets-sdl.net/ (and it's ALL in Pascal! )

    freepascal wiki's information about SDL: http://wiki.freepascal.org/FPC_and_SDL (some extra stuff you can read to learn more about SDL, just don't get carried away until you learned the basics)
    i have read some of it, but that unit is still too difficult for me(i have earnd pascal for less than a year )

Page 2 of 2 FirstFirst 12

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
  •