Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / A new C++ Game: Bing-Bong

Author
Message
Sonic
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: UK
Posted: 9th Oct 2003 07:13 Edited at: 9th Oct 2003 07:17
As I've been playing around in C++ lately here's the first fruits, Bing-Bong, a fairly "complete" pong clone. It took around 3 evenings to do and just C++, no directX.

Its only 58K so give it a go - I'd be interested how it plays on your system

http://www.victory-road.co.uk/download/BingBong.zip

"My ignorance amuses me..."
http://www.victory-road.co.uk
MushroomHead
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 9th Oct 2003 13:01
Plays quite well, although in single player mode, the opposite player's bat jitters or sometimes the ball does it.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 9th Oct 2003 22:08
Not bad. Same as MushroomHead really. Player 2 computer player's bat too jittery.

Also, if you press RETURN during game get some very odd results.

Glad to see you quickly nicked the 'Sonic' name after I stopped using it a while back. I changed to spooky after some confusion with being sonic here and supersonic on RGT because there was already a sonic there and a sonicboom here! Am I right in thinking you were originally sonicboom?

If your mansion house needs haunting, just call Rentaghost!
Sonic
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: UK
Posted: 10th Oct 2003 01:22
Hey thanks for the comments guys - I also found a couple more Return key bugs causing weird redraw issues - amazing what leaving a "break" out of a switch case statement does to your logic!

Also Mr Auto Bat is now much lazier, not constantly adjusting his position (the jitter) and I swapped the "slice angle" so now you slice the ball on the other side of the bat to get more angle/velocity - seems more natural that way.

I think the game is much better now

I've updated the zip download above and would be happy if anyone wanted to take a look at the new version

@Spooky - yeah I was Sonic on RGT and SonicBoom here (wasn't allowed Sonic coz you had it!), I think you must have signed up for the DBPro forum on like the day they opened? lol. So does this mean we're related in some way? Great minds and all that eh? I see you're in the UK, I live in Hampshire at the mo are you local too? And I'm old enough to remember "Rentaghost" as well - everytime I see wotshername in Corrie I think of Mrs Popoff! LMAO!

"My ignorance amuses me..."
http://www.victory-road.co.uk
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 10th Oct 2003 02:27
It critically crashed my computer as soon as the ball hit player 2's bat and overheated my video card (in the 25 seconds before I could get to the power to shut it down)... no permenant harm done, but I don't think I'll be playing pong again any time soon

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.
Sonic
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: UK
Posted: 10th Oct 2003 02:45 Edited at: 10th Oct 2003 03:03
@Mouse OMG! you're kidding right?

I can only think that there is a bug in the proggy somewhere that just manifested itself particularly badly on your system. I'm really really sorry - it was supposed to be 5 mins of fun, not 10 mins of hang and re-boot!

Could you post up your system specs?

OK I just tested on a 200Mhz Win 98 spec and although it didn't crash the system, after a few seconds of play the moving sprites just dissapeared although you could tell (from the sounds & score) that the game was still running.

I have a feeling I'm learning the hard way here! lol

"My ignorance amuses me..."
http://www.victory-road.co.uk
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 10th Oct 2003 03:08
1ghz AMD Athalon;
ATI Radeon 9500 Pro;
384MB RAM.

It can sure handle pong . I couldn't imagine anything going wrong with a program that small so I just ran it. Chances are it's just some random error, some coincidence of little system settings that didn't like each other. I've had that happen with a couple other programs (most of them big games however) and it seems to be random.


My system is a real problematic one, I wouldn't worry about it .

I mean, as evidence... bump mapping in DBP is screwed (in a unique way) ; Unreal engine basically dosen't work ; shadow shading screws up... oh well, it's what I've got

--Mouse: Famous (Avatarless) Fighting Furball

A very nice %it, indeed.
Sonic
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: UK
Posted: 10th Oct 2003 03:23
Ok well thanks for letting me off the hook a bit there Mouse.

Frankly, I was advised not to use the Windows GDI API for drawing as it could be a little "unpredictable" but what the hell, DirectX could be added later, and it seemed to work just fine, or so I thought.

Thanks for testing it tho - it's been "interesting"

"My ignorance amuses me..."
http://www.victory-road.co.uk
Morales
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: - Please Select -
Posted: 12th Oct 2003 01:09
Hey sonic were are learning how to code in C++? Right now im
learning C++.net 2003 and its not to hard I just need a place to
learn how to do some 3d. If you can help thanks.
Im going to play your game to see how it is just cant unzip
it.
Great Knight
21
Years of Service
User Offline
Joined: 25th Feb 2003
Location:
Posted: 12th Oct 2003 01:17
Gotta like the music . Works fine, but computer is hard lol

AMD Atherlon 2400+ XP, 380 DDr memeory, ATI Radeon 9000 64 DDR, Windos XP home edition.
-----------------------And a Katana.
Sonic
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: UK
Posted: 13th Oct 2003 02:55
@Morales I'm not doing 3D in C++ yet - just playin around with some 2D games. I'd be interested to know what you're up to - maybe we could help each other

@Great_Knight Thanks "Scooby dooby dooo!" LOL - you gotta get the ball on the edge of your bat to get a load of "angle". Then you can get it past the computer opponent

"My ignorance amuses me..."
http://www.victory-road.co.uk
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 13th Oct 2003 05:52
after I bat the ball back and forth a couple of times the paddles and ball vanish but the game is still playing, the computer does very good when I can't see.

happens both fullscreen and windowed.

CTP
Sonic
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: UK
Posted: 13th Oct 2003 22:17
Quote: "after I bat the ball back and forth a couple of times the paddles and ball vanish but the game is still playing"

Are you using Win98 or ME?

"My ignorance amuses me..."
http://www.victory-road.co.uk
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 15th Oct 2003 05:27 Edited at: 15th Oct 2003 05:29
Hee,Hee
My monitor doesn't like your program in fullscreen mode.
(Sync out of range)

But I like it!
I'm learning C++ and so far I've mastered the cout command and thats it.

You have my respect

Oh, and BTW, My high score is 1 point! I rule!

The rock has rolled!
Morales
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: - Please Select -
Posted: 15th Oct 2003 05:54 Edited at: 15th Oct 2003 05:56
If your learning C++.net 2003 use this site
[/href]http://www.gametutorials.com/Tutorials/C++/Cpp_Pg1.htm[href]

this will show you how to do loops data all the things to know but no 3d.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 15th Oct 2003 20:27
Love the game That music!

Fishie says:
"Those who fail to prepare prepare to fail"
"Rule are for the guidance of the wise and the blind obdeniency of the fools"

Login to post a reply

Server time is: 2024-11-24 00:41:47
Your offset time is: 2024-11-24 00:41:47