Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Drawing For big 2D:maps

Author
Message
Great Knight
21
Years of Service
User Offline
Joined: 25th Feb 2003
Location:
Posted: 30th Nov 2004 04:51
This drawing way will draw to the screen only what is require. Say you have a map that is 5000,5000 sprites/images, it will take while to load it over and over again if it is that big. This alogrithm will only draw only what is needed to the screen. So your game/program will draw the level in segments and not as whole as some games do.

-Alogrithm-


Example code that uses it


TO DENY MY WISDOM FOR ANGER
TO BREAK THE SCREAM OF THE SILENT FOOL
TO BE A KNIGHTRIDER OF DOOM... OF DOOM!

Login to post a reply

Server time is: 2024-11-23 16:56:13
Your offset time is: 2024-11-23 16:56:13