====== SPRITEBGHIT ====== [c64] [c128] [m65] Checks for sprite to background collision. ===== Function declaration ===== DECLARE FUNCTION _ SPRITEBGHIT AS BYTE (sprno AS BYTE) SHARED STATIC INLINE If the sprite specified by has previously come in contact with the background graphics, the function will return 255 (true), 0 (false) otherwise. Sprite number must be a number between 0 and 7. ===== Example ===== SPRITE CLEAR HIT DO ' LOOP UNTIL SPRITEBGHIT(0) PRINT "the airplane has crashed!" ===== See also ===== * [[SPRITE]]