map blitting problem

This is a discussion on map blitting problem within the Game Programming forums, part of the General Programming Boards category; I am working on an engine for my RPG in C++. I'm having some seriou problems with the algorithm for ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    305

    map blitting problem

    I am working on an engine for my RPG in C++.
    I'm having some seriou problems with the algorithm for showing map that is bigger than the screen. I need to get it to work so the character can walk off the screen and the right screen will pop up. I have the data of the map stored in a double vector or whatever that's called with map[height][width], so map[10][5] would be 5,10 (x,y).

  2. #2
    Aran
    Guest
    make a back-buffer that stores the map in an array and then just display a part of the back-buffer by printing its contents to the screen.

    something like that should work.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    305
    hmm ... not exactly what i was looking for. i have the map stored in a vector of vectors. thanks anyways .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. String, Pair and Map Problem
    By dream_noir in forum C++ Programming
    Replies: 3
    Last Post: 02-19-2009, 06:46 PM
  2. Class design problem
    By h3ro in forum C++ Programming
    Replies: 10
    Last Post: 12-19-2008, 08:10 AM
  3. Creating a map engine.
    By suzakugaiden in forum Game Programming
    Replies: 11
    Last Post: 06-21-2005, 05:06 AM
  4. problem with a map iterator
    By anykey in forum C++ Programming
    Replies: 17
    Last Post: 04-29-2005, 11:49 PM
  5. Problem with my file opener
    By kzar in forum C Programming
    Replies: 7
    Last Post: 04-20-2005, 04:20 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21