- Steam App
- Ozapell Basic (523410)
- Event type
- patch note
- Published
- 17 October 2016 - 18:05:27 UTC
- Source
- steam_community_announcements
Switch to graphics mode: MODE=1 SETMODE Assuming a bitmap image file called BITMAP.BMP is in the Documents -> Ozapell Basic folder: BITMAP=0 ARRAY=BITMAP FILENAME="BITMAP" BITMAPLOAD BITMAPWIDTH=WIDTH The array BITMAP now contains all of the pixels for the image loaded. RESULT will return the number of entries (pixels) in the array. WIDTH will contain the width in pixels for the image. ARRAY=BITMAP WIDTH=BITMAPWIDTH X=0 Y=0 ARRAYDRAW This will draw the image in BITMAP at the upper, leftmost corner of the screen (0,0). ARRAY=BITMAP WIDTH=BITMAPWIDTH X=0 Y=0 OWNER=100 ARRAYDRAWOWNER Draws the image in BITMAP at 0,0 plus every pixel drawn is associated with the value in OWNER. (Pixels given the a negative value are transparent and will not be associated with an owner value.) ARRAY=BITMAP WIDTH=BITMAPWIDTH X=0 Y=0 ARRAYDRAWCOLLIDE RESULT will contain the highest owner value associated with a...