Browse Source

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

pull/1757/head
xuankaicat 3 years ago committed by GitHub
parent
commit
26ce4099be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      examples/web-compose-bird/src/jsMain/kotlin/main.kt

4
examples/web-compose-bird/src/jsMain/kotlin/main.kt

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

Loading…
Cancel
Save