Fix web-compose-bird example too many obstacles(#1493) (#1747)

This commit is contained in:
xuankaicat
2022-01-26 21:17:05 +08:00
committed by GitHub
parent b71a5161a7
commit 26ce4099be

View File

@@ -78,10 +78,8 @@ fun main() {
val isBird =
!isTube && columnIndex == ComposeBirdGame.BIRD_COLUMN && rowIndex == gameFrame.birdPos
if (isTube || isBird) {
// if it's either a tube node or bird, check it
checked(true)
}
// if it's either a tube node or bird, check it
checked(isTube || isBird)
if (!isBird) {
// if it's a bird, enable it. (to change to blue color)