Thank you for the help! The vector of vector thing worked amazingly well. And oogabooga, thanks for pointing out those 2 other mistakes, they have now been fixed as well.
EDIT: I also moved the...
Type: Posts; User: Prevenge
Thank you for the help! The vector of vector thing worked amazingly well. And oogabooga, thanks for pointing out those 2 other mistakes, they have now been fixed as well.
EDIT: I also moved the...
I am currently making a simple game using different tiles from an image file and placing them with a terrain generator. The terrain generator is based on the diamond square algorithm and I tested it...
Thanks for the help everyone! Using SDL_DisplayFormatAlpha( loadedImage ) when I load the images solved the problem.
Thanks for the advice!
I tried to increase the desired frame rate in the code, but what happens is that the frame rate seems to drop to around 10-20 FPS no matter how high I set it.
I've tried...
I think I understand what you mean, but I'm not sure how to actually implement it into the program. The erase part is what I have trouble with. How do I copy the bitmap back to the screen bitmap when...
I'm pretty new to programming and I have spent some time learning to use SDL in order to make a simple 2d game.
When I update the screen I blit the map/background and then I blit the moving things...
Thanks for the help.
Turned out I did another horrible mistake when writing the for commands. I had written > instead of < which I guess means that it was just skipped since b was actually false...
I just noticed a small mistake.
Line 58 should be offset.x = (x%24) * 16
Line 59 should be offset.y = (x/24) * 16
I'm new to programming and I've spent some time learning the basics of c++ and the basics of SDL. I've started to work on a little project of a 2d game engine. My goal is to make a 24x16 tiles room...