What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » C++ game coding

C++ game coding
Author: Message:
Reaper
Veteran Member
*****

Avatar

Posts: 1393
Reputation: 23
35 / Male / Flag
Joined: Jun 2004
O.P. C++ game coding
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)

This post was edited on 12-05-2007 at 09:39 PM by Reaper.
12-05-2007 08:16 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On