Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created June 10, 2021 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeforfun-jp/c7980c89d9afe62ad17f6f29a19e72aa to your computer and use it in GitHub Desktop.
Save codeforfun-jp/c7980c89d9afe62ad17f6f29a19e72aa to your computer and use it in GitHub Desktop.
CTB 12-2
screenWidth = size.x;
screenHeight = size.y;
boxSpeed = Math.round(screenHeight / 60f);
orangeSpeed = Math.round(screenWidth / 60f);
pinkSpeed = Math.round(screenWidth / 36f);
blackSpeed = Math.round(screenWidth / 45f);
orange.setX(-80.0f);
orange.setY(-80.0f);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment