Difference between revisions of "Gb.collideBitmapBitmap"

From Gamebuino Wiki
Jump to: navigation, search
(creation)
 
(No difference)

Latest revision as of 2014-09-05T23:01:10

Description

Checks pixel by pixel if two bitmaps are overlapping.

Syntax

gb.collideBitmapBitmap(x1, y1, b1, x2, y2, b2);

Parameters

  • x1: horizontal coordinate of the first bitmap
  • y1: vertical coordinate of the first bitmap
  • b1: first bitmap
  • x2: horizontal coordinate of the second bitmap
  • y2: vertical coordinate of the the second bitmap
  • b2: second bitmap

Returns

  • true: if the two bitmaps have at least one overlapping pixel
  • false: if the bitmaps are not overlapping

Example

See also