Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created June 8, 2021 00:50
Embed
What would you like to do?
CTB 5-6
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