Programmer be like...
```
void Update(){
if (hasTime){
Application.OpenURL("https://ldjam.com/events/ludum-dare/43/reactor-overdrive");
StartCoroutine(playGame());
} }
//Play game function. Used to distribute the game; Reactor Overdrive. TODO: Support extra game-types. //Sets up a coroutine to keep the viewer playing for a while.
private IEnumerator playGame(){
URL url = new URL("https://ldjam.com/events/ludum-dare/43/reactor-overdrive"); if(url.getGame().looksFun){
Application.Play();
yield return new PlayForSeconds(300f + Random.Range(0f, 1500f));
int awesomeness = Application.Rate();
ReactorOverdrive rd = new ReactorOverdrive(url);
//If terrible, destroy instance. Incredibly unlikely to arise, given the awesomeness of the game.
if(awesomeness <= 0)
Application.Close();
else if(awesomeness >= 1){
//Rate. Takes in a float value of number of stars overall.
rd.rate((float) awesomeness / 2);
//Handles sub-ratings, such as audio. Values are interpolated, based off overall rating.
rd.subRate(rd.rating);
if(rd.deservesFeedback && hasTime){
Human human = rd.getHumanPlayer();
rd.sendFeedback(human.generateFeedback());
if(rd.getAuthor().isAmazing)
human.follow("@justcamh");
}
}
} } ``` https://ldjam.com/events/ludum-dare/43/reactor-overdrive