detectCollision: Detects whether a proposed change in the active piece will...

Description Usage Arguments Value Author(s)

Description

Detects whether a proposed change in the active piece will cause a collision in the background

Usage

1
2
detectCollision(values, xChange = 0, yChange = 0, rotateClockwise = FALSE,
  rotateCounter = FALSE)

Arguments

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

Value

(logical) whether a collision will occur

Author(s)

Jason Waddell


openanalytics/poissontris documentation built on May 22, 2019, 12:54 p.m.