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 / [DBP] Load a tilemap using memblocks

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 16th Jan 2010 19:28 Edited at: 16th Jan 2010 19:30
Intended for 32-bit resolutions.

Advantages to using this function instead of get image:

- It's faster than "get image"
- The loaded tilemap can be larger than the screen resolution





"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 18th Jan 2010 16:51
Usefull stuff as always
You should put this in to the codebase !
I really suck at memblocks so should come in handy later on.
Quote: "The loaded tilemap can be larger than the screen resolution"

And this is extremely usefull
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Jan 2010 11:40
If you don't mind, I would like to promote my ImageKit plug-in which can be found here.

You can extract the tile from the image using
copy image Image Number, Source Image Number, left, top, right, bottom.

Some time around January the 30th, the plug-in will be updated so you can work with render targets too, which allows you to use the GPU to have faster results.

Cheers!
Sven B

Login to post a reply

Server time is: 2024-04-19 03:56:51
Your offset time is: 2024-04-19 03:56:51