C++ game coding - Printable Version
-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: C++ game coding (/showthread.php?tid=79666)
C++ game coding by Reaper on 12-05-2007 at 08:16 PM
I'm making a game for my university course as its one of my courseworks. Our lecturer has created a basic 2D games engine for us to work on. I'm remaking the popular game Breakout.
I'm having a bit of trouble though with collision (mainly) and being able to duplicate sprites.
One problem is that when the ball hits a brick, the brick will disappear but the ball won't bounce of the brick and it just continues its path. Also, the ball won't boucne off the player pad.
Another problem is that I don't want the ball to bounce off the bottom edge of the screen otherwise the player won't lose any lives.
Lastly, I want to be able to copy sprites. At the moment I can't do it not even by making a new sprite.
I've attached the file with all the header and source files. Open the project and run the MyGame.cpp.
That source file is where the coding goes.
http://www.sendspace.com/file/xuocdv
(Link is a download to a zip file which contains source and headers files. Theres one .exe file in the debug folder)
|