Description Usage Arguments Value Author(s)
Detects whether a proposed change in the active piece will cause a collision in the background
1 2 | detectCollision(values, xChange = 0, yChange = 0, rotateClockwise = FALSE,
rotateCounter = FALSE)
|
values |
reactive values object with current piece and bg information |
xChange |
proposed x location change |
yChange |
proposed y location change |
rotateClockwise |
(logical) whether to rotate the piece clockwise |
rotateCounter |
(logical) whether to rotate the piece counter clockwise |
(logical) whether a collision will occur
Jason Waddell
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.