You are here: Start » Program Examples » Brick destroy (Game)
Brick destroy (Game)
The aim of this application is to show the possibilities of the interaction between the user and the application thanks to the User Input filters, and how to create a dynamic HMI with Region analysis tools and Image Drawing filters. For this purpose a simple game has been created - Brick Destroy. Please have a look at the application.
Macrofilter Main
Macrofilter ObstaclesCollisions
Macrofilter MovePalletWithClipping
Macrofilter HandleMovement
Macrofilter HandleCollisions
Macrofilter CheckForFailure
Macrofilter DrawScene(True)
Macrofilter DrawScene(False)
Macrofilter GameLoop
Used Filters
Icon | Name | Description |
---|---|---|
![]() |
DrawStrings_MultiColor | Draws strings (text) on an image with multiple colors. |
![]() |
CreateBoxRegion | Creates a rectangular region corresponding to a given box. |
![]() |
Loop | Put this filter into a task that should have a loop, but does not have any other loop generators (e.g. GrabImage). |
![]() |
TranslateRegion | Translates a region by a given number of pixels along each axis. |
![]() |
CreateIntegerSequence | Creates an arithmetic sequence of integer numbers. |
![]() |
DilateRegion | Making the region thicker or filling-in small holes within it. |
![]() |
CreateCircleRegion | Creates a circular region corresponding to a given circle. |
![]() |
DrawCircles_SingleColor | Draws circles on an image with a single color. |
![]() |
EmptyImage | Most typically used to prepare a background for image drawing tools. |
![]() |
RegionDifference | Computes a region containing pixels from the first input region but not from the second input region. |
![]() |
RegionBoundingBox | Computes the smallest box containing a region. |
![]() |
RegionIntersection | Computes the common part of two regions. |
![]() |
DrawRegions_MultiColor | Draws regions on an image with multiple colors. |
![]() |
ClassifyByRange | E.g. selection of the objects (e.g. blobs) whose associated values (e.g. area) meet the specified minimum and maximum requirements. |
![]() |
DrawRegions_SingleColor | Draws regions on an image with a single color. |
![]() |
GetKeyboardKeyState | Checks if the specified keyboard key is down and if it is toggled. |
Further Readings
- Blob Analysis - Article presents detailed information about the Blob Analysis technique.