Gravity pong!

This is a discussion on Gravity pong! within the Game Programming forums, part of the General Programming Boards category; Hey, Gravity pong's my first game with graphics. Tell me what you think. If anyone wants the source i'll post ...

  1. #1
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020

    Gravity pong!

    Hey,

    Gravity pong's my first game with graphics. Tell me what you think. If anyone wants the source i'll post it after some clean up ^.^.

    It's 3mb, coz of the graphics and music. http://www.geocities.com/nutshell_web/gravity_pong.zip

    By the way, can anyone tell me how to use gcc to statically link alleg40.dll to my exe?
    Last edited by Nutshell; 04-24-2003 at 07:46 AM.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    For some reason I can't download it.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    heh, thats really cool. i love the way the other paddle attacks you (looks like its trying to hump my leg ... lol) well done!

    the AI is good, just one suggestion. if it is my turn the other paddle simply moves right at me (despite where the ball is) so, when its my turn i just move to the opposite side of the ball as the comp paddle and the comp runs straight into the ball so i score.

    great game though.

    edit: also, it seems a little weird that you can hit the ball from above and reflect it upwards. still good work though!
    Last edited by Perspective; 04-24-2003 at 04:08 PM.

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    When using Dev-C++ as an IDE to statically link Allegro I define #define ALLEGRO_STATICLINK in one of my source files and put -lalleg_s -lgdi32 -ldxguid -lole32 -ldinput -lddraw -lwinmm -ldsound in the linker options.

    Hopes this helps.
    Don't you dare hit me on the head, you know I'm not normal.
    A Stooge Site
    Green Frog Software

  5. #5
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Thnx perspective

    XSquared maybe you have to copy/paste link? I'm not sure. Hope you can play though. Is anyone else havin the same problem?

    lambs4, it didn't work for me, it compiled but my exe is still not statically linked. Here's a scrnshot of what i did.
    Attached Images Attached Images  
    Last edited by Nutshell; 04-24-2003 at 08:23 PM.

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

    Re: Gravity pong!

    Originally posted by Nutshell
    By the way, can anyone tell me how to use gcc to statically link alleg40.dll to my exe?
    i have no idea if this works for dynamic libraries but here is an excerpt from the gcc man pages. use the -l option

    -llibrary
    Use the library named library when linking.

  7. #7
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    But i don't think that option does static linking, i only use it for -lalleg.

  8. #8
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Replace -lalleg with whats in the linker option. I use dev-c++ projects so the options after slightly different.

  9. #9
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Nope, hope you can make sense of the following list of errors :
    Attached Images Attached Images  

  10. #10
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Now try putting #define ALLEGRO_STATICLINK at the top of the file. Besides that you have it setup as I have.
    Don't you dare hit me on the head, you know I'm not normal.
    A Stooge Site
    Green Frog Software

  11. #11
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Wow thnx man, i got it .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Platform game gravity problem
    By Akkernight in forum Game Programming
    Replies: 33
    Last Post: 02-22-2009, 12:10 PM
  2. The Story Of Pong (my game cookie)
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 05-16-2005, 11:14 PM
  3. pong
    By lambs4 in forum Game Programming
    Replies: 2
    Last Post: 06-02-2003, 04:00 PM
  4. gravity effecting velocity
    By Josh Kasten in forum Game Programming
    Replies: 4
    Last Post: 02-08-2003, 08:22 AM
  5. Battle Pong
    By DOlson in forum Game Programming
    Replies: 13
    Last Post: 01-08-2003, 10:32 PM

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