Update README.md

This commit is contained in:
Nick Walton 2020-05-23 22:01:52 -06:00 committed by GitHub
parent 071708a4be
commit afd044d0b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,9 @@ Called each time the player gives an input and has the opportunity to modify tha
Called each time the model generates an output and has the opportunity to modify that output. Called each time the model generates an output and has the opportunity to modify that output.
### State ### State
The `state` variable can be used to store information that's persistent across function calls. The state.memory.context value will be added to the games memory if it exists The `state` variable can be used to store information that's persistent across function calls.
* The state.memory.context value will be added to the games memory if exists
* The state.message value will be displayed as a extra message in the game (if it exists)
### Console ### Console
`console.log("Some message")` will log messages that you can see in the scripting console `console.log("Some message")` will log messages that you can see in the scripting console