Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 522 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 522 Bytes

BRYTE: Mini-Games

This repository contains the code for the games in BRYTE. Contributions are welcome! Feel free to open pull requests and submit your custom games for approval.

Sending the Final Score to BRYTE

All games must send their final scores back to BRYTE. You can do this using the following function:

const androidInterfaceExists = typeof AndroidInterface !== 'undefined';

function sendGameOverUpdate(score) {
  if (androidInterfaceExists) {
    AndroidInterface.onGameOver(score);
  }
}