My first good C++ project
I think my first C++ project is finally good for showing to the public. It uses SDL and I built it with Visual C++ .net. Just a simple Pong clone, nothing special. It's at http://home.comcast.net/~joobot/Pong.zip P.S. Is teher a way to shrink the amount of DLLs?
Just a few things -
1. No there is no way to reduce .dlls other than by not using them :(
2. I suggest changing the move keys for the red paddle - maybe 'w' and 's', but ctrl and shift are kind of awkard
3. Does sound work? I could not get it to work on mine.
4. Awesome game icon [wink]
Other than that, good job! Finishing a game is certainly an accompishment, what you should try now is expanding your game. Add a score counter, AI, maybe different gfx. Stuff like that to spurce up your game. Great work!
- Drew
1. No there is no way to reduce .dlls other than by not using them :(
2. I suggest changing the move keys for the red paddle - maybe 'w' and 's', but ctrl and shift are kind of awkard
3. Does sound work? I could not get it to work on mine.
4. Awesome game icon [wink]
Other than that, good job! Finishing a game is certainly an accompishment, what you should try now is expanding your game. Add a score counter, AI, maybe different gfx. Stuff like that to spurce up your game. Great work!
- Drew
Which DLLs are the ones in question?
You can try using UPX to make them smaller, if it's the download size you're concerned about.
You can try using UPX to make them smaller, if it's the download size you're concerned about.
There are programs which will pack dlls into the exe file, but usually using one of these violates the license of most lgpl type libs (ie SDL).
I've made W and S for the red paddle now and changed the Icon a little. i am now at version 5.0.1!!! Get it at teh same place.
P.S. Audio shoudl work, It works on mine.
P.S. Audio shoudl work, It works on mine.
Very well done. Any chance to having a look at the source? Nice job with the physics.
K here it is. Plz don't scold but rather constructively critisize me on it. I know I have no functions.
get it here at http://home.comcast.net/~joobot/pong.cpp
[Edited by - Yamian on December 24, 2004 1:09:19 PM]
get it here at http://home.comcast.net/~joobot/pong.cpp
[Edited by - Yamian on December 24, 2004 1:09:19 PM]
holy maceral, normally i would be appauled at someone writing a whole program with no functions (unless the point was to prove they could) ... but somehow I'm just impressed ... wow.
Keep up the good work, and keep enjoying it.
BTW, I wrote in GWBASIC when i was a kid, and didn't know there was such a thing as GOSUB (the equivelent to making function in GWBASIC) ... so I wrote an entire D&D character editor using no subroutines, just conditional gotos ... man it was hard.
Keep up the good work, and keep enjoying it.
BTW, I wrote in GWBASIC when i was a kid, and didn't know there was such a thing as GOSUB (the equivelent to making function in GWBASIC) ... so I wrote an entire D&D character editor using no subroutines, just conditional gotos ... man it was hard.
But I forgot to say, the day I found GOSUB (after more than 6 months of programming) I felt a light go on ... suddenly it was true that "it shouldn't be this hard!" And it wasn't.
Until many years later the first time I tried to write a zork clone in pascal ... very hard for me at the time (would be simple now), but very rewarding.
Until many years later the first time I tried to write a zork clone in pascal ... very hard for me at the time (would be simple now), but very rewarding.
Wow thx for the congratulations.
If I were to make functions, shoudl i make my variables global or shoudl i pass stuff into the functions. I don't really see any reason for functions because everything is really only called once
Do you understand the physics?
P.S. I fixed the tab indentations because I originally worke don this in Dev-C++ which doesn't use tab but rather spaces, so it should be perfectly viewable without an IDE now.
If I were to make functions, shoudl i make my variables global or shoudl i pass stuff into the functions. I don't really see any reason for functions because everything is really only called once
Do you understand the physics?
P.S. I fixed the tab indentations because I originally worke don this in Dev-C++ which doesn't use tab but rather spaces, so it should be perfectly viewable without an IDE now.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement