Thread: What would i need to make a game in 2d?

  1. #1
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343

    What would i need to make a game in 2d?

    like, what do i really need to have (files, programs) in order to begin programming games? what includes should i include? how would i start off?

    of what i heard, Allegro was the only thing suggested.

    i have BloodShed Dev C/C++ (newest version) and i would like to know what i need to include and what programs and files i should have in order to make a 2d game.

    and can someone please tell me how to start off the program?

    i have VERY minimal openGL support. anything 3d runs slow, but say a 3 gradient 3d triangle spinning on the middl;e axis, that runs pretty smooth.
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    You can download the DirectX SDK and try that. If you want 2D I suggest getting the archived DirectX 7.0 which includes DirectDraw API ( 2D Graphics ). There are billions of tutorials on the internet that will get you started too. So after you have that all you need to do is make some graphics with M$ Paint or you program of choice and whoop de doo a 2D game.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83

    Re: What would i need to make a game in 2d?

    Originally posted by DarkViper
    ...what programs and files i should have in order to make a 2d game.
    Well, I'd probably vote for Allegro, but I've heard that SDL is pretty good too (though I havn't tried it myself ).
    "It always takes longer than you think, even when you take Hofstadter's Law into account."
    -Hofstadter's Law

    Bored? Try my game SpaceWars , made in Allegro and VC++
    or see my new game Redoubt , made in OpenGL and VC++

  4. #4
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    sdl is a program???

    anyways, im learning OpenGL, and it seems to be more promising than i thought, and i have more openGL support than i thought too. i have it, just when it gets into anything HUGE it goes slow.
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    69
    If you are using OpenGL, and you need support for networking, sound, input, etc, you may like SDL. It's an API, like Allegro is, and it works nicely with OpenGL.

    Also, if you want environmental audio, OpenAL is worth looking at.
    D. Olson
    The Mandrake eXPerience
    Battle Pong

    IDE: kate 2.0
    Compiler: gcc 3.2
    Graphics/Input/Net: SDL 1.2.5 (pdf)
    3D Audio: OpenAL (pdf)


    I am a signature virus. Please add me to your signature so that I may multiply

  6. #6
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    Lightbulb downloads.

    Are openGL and SDK giant downloads? I have wimpy 56k, and I don't want to sit around all day waiting for it. Thx
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  7. #7
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    SDL, not SDK SDK means "software development kit" or something along those lines. SDL means "something_or_the_other something_else library", or something along those lines

    BTW, if you're up for something simpler than DirectX and you don't feel like downloading anything, and you're running Windows, and you don't mind a bit slower running speed, then LONG LIVE THE GDI!!!
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  8. #8
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83
    Originally posted by Hunter2
    SDL, not SDK SDL means "something_or_the_other something_else library", or something along those lines
    Simple DirectMedia Layer

    close
    "It always takes longer than you think, even when you take Hofstadter's Law into account."
    -Hofstadter's Law

    Bored? Try my game SpaceWars , made in Allegro and VC++
    or see my new game Redoubt , made in OpenGL and VC++

  9. #9
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Yes, I was very close, wasn't I Oh well...
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  10. #10
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    tell me more about GDI and can anyone tell me the size of the downloads?
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  11. #11
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    GDI:
    -slow
    -built into Windows
    -comes with a plethora of built-in features
    -download size = 0 bytes
    -does NOT work with Linux or other non-Windows systems
    -fast enough if you don't make anything crazily graphics-intensive
    -much easier than DirectDraw
    -well documented in MSDN (I think)
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  12. #12
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    I believe the SDL download is very small (~100k). Download here for win32 Thats all you need. I made my first game with SDL called Ballz. I posted it at www.geocities.com/napKINfolk/Main.html if you wanna try it.

    //napKIN
    "The best way to get answers is to just keep working the problem, recognizing when you are stalled, and directing the search pattern.....Don’t just wait for The Right Thing to strike you – try everything you think might even be in the right direction, so you can collect clues about the nature of the problem."
    -John Carmack

  13. #13
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    lol "ballz"? Heh, get it? Ok, so I guess I'm the only person here with a sick mind... lol oh well

    P.S.
    I made my first game with GDI called Tic Tac Toe (or Theseus and the Minotaur? Not sure which was first). I posted it at www.geocities.com/hunterguy_2/downloads.html if you wanna try it. My latest one is Space Shooterz.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  14. #14
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    uhhh...hehe...ballz? you better rename that project, that name is copywritten by a game for Sega Genisis. it was Segas first 3d fighting game and all the characters were made entirly from ball figures.

    i tried GDI, and i find it very confusing and i dont like it. sorry hunter.

    SDL is less than 100k eh? ill hafta get it. is it an api or a library? and if its a library, how would i be able to use it with BloodShed Dev C++?

    as for OpenGL, the libraries needed for it to compile come already equipped with your compiler. well...at least, mine did.

    Code:
    #include <gl/gl.h>
    #include <gl/glu.h>
    
    // blah blah blah
    Last edited by DarkViper; 12-06-2002 at 06:13 PM.
    ~DJ DarkViper signing out
    ----------------------------------------
    My Site:
    Black Jaguar Studios

    Languages:
    Fluent English, Starter German, HTML, Javascript, Actionscript, Intermediate PHP

    Verteran Despiser of: ASP, Java, BASIC, Pascal, Cobalt

  15. #15
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    lol don't like GDI? I know what you mean. Don't worry about it, just learn SDL/allegro/something else, but once you've gotten the hang of graphics (i.e. double buffering and stuff), you might still want to take a step back and figure out the basics of GDI.

    Sample resume:
    --------------------
    Programming skills:

    -231 years' experience with C/C++
    -Proficient with the use of the Windows Graphics Device Interface API
    -20 years' experience of using the various components DirectX 12.8 b and earlier
    -Extensive knowledge of the use of the Allegro and SDL libraries
    -lots of other impressive stuff
    --------------------

    lol doesn't it sound impressive? But if you take out the GDI line, it just sort of deflates, in my opinion
    Last edited by Hunter2; 12-06-2002 at 06:41 PM.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. game engine advice?
    By stien in forum Game Programming
    Replies: 0
    Last Post: 01-23-2007, 03:46 PM
  2. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 03:18 PM
  3. 2d game ideas
    By BeholderOf in forum Game Programming
    Replies: 5
    Last Post: 10-27-2003, 06:06 PM
  4. My Memory Game
    By jazy921 in forum C Programming
    Replies: 0
    Last Post: 05-05-2003, 05:13 PM
  5. RPG 2d Game Map Editor?
    By drdroid in forum Game Programming
    Replies: 1
    Last Post: 01-08-2003, 01:17 PM