I want this to all be easily editable, so all I have to do to add levels is create the text file and add it to the resource file. It is working for backgrounds of levels, but now I just need to do it...
Type: Posts; User: Brokenhope
I want this to all be easily editable, so all I have to do to add levels is create the text file and add it to the resource file. It is working for backgrounds of levels, but now I just need to do it...
I am working on converting my hand-coded int arrays for levels to putting them in a .txt file and loading them by resource. So this function will also handle looping through the file and then setting...
Wow, thanks a lot for the replies. I was really doubting this would work, but with the change above it is now working as it should:
HBITMAP loadResourcePicture(int resid) {
//...
Heh, that would have really simplified it. I think I have to try it now though, anyways.
For some totally obscure reason, the function only works when I call it in my LoadImages() function, which...
Thanks a lot for the help.
It is now working.
Function:
HBITMAP loadResourcePicture(int resid) {
// variables
I am now pretty sure the problem is in returning the HBITMAP.
I did some more testing trying to draw a rectangle to hMem, and still nothing displays.
I can also say the HBITMAP is not null...
...
Thanks again for the reply.
Alright, it looks better now, and I checked quite a few of the return values, and everything looks good... but when the background is displayed its completely red, and...
Thanks for the replies. I wrote up the function, but it isn't working. Fail pops up, and I am almost sure it is because my resource file is wrong. My function looks like this:
HBITMAP...
I am making a game in Win32 C++, however, I have ran into a problem.
So far I have 4 background images of levels, saved as .bmps, and it is adding about 8mbs to my program. That is way too much if...
Nvm...
Create a bool such as: lastCharWas and set it to false initially. Then when you find the first character you are looking for set it to true. Then when looking for the next character, if 'lastCharWas'...