Thread: Battle Pong

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    69

    Battle Pong

    I'm making this Pong game for a school project. I've gone completely overboard so far, and I'm not done it yet. The reason is so I can learn C++ and SDL, so I can make better games... Anyhow, I started programming on Monday, and it's now Saturday. The progress I've made thus far is that the game is a fully-playable pong game, with an ammo meter, secret balls that you can blindly cycle through on the menu screen, and pretty good AI. I used SDL briefly before this week, and I liked it, but all I really did with it was load a bitmap to the screen and get gamepad input, but now I know a lot better how nice it is to work with.

    Anyhow, here's a screenshot of my pong game in action:

    http://aslan.no-ip.com/~dana/screenshot.png

    So far, I haven't implemented proper sound code or the "bullets" yet. I'm thinking of making the bullets just freeze the players for a second, thereby allowing the ball greater chance to slip by. I'm running out of time on this project, as it must be completed by Monday morning. Eventually this game will be running on our Linux-based gaming console that we made as our technologist project. It's all game pad-driven, so I didn't have to worry about mouse or keyboard input. That was nice. Someday, in my spare time, I'll add that in though, so that everyone can play. At least I might.

    Anyhow, I don't know why I'm posting this here... I guess just because I felt like it. It's probably nothing near as advanced as most people here are working on, but it is my first C++ program that consists of more than one file, or 50 lines of code... I feel sorta happy about it.
    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

  2. #2
    Registered User
    Join Date
    Dec 2002
    Posts
    43

    Exclamation Send me that

    PLZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ.
    Send me the source code when your done to [email protected]
    Im trying to learn to make games but i need to right now learn how to use basic graphics...

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    nice .... good concept... lookin good, keep it up (now i maybe i can get some of the cash he makes muwhahahaha )

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    69
    Cash? You're gonna pay me? for a PONG GAME???

    u r cr8z
    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

  5. #5
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    in you i see a bright future. may the force be with you. im just saying that you should keep up the good work.

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    69

    Unhappy

    So does this mean you won't be putting any money in my PayPal account?
    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

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    no you are too old to train as a jedi knight. i am sorry. the council speaks (??). lol im broke. _I_ need the money.

  8. #8
    Registered User
    Join Date
    Jan 2003
    Posts
    8
    ho, if you can release the source code, please send it here: [email protected]

  9. #9
    Registered User
    Join Date
    Sep 2002
    Posts
    69
    I have set up a temporary URL, the source code isn't there yet, nor are the binaries, but they will be soon.

    I am not a Windows user, so I'm trying to compile the game at school with that hunk of junk Visual C++, but I don't know what I'm doing. It's so much easier in Linux to just run make and it does it... I guess to each his own.

    Anyhow, you'll know when the files are up, cuz I will take down the Files Not Up Yet warning.

    Anyway, hope that does it for now:

    http://aslan.no-ip.com/~dana/pong/

    UPDATE: You can get my current source from the site now. There aren't binaries yet though.
    Last edited by DOlson; 01-07-2003 at 12:38 AM.
    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

  10. #10
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    VERY cool, thanks for sharing the source! It will be immensely useful to me for learning practical SDL.

  11. #11
    Registered User
    Join Date
    Nov 2002
    Posts
    46
    just curious, what os is that? Im guessing its linux and kde or gnome as windowing thingy

  12. #12
    Registered User
    Join Date
    Sep 2002
    Posts
    69
    I use Linux and KDE, yes. I can't stand Gnome, myself, and I'm too lazy to set up Blackbox the way I like it again.

    I use KDE differently than most people do though... I don't have the little volume icon, the clipboard icon thing, and so forth. I don't even have the K menu on a toolbar (I just use the Windows key on my keyboard).

    My tasklist is along the left side of the screen, autohiding, starting at the top.

    I have two icon bars, one on the right, which holds mostly programming stuff and Gimp, and then one small one in the middle of the bottom of the screen with my Internet apps.

    My desktop has mostly only game icons (6x6 grid at the moment) and drive icons for easily mounting and unmounting them.

    I really like the command line for things like moving files, making archives, extracting archives, etc..

    Anyhow, that probably more than answers your question.

    Anyhow, I've updated the archive today with a fix to the script that gets the music, and I've added in the GPL license stuff, so if you have the old version, please update it.
    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

  13. #13
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    Yeah, the game looks great, when is it going to be finished?

    //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. #14
    Registered User
    Join Date
    Sep 2002
    Posts
    69
    Soon enough. But I've gotta add keyboard support and so on. I don't have too much time now that classes started again.

    I've put up a CVS repository, and all that jazz.

    http://battlepong.sf.net/ is the new site.
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 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
  2. plain pong
    By lambs4 in forum Game Programming
    Replies: 16
    Last Post: 10-10-2004, 01:49 PM
  3. pong
    By lambs4 in forum Game Programming
    Replies: 2
    Last Post: 06-02-2003, 04:00 PM
  4. The battle.
    By Sentaku senshi in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 03-25-2002, 05:28 PM
  5. God pong -update
    By gamegod3001 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-03-2001, 09:16 PM