- Steam App
- Ozapell Basic (523410)
- Event type
- patch note
- Published
- 2 February 2017 - 14:46:43 UTC
- Source
- steam_community_announcements
Previously, each graphic tile or sprite needed to be loaded into its own array. This limited working with large numbers of tiles or animations. ARRAYDRAWTILE works like ARRAYDRAW for drawing the content of an array to the graphics screen except with three additional variables. TILEWIDTH and TILEHEIGHT are used to specify the size of each tile or frame. TILEINDEX is used to specify which tile to draw. Ozapell Basic can determine the index based on any image layout loaded. The image could contain a row of tiles, a vertical column of tiles or a two-dimensional page of tiles. TILEINDEX begins in the upper, left corner as 0. The next tile to the right is 1, etc. until the next row. The leftmost tile of the next row will be the next index. Example program assuming a bitmap image called tilepage.bmp is in the Ozapell Basic documents folder: REM LOAD TILEPAGE.BMP INTO IMG ARRAY IMG=0 FILENAME="T...