HTML and CSS Reference
In-Depth Information
console . log ( message );
//add class/static function to class by assignment
ConsoleLog . log = console_log ;
//*** end console log object
< /script>
Example 8-9 added in the ConsoleLog object from the previous chapters. We will continue to use
this utility to create helpful debug messages in the JavaScript log window of the browser. This was
added for browsers that crashed when no console was turned on. However, this is a rare occurrence
in most browsers that support Canvas.
We will continue to explore the application state machine and then create one for our game
logic states in the upcoming section, Putting It All Together .
Search WWH ::

Custom Search