My first game - complete!

This topic is 4868 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hi all, Well I started making a side-scroller, thinking I could skip easier games. Realised after about a day that it wasn't going to happen, so I aimed lower it a 2-player pong clone called "Crazy Balls". An hour or so of planning, 2 days of coding and 2 hours of testing/optimising/tweaking later I have this humble offering: Download Site See what you think - I have learnt a lot from this small project. But Im sure you guys could give me some suggestions for improvements, etc. Download it and have a go! Thankyou! :) [EDIT] Controls (almost forgot): Q - move left paddle up A - move left paddle down SPACE - launch ball UP_ARROW - move right paddle up DOWN_ARROW - move right paddle down First player to ten points wins! [EDIT 2] www.technation.000k.net has reviewed this game and given it 70%! [Edited by - beebs on August 19, 2004 4:54:55 PM]

Share on other sites
I think thats pretty good for a first game. I'm still working on my first game, but good job. I'm just wondering what API did you use? And maybe you could polish up the game, so you can add a title screen and things like that. Maybe even add one player or two player so you can either play againt the computer or your friend. But still good job.

Share on other sites
Thanks. I agree it could do with an intro screen, a menu, maybe some sound effects. In fact, Il start on that now! I used the DirectX API.

What are you making as a first game?

Share on other sites
I'm working on a small text-based RPG. Something I can complete in about a week or two. I'm using it to learn all the things I know in C++ and the game helps me out in learning a lot about data structures and how to implement them.

After this I'm planning on moving into windows and DirectX and I'm going to make my own pong clone. I pretty much have everything planned out for that to. I just need to know how to draw everything LOL.

Share on other sites
Very nice, beebs; well done! Only thing I'd say is that perhaps the ball moves a little quickly, compared to the rate of the paddles. Minor thing really.

What was said about the intro screen stands true. Perhaps if you made one, it would give you more of an idea of how all the main game elements interact together, in terms of states.

What about coming up with the AI for the second player as well, and releasing that as a different version? Or, better yet, make a menu screen with a choice of 1 or 2 players.

Again, well done. [smile]

-hellz

Share on other sites
Quote:
 Original post by hellzOnly thing I'd say is that perhaps the ball moves a little quickly, compared to the rate of the paddles. Minor thing really.

Its things like that that I want commented on! Thanks!

And yeah 1 player, where the paddle tracks the y-value of the ball, but the paddles speed will limit it from being unbeatable. God, this thing writes itself!

It needs background music for the main menu, perhaps a looping MIDI, and some sound fx for the ball collisions.

Thanks again!

Share on other sites
If you want free sounds, check out FlashKit. Although the site is primarily designed around helping the Flash community, there's bound to be some loops in there that you can use for your game(s). They're mostly in .wav or .mp3 format.

Hope that helps,

-hellz

Share on other sites
very good, i'd second with the ball speed thing. Id also say that maybe you could get rid of some of the 0's for the scores. I think it might look better instead of having 00000004 just having 4 or maybe 04 for the score.

Anyway keep up the good work!

Share on other sites
lol, I was just coming back to post that same point, grekster. Totally agree. Does seem a little strange to have all the 0's there. [smile]

-hellz

Share on other sites
Absolutely... seeing as the maximum score is 10 :)

Share on other sites
Arrrr, make it time-based movements!
I can make 10 points in 1 second since the ball is moving so fast ;)
It's unplayable here.

Share on other sites
OK. Does anyone have any suggestions to locking the frame rate to say, 30? Basically I have a loop that calls Game_Main_Proc();

Share on other sites
I think you could do something like:
do{//some code herestart_time=GetTickCount();//some extra code herewhile((GetTickCount() - start_time) < 33);

I think you do someting similar to that. Or so I read. I can look it up and correct myself unless someone here will do that for me.

Share on other sites
Il definitely look that up thankyou. But why '33'? Is that in milliseconds btw?

Share on other sites
Ya. Sorry i forgot to mention that its all in milliseconds and 33 milliseconds is about 30fps.

Share on other sites
Very nice! I have yet to complete my own pong clone :)
But it is too fast! I can't really play it because it goes so quick!

Thermo

Share on other sites
GetTickCount() returns milliseconds, so 33 would lock it at 30 fps or so.

33ms = .033s
.033s * 30 = .99s
so 1 frame should take up 33 ms or so if u r shooting for 30 fps

Share on other sites
Don't lock the FPS. Look into frame-rate independent movement. The basic idea is that you measure the amount of time the previous frame took (in seconds) and multiply the next frame's movement by that delta. Locking the frame rate is asking for trouble.

Share on other sites
Hey man, post the source!! :)

Share on other sites
When I have fixed this frame rate problem I will write a tutorial which takes you through making this game. This will a) hopefully make me learn more and b) help people who don't really 'get' putting it all together. Il put a link in this beginners forum so if you want the source look for that soon (tday, tmoro).

Share on other sites
Good Job beebs,
its always better to start projects ou can finish rather than trying to make a MMORPG your first try.

Share on other sites
very good, but very hard to play by myself ;-). maybe put in some AI?? it wouldnt be too hard. and dont worry about not being able to do the side scrolling platformer. those types of games are very difficult. when i went to my summer workshop at Digipen, we used some software called ProjectFUN. its a very complex game making thingum, and is very good for games. but even with it, making a platformer is very hard. having to deal with collision, jumping, all that stuff is very difficult. my teacher as a matter of fact was making a Mario clone using FUN, and i sat with him for like an hour one time just watching him work on it, and i cant tell you how many problems he ran into that were a pain to deal with

Share on other sites
Thats awesome. Pong is the ultimate first game to create! Your version has a very nice feel to it. The only thing I didn't like was the ball speed. Other than that, keep up the great work!

- Stephen

Share on other sites
Thanks! Im really pleased that people like it... Im working on a single player mode now with AI, and also a menu system. Im thinking of something like this for AI:

etc.

It just needs polishing really after that - some sound, tweak the ball speed, lock the frame rate (apparently it went too fast on some comps).

Thanks again!

Share on other sites
Nice work for a first game. Have you considered placing breakable blocks in there so it is like a breakout/pong hybrid?
That would be an interesting twist.

Pete

Share on other sites

This topic is 4868 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Create an account

Register a new account

• Forum Statistics

• Total Topics
628754
• Total Posts
2984514

• 12
• 25
• 12
• 10
• 17