Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created June 8, 2021 23:59
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/7b6d50ff2f6a32658cf7b147bb99fc80 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/7b6d50ff2f6a32658cf7b147bb99fc80 to your computer and use it in GitHub Desktop.
CTB 8-1
if (hitStatus(blackCenterX, blackCenterY)) {
// Game Over!
if (timer != null) {
timer.cancel();
timer = null;
}
// 結果画面へ
Intent intent = new Intent(getApplicationContext(), ResultActivity.class);
intent.putExtra("SCORE", score);
startActivity(intent);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment