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

This is a discussion on What would i need to make a game in 2d? within the Game Programming forums, part of the General Programming Boards category; actually, it may be just my personality, but i dont like to take backwards steps, because then i make it ...

  1. #16
    Emotionally Unstable DarkViper's Avatar
    Join Date
    Oct 2002
    Posts
    343
    actually, it may be just my personality, but i dont like to take backwards steps, because then i make it an annoying habbit. to me, its like, learning PHP then learning HTML afterwards and ditching PHP. knowwhatimean?

    my book explains GDI somewhat, tells you how to make a triangle and box, and an ellipse. thats it. and i find it very confusing to draw something, just to set it up i mean. but drawing is the easy part.
    ~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. #17
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    lol I had this argument a looong time ago with somebody (DOlson I think). Two quotes came up, "why walk when you can run?" and "why use a knife when you can use a sword?" or something along those lines. My reply was, "a) because it hurts more when you run into a wall then when you walk into it. b) Well, why use a potato peeler when you can use a sword?" Some things are easier done with the simpler tool

    It's good that you know how to make a triangle and ellipse, but you probably want to also learn how to load and draw bitmaps. It's pretty simple to learn and do, but also very important... and once you've taken those 3 hours to learn it, it's yours to put on your resume, and you can move on and learn the bigger and better stuff.
    Just Google It. √

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

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

    I remember!

    Hey I remember that argument! That was the best. Everyone was talking about allegro and how it's wrse than DirectX. And BTW, it was a sword and an axe, not a potato peeler

    Anyway, napkin, can you give me the site for the download, instead of the direct link? Like the home page or something?

    Where do I read more about GDI?

    Is GDI even on Windows98?
    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)

  4. #19
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    www.geocities.com/napKINfolk/Main.html Yeah, I got really bored in Information Processing class (Its my second time taking it, I dont know why they gave it to me again...) with a digital camera and geocities (I just got a haircut so my hair is like 4 inches shorter). Enjoy!

    erm...the game is not pronounced "Ballz." The...erm...'a' is silent so it sounds kinda like "belz." (maybe sega will take it easier in the ensuing lawsuit)

    [edit]GDI->Graphical Device Interface. GDI is not something like SDL or OpenGL, it is a method to do things (like OOP or GUI)[/edit]

    //napKIN
    Last edited by napkin111; 12-07-2002 at 07:55 PM.

  5. #20
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Is GDI even on Windows98?
    Yes It's part of it.

    Where do I read more about GDI?
    Try http://www.gametutorials.com/Tutoria.../Win32_Pg1.htm
    The stuff you'll want is sort of scattered around, but try google... there'll probably be a lot of good GDI examples floating around.

    GDI is not something like SDL or OpenGL
    Well duh, SDL goes with OpenGL and OpenGL goes with SDL, but GDI isn't anywhere in the picture

    it is a method to do things (like OOP or GUI)
    OOP: A way of programming; uses "objects" that are re-used.
    GUI: Something that you use to interact with a program.
    -"something" -> not a method, since methods are ideas and not things
    GDI: Something you use to make stuff appear on the screen
    -"something" -> not a method, since methods are ideas and not things


    How is GDI a method? It seems more like a built-in "feature" of Windows, and not "a way" of programming to me...

    **EDIT**
    Stan, check this out... it's brief, but sort of helpful:
    http://www.fortunecity.com/rivendell...rgers.htm#2.5.
    And this:
    http://blacksun.box.sk/aztek/winprog...e=winprog.html
    Last edited by Hunter2; 12-07-2002 at 08:07 PM.
    Just Google It. √

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

  6. #21
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    Hmmm....after a bit of thought, I concur. Thanks for the clarifications(or "total-tear-down-and-then-rebuild-what-was-said" lol)

    Also, did you program that Space Shooters game Hunter? I assume you did but I'm not sure since it is a bit higher (skill-wise) than the other downloads. If (You_Did==1) Good Job!;


    //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

  7. #22
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Yep

    it is a bit higher (skill-wise) than the other downloads.
    lol the other downloads were my first few experiments in Windows -

    Text Editor = #1 <-- my attempt at a useful dialog-based prog

    Theseus and the Minotaur = #2 <-- was "homework" from some lessons I was taking - got me started off in GDI

    Tic Tac Toe = #3 <-- "why not? Nothing else I can do "

    Space Shooterz = #4 (a.k.a. da MUTHA project). <-- "must... do... REAL-TIME!!!"

    Heh I'm just trying to port Space Shooterz to DirectDraw right now, but that's not coming along very well...
    Last edited by Hunter2; 12-07-2002 at 08:30 PM.
    Just Google It. √

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

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

    openGL

    Where do I get openGL?

    Where is the GDI thingy located(what directory would it be found?)


    BTW, what is your avatar hunter? A powerwasher?
    Last edited by Stan100; 12-08-2002 at 09:07 AM.
    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)

  9. #24
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Where is the GDI thingy located(what directory would it be found?)
    Well, it's not really in a directory. To use it, all you have to do is put "#include <windows.h>" at the top of your code, since it is "built into windows"

    BTW, what is your avatar hunter? A powerwasher?
    Close... it's a person's hand holding a lightsabre
    Just Google It. √

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

  10. #25
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310

    Red face

    LOL! I coulda swore your (Hunter's) avatar was one of the car wash thingies you screw onto the end of a hose!

    //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

  11. #26
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    HAH! lol now I get it! Maybe I should fix it... nah, too lazy

    P.S. that avatar is a section of one of my screenshots from Jedi Knight II!!!
    Just Google It. √

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

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

    LOL

    Man, all this time I would of bet my life that your avatar was a power washer!!! Man, was I wrong! It even has water dropletts in the backround! That tutorial is close to the best thing I have ever seen. If anyone is still out there listening, please tell me where I find OpenGL and, napkin, I downloaded the sdl thing(DLL)
    Now what? Is the dll just supposed to be a library, I mean how do I access it?
    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)

  13. #28
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    The SDL.DLL is needed for the .exe to run. In order to make your own code and compile you will need the header files (SDL.H I believe). You can get that from the SDL link (^-above-^). The Ballz game took me about 7-8 hours (in 2 days) total to make using SDL.

    //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

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

    Where?

    If the link you're refering to is your homepage, then by all means TELL ME WHERE TO FIND IT!
    else
    if (www.geocities.com/napKINfolk...!=whatyoumeant)
    {
    tell me where
    return 0;
    }






    Quote of the day: Microsoft doesn't make mistakes, it regulates them. Example: C#
    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)

  15. #30
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    lol, you have your if statement returning 0!!

    public int tellmewhere()
    {
    GoHere();
    return hope_thats_what_youre_looking_for;
    }
    Last edited by napkin111; 12-10-2002 at 09:24 PM.
    "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

Page 2 of 3 FirstFirst 123 LastLast
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, 02: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, 05: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, 12:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21