Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
200sc authored Jul 17, 2017
1 parent 17bbb14 commit d709911
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ On linux, for audio, see [klangsynthese](https://github.com/200sc/klangsynthese)
This is an example of the most basic oak program:
```
oak.AddScene("firstScene",
func(prevScene string, inData interface{}) {}, // Initialization function
func()bool{return true}, // Loop to continue or stop current scene
func()(nextScene string, result *oak.SceneResult){return "firstScene", nil}) // Exit to transition to next scene
// Initialization function
func(prevScene string, inData interface{}) {},
// Loop to continue or stop current scene
func()bool{return true},
// Exit to transition to next scene
func()(nextScene string, result *oak.SceneResult){return "firstScene", nil})
oak.Init("firstScene")
```
See the [examples](examples) folder for longer demos.
Expand Down

0 comments on commit d709911

Please sign in to comment.