gb.collideBitmapBitmap

From Gamebuino Wiki
Revision as of 2014-09-05T22:01:10 by Rodot (talk | contribs) (creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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