-
-
Save codeforfun-jp/5eebec1eca500823af192ab865c41a3c to your computer and use it in GitHub Desktop.
CTB 5-6
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.setY(blackY); | |
// Pink | |
pinkX -= 20; | |
if (pinkX < 0) { | |
pinkX = screenWidth + 5000; | |
pinkY = (float)Math.floor(Math.random() * (frameHeight - pink.getHeight())); | |
} | |
pink.setX(pinkX); | |
pink.setY(pinkY); | |
// Box | |
if (action_flg) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment