Results 1 to 3 of 3

Thread: 2D Tile Engine

  1. #1

    Thread Starter
    Junior Member Ruskin's Avatar
    Join Date
    Jan 2002
    Location
    Michigan
    Posts
    18

    2D Tile Engine

    OK there is alot of crap on this site about tiles...
    You would think I could find my answer but I cant.
    Its probably because I am retarded we'll see.

    I want to create a very large 2D map of 64x64x8 bit tiles say
    1000x1000. I keep all information like player locations and
    hex types in an array and only blit what can be seen by the
    player.

    Smaller maps I backbuffer but if I get to large , about 100^2
    the buffer will not create. I blit one hex at a time to the buffer
    at start up and then scroll a picture box around.. of course only
    blitting to the screen from the backbuffer what is visible.

    How do you people do this?
    How do you scroll?

  2. #2
    Zaei
    Guest
    Your abck buffer should be the same size as your front buffer (the screen). You manually clip away stuff that isnt in that area. For instance, if your view rectangle(the screen)'s upper left corner is at tile 100,100 in the game world, and your screen can hold 16 tiles across, and 12 down, you only draw tiles 100-116,100-112 to the back buffer.

    Z.

  3. #3

    Thread Starter
    Junior Member Ruskin's Avatar
    Join Date
    Jan 2002
    Location
    Michigan
    Posts
    18
    Thanks Zaei

    I was putting all of the tiles in the buffer and
    then blitting them as necessary to the picture box.
    I am going to fix it nowwwwww

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width