I made a simple game with C++, help me test it / see how high a score you can get
17 replies, posted
So, I recently made a game very similar to what is possibly the most famous game of all time, Pong. [B]NOW before you close the tab[/B] and think "pong's boring shit", you may as well give it a try, it's only 1mb :buddy:
You may also think "Oh what's the big deal, can't be very much work to make a pong game". Well C++ isn't some game maker shit, and this isn't some simple game with no menu and crap, it's 1443 total lines of code and about 20 or so hours work spread over 4 days. I've found it to be quite addicing :P
Rather than playing "whoever gets X score first wins", my game has a life system. Your final score is the number of times you score against the opposition before you lose all 3 of your lives.
As well as this, the ball (as in most games) gets faster thoughout the round, but also the enemy gets faster every time you score.
Bouncing the ball off the top of the paddle makes it go up more, bouncing it off the bottom makes it go down more. Bouncing it off the middle will make it bounce off normally.
Info, Screenshots, Video, and Download here:
:siren:[B][url]http://jallenbah.co.uk/pong.php[/url][/B]:siren:
And I'll put the screens here too:
Fancy animated menu
[img]http://i45.tinypic.com/ejtmo4.jpg[/img]
The game itself
[img]http://i48.tinypic.com/rk56p1.jpg[/img]
The game paused (press Esc)
[img]http://i47.tinypic.com/e8a45d.jpg[/img]
The highscores (the top 10 are saved with the date + time)
[img]http://i48.tinypic.com/2d9bj1h.jpg[/img]
[highlight]If you find any bugs/ problems or have any suggestions, please let me know.[/highlight]
Hoping this thread doesn't flop (that's always embarassing) but if it does, then it does.[B]
So facepunch, what score can you get?[/B]
Not bad.
Could you point me in the direction of a games tutorial?
[QUOTE=Sickle;22899173]Could you point me in the direction of a games tutorial?[/QUOTE]
[url]http://www.facepunch.com/showthread.php?t=700269[/url]
Go with C# / C++
You will be programming boring text applications for 3-4 months, maybe longer, maybe (if you work hard) shorter, and then you can move onto things like SFML/irrlicht (C++) or XNA (C#)
It's not easy and you won't get far unless you find programming fun.
[QUOTE=Jallen;22899216][URL]http://www.facepunch.com/showthread.php?t=700269[/URL]
Go with C# / C++
You will be programming boring text applications for 3-4 months, maybe longer, maybe (if you work hard) shorter, and then you can move onto things like SFML/irrlicht (C++) or XNA (C#)
It's not easy and you won't get far unless you find programming fun.[/QUOTE]
I find it fun, and I'm doing text based shit in C++ using the command line and using Code::Blocks as my builder/compiler. Also thanks, and your pong game is sweet.
Its pong. I mean, pong. Couldnt you add weapons or some shit like that? Then call it an indie gae, get hired by valve and make millions o dollarz. Call it garry's pong.
[QUOTE=Numidium;22899342]Its pong. I mean, pong. Couldnt you add weapons or some shit like that? [/QUOTE]
You try programming 1000+ lines of code, then.
Cmon im just giving the ideas.
[QUOTE=Sickle;22899382]You try programming 1000+ lines of code, then.[/QUOTE]
1000 lines of code is nothing. Absolutely nothing.
Mmm battle pong's already been done. This project was more of a challenge for myself to make something really high quality, no matter how simple. I wanted it really polished and presentable.
I think as far as large changes to gameplay go, I'm going to pass mostly (that doesn't mean don't make suggestions!) because I have other projects on the go e.g. this editor for a puzzle game I'm working on.
[url]http://i49.tinypic.com/16kp5xw.jpg[/url]
[editline]02:55PM[/editline]
[QUOTE=_Kilburn;22899486]1000 lines of code is nothing. Absolutely nothing.[/QUOTE]
Nothing compared to mainstream games and software, but it's still a good amount of work put in.
[QUOTE=Jallen;22899567]Nothing compared to mainstream games and software, but it's still a good amount of work put in.[/QUOTE]
Hah, sorry it wasn't directed towards you, I only noticed later that yours has bit more than 1000 lines.
I meant that once you've started making a fairly serious project, 1000 lines is really nothing. Once you have the base done, you can add weapons and stuff to it, and you'll reach 2000+ lines of code without even noticing. :v:
Great graphics; Computer could be smarter, it was pretty easy to beat... But still a great idea with the lives!
[QUOTE=Elements;22900752]Great graphics; Computer could be smarter, it was pretty easy to beat... But still a great idea with the lives![/QUOTE]
Thanks :D
Yeah, the computer is really slow and stupid to begin with, but as your score increases it gets harder and harder to beat. Once your score reaches about 25, it starts to get pretty damn hard to score.
You should release the sourcecode so people can mod it
Sorta reminded me how The Nameless Mod had Pong in it.