CodeBase - Tile Grabber Function

Return to the CodeBase listing

Category: Complete Applications

Version: 1.0

0
0

Information

Uploaded: 28th Jul 2007 12:48

Modified: 1st Jan 1970 01:00

Author:  darknut

Summary

This function grabs tiles out of a bitmap and assigns a number to them according to the order they are arranged in the source bitmap. It loads them into memory by get image and then you can just draw the tiles wherever using paste image.

Full Description

This function grabs tiles out of a bitmap and assigns a number to them according to the order they are arranged in the source bitmap. It loads them into memory by get image and then you can just draw the tiles wherever using paste image. You just pass the filename of the source bitmap and how many tiles you want to grab as parameters. The function is completly self contained except I use a global constant to determine the TILESIZE. You can change this by creating a tilesize parameter. Just thought I would post this in case it was handy to anyone else.

Comments

No comments yet.