diff --git a/documentation.html b/documentation.html index 10521206..461ee5c6 100644 --- a/documentation.html +++ b/documentation.html @@ -55,8 +55,14 @@
These functions will then be called by the game during the challenge.
- init will be called when the challenge starts, and update repeatedly during the challenge.
+
+ These functions will then be called by the game during the challenge. +
++ init will be called when the challenge starts. elevators will be an array of Elevator objects, floors will be an array of Floor objects, and this will be the object you declared. +
++ update will be called every frame the challenge updates, approximately 60 times per real-time second on most computers. dt will be the number of in-game seconds that have passed since the previous update (not necessarily an integer!), elevators will be an array of Elevator objects, floors will be an array of Floor objects, and this will be the object you declared.
Normally you will put most of your code in the init function, to set up event listeners and logic.