Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created September 6, 2020 07:11
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 flushpot1125/160dfa2139f904485aefd59b47cbc436 to your computer and use it in GitHub Desktop.
Save flushpot1125/160dfa2139f904485aefd59b47cbc436 to your computer and use it in GitHub Desktop.
export function addScore(): void{
colliedcnt++;
blockCountMessages.text="blocks"+ colliedcnt+"/8";
if(colliedcnt == 8){
StateChange(State.GAMECLEAR);
showMessages("Congratulations!! CLEAR!!Reload to play again");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment