-
-
Save codeforfun-jp/90cce758fe6321f31a298373a18718b8 to your computer and use it in GitHub Desktop.
CTB 6-7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Black | |
float blackCenterX = blackX + black.getWidth() / 2; | |
float blackCenterY = blackY + black.getHeight() / 2; | |
if (0 <= blackCenterX && blackCenterX <= boxSize && | |
boxY <= blackCenterY && blackCenterY <= boxY + boxSize) { | |
// Game Over! | |
if (timer != null) { | |
timer.cancel(); | |
timer = null; | |
} | |
// 結果画面へ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment