Two new games

This is a discussion on Two new games within the Game Programming forums, part of the General Programming Boards category; I made two new games, one of them is a sweet volleyball game and the other is some kind of ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    249

    Thumbs up Two new games

    I made two new games, one of them is a sweet volleyball game and the other is some kind of attack of the green squares game. Unfortunately volleyball is only two player...but it's still fun with one. Maybe later I'll incorporate some AI. I was inspired to make this game because I once played an old school kick-a$$ volleyball game but forgot the name, it was also pretty fun.
    I'm not sure how to "combine" the two games so-to-speak using two different .h files since most of the stuff is not part of a class, and since I made each one completly separately it's kind of hard to mix the two into once nice little program. Anywas, please check them out and tell me what you think. I'm actually pretty impressed by them, as I didn't think they would turn out this well. The only major problem is with the bitmaps and such. Like in the green square program, instead of having one graphic, I have multiples of the same one since I was kind of uneasy with this whole idea of how to "blit" them (sorry if I'm not using the right terminology here ) You can imagine how that's pretty lame. I also hope the FPS isn't too fast/slow for anyone, since I have a pretty fast PC and it runs perfect on that. Anyhow, I love feedback from you guys, so the number of downloads should be the number of replies! Cmon, everyone has to participate and post their opinion (I don't care if you think it's the worst game in the world)!

    UPDATE:
    Final volleyball version #2 Took out the other game cause it was crap. Now shows the FPS and has a timer. Also should have the speed problem completly fixed. :P
    Note: Option 1 = one player, Option 2 = two players. lol forgot to change that, whoops.

    Allegro dll: http://click.alltheweb.com/go2/2/atw...se/alleg40.dll
    Attached Files Attached Files
    Last edited by funkydude9; 06-29-2003 at 01:26 PM.
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

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

    I managed to win the 'attack of the green squares' game with two lives remaining, and the volleyball looks pretty cool as well (just needs AI :P).

    Seems to be some collision-detection issues, though. Dunno about the 'green boxes' game, but in Volleyball, I noticed the ball would bounce when it hadn't actually touched the player (though it was pretty close). I havn't looked at your code, but possibly the bounding-box (or whatever you're using) for the players is too wide.

    Good job
    "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++

  3. #3
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    I get an illegal operation when I try to open either one.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  4. #4
    Registered User
    Join Date
    Mar 2002
    Posts
    249

    Thumbs up Update

    New update!
    Here are some few changes I made in Volleyball:

    - AI included (with custom difficulty setting)
    - Bug with losing two many lives fixed
    - Collision detection improved (with wall)
    - Added an option to play with or without rules (see readme)

    JaWiB, did you get the allegro dll? I posted the link in my previous post. That's most likely why your're getting that. Try this updated version and see if you're still getting the same message.

    Beih, all you have to do to make it harder is increase the max_enemy constant.
    Attached Files Attached Files
    Last edited by funkydude9; 06-26-2003 at 07:19 PM.
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

  5. #5
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Am I blind or is there no attack of the green squares game link?
    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

  6. #6
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    Originally posted by XSquared
    Am I blind or is there no attack of the green squares game link?
    Yeah, you're blind. Just kidding, I accidentally put the volleyball update in the first post, thereby overwriting the square game. But I fixed it now.
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

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

    Smile

    Nice update . Skill-10 on Volleyball seems pretty much impossible to beat (that, or I suck at these types of games ).

    Seems to be a problem with the menu, though - could just be the laptop I'm using ATM, but the menu text (the title, and the 1-player / 2-player) disappears when I move the ball.

    Beih, all you have to do to make it harder is increase the max_enemy constant.
    Yeah, but I gotta re-compile to do that...and I'm pretty lazy, so I'm not gonna bother . Put it in a menu, like the skill level in Volleyball.

    oh, and it's Bieh, NOT Beih! Sorry, but I hate it when people spell that wrong (and quite a few do )
    "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++

  8. #8
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    ^is that your real name? *snicker*

  9. #9
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83
    No - but some people have been known to misspell my real name 'Pual' instead of 'Paul' :/
    "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++

  10. #10
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    Bieh, when you say the text dissapered, do you mean it "blinked" or did you see it and then it suddenly went away? See if this fixed it:

    IMPORTNAT UPDATE!
    This is *possible* fix for anyone who has been having speed issues with the game (ie too slow). Just overwrite the .cpp file. Sorry for so many updates
    Attached Files Attached Files
    Last edited by funkydude9; 06-26-2003 at 10:17 PM.
    Well, there are a few things wrong with your code:

    1) It does not work.
    2) It does not work.
    3) It does not work.

    Hope this helps.

  11. #11
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    It's not that I don't have the dll, since it would say "a required dll..." plus, i downloaded it Still get that error...oh well
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  12. #12
    Registered User Bieh's Avatar
    Join Date
    Sep 2002
    Posts
    83
    Bieh, when you say the text dissapered, do you mean it "blinked" or did you see it and then it suddenly went away? See if this fixed it:
    Fixed . Nice job .

    btw, it disappeared when I moved the ball to select something else, and reappeared a frame or so later - but not any more .

    EDIT: 500 fps
    Last edited by Bieh; 06-28-2003 at 03:03 AM.
    "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++

  13. #13
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336
    There is a problem with the link to allegrp4.dll, it downloads as allegro4.dll.exe and when renamed it doesnt see mto be the real allegro4.dll since it causes your game to crash.
    Give me a bad reputation!!!

  14. #14
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336
    Ok, I went to allegro.cc and got the dll and played your game. It is quite possibly the kewlest game ever. though simple it is some how addictive. I did notice it doesnt follow the exact rules of volleyball but it is fun anyways.
    Give me a bad reputation!!!

  15. #15
    Registered User
    Join Date
    Mar 2002
    Posts
    25
    Yes, for such a simple game it was a little addictive

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. When done right, PC games are amazing
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 08-13-2008, 06:32 PM
  2. Violent video games?
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 58
    Last Post: 04-26-2006, 02:43 PM
  3. Hooked on old games...... still
    By Stoned_Coder in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 05-30-2005, 03:46 PM
  4. Video Games Industry. 5 years left.
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 12-10-2002, 10:52 PM

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