|
-
Jan 20th, 2002, 04:52 PM
#1
Thread Starter
Junior Member
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?
-
Jan 21st, 2002, 01:30 AM
#2
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.
-
Jan 22nd, 2002, 07:11 PM
#3
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|