Click to See Complete Forum and Search --> : Bitmap Background


Ace Blackwell
July 22nd, 2005, 11:58 PM
I'm new to using MFC/C++, here is my problem. I am currently working on a game. It is pretty simplistic in function but I am currently drawing the game and the playing field by drawing circles/squares/etc. Then it occured to me, I should be able to draw the field as a bitmap and add it in. Then if I did, would I be able to draw over it without damaging the bitmap?

So in short can anyone tell me if I can use a bitmap in MFC as my playing field and if I do can I use XOR/OR without damaging the bit map view?

Thanks in advance for the information
Ace

olivthill
July 23rd, 2005, 05:43 PM
In computer litterature, what you're doing is called moving "sprites" over a background. And, of course, you need to save the background before you place your sprites over it, so that you can repaint the whole field later.

Ace Blackwell
July 24th, 2005, 07:58 PM
Thanks for the responce. I haven't heard of sprites since my old Commodore 64 days.

So let me understand this, I should take a saved bitmap and put it as my background in my application. Then I will be able to draw "spites" on top of it with out distorting the original bitmap background?

Thanks again.

Ace