GenTileSet


tileset = GenTileSet(imageFile$ { , tileWidth, tileHeight, name$ } )

tileset = GenTileSet(bitmap { , tileWidth, tileHeight, name$ } )

tileset

This function returns a new Game Engine tileset object. Tilesets are a special kind of bitmap. A tileset contains a number of graphic tiles which are used by the sprites. All the tiles in a tileset are the same size. Different tilesets may have a different size tile.

imageFile$

This is the path to the image file. Usually this will be a png file since they support transparency.

bitmap

Instead of using an image file, you may create a tileset directly from a bitmap. This may be a bitmap created at runtime.

tileWidth

The width of a tile in the tileset.

tileHeight

The height of a tile in the tileset.

If width and height are not specified the image file is assumed to be one big tile.

name$

Optional tileset name. If not specified the tileset name will be the name of the image file without the file extension.


Game Engine Overview







Become a Patron