Search:

Type: Posts; User: Prevenge

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,111

    Thank you for the help! The vector of vector...

    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...
  2. Replies
    7
    Views
    1,111

    Problem with large arrays.

    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...
  3. Replies
    6
    Views
    4,160

    Thanks for the help everyone! Using...

    Thanks for the help everyone! Using SDL_DisplayFormatAlpha( loadedImage ) when I load the images solved the problem.
  4. Replies
    6
    Views
    4,160

    Thanks for the advice! I tried to increase the...

    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...
  5. Replies
    6
    Views
    4,160

    I think I understand what you mean, but I'm not...

    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...
  6. Replies
    6
    Views
    4,160

    SDL lag when blitting

    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...
  7. Replies
    4
    Views
    1,566

    Thanks for the help. Turned out I did another...

    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...
  8. Replies
    4
    Views
    1,566

    I just noticed a small mistake. Line 58 should...

    I just noticed a small mistake.
    Line 58 should be offset.x = (x%24) * 16
    Line 59 should be offset.y = (x/24) * 16
  9. Replies
    4
    Views
    1,566

    What is wrong with this C++ SDL code?

    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...
Results 1 to 9 of 9