added a short timeout before user can continue to prevent accidental skipping of messages
moved the tutorial specific messages, card setup and desired play logic out of the scene object to allow re-use for other tutorials
fixed a copy + replace error (this -> currScene - replaced message text too)
reset the main frame timer after switching a frame - this stops the loop from thinking it's running behind if the setup took a while and thus running multiple iterations of the loop after loading
cleaned up menu code (inc. addition of comments) and made the menu system more flexible
updated resource loading to take both a source file paramter (without extension) and a comma delimited list of extensions ('ext1, ext2, etc') -- this allows the passing of various formats and handles formats not supported by a certain browser (for example, passing 'ogg, mp3' into a sound buffer on ie will skip the unsupported ogg and load the mp3 instead); updated resource loading based names (Tex -> Texture, Snd -> SoundBuffer
fixed the ability to start at the next player (clockwise) instead of the player (id 0)
updated resource loading due to changes in resource loading based names; added an initial delay if the ai is first to act in a game
fixed menu animation when some options are hidden; added support for individual card tutorial selection
updated resource loading due to changes in resource loading based names
updated resource loading due to changes in resource loading based names; added an initial delay if the ai is first to act in a game
class to handle rendering and interaction with elements relating to individual card tutorial menu options
updated to add more game modes (i.e., desired plays for more card's abilities)
removed unnecessary attribute settings and changed loaded event to 'oncanplaythrough'
'sound' class is now 'music' class -- sound is a shorter, more fire-and-forget audio object whereas music is longer with more control over playback; the playback code was rewritten to work more smoothly and consistently, adding ability to set time, only start playing when actually able, to fade out when stopping and allowing deep, safe copies to be made
clean up; changed fade in/out use to be more generalised; added callback notifications for when audio actually starts playing and when a fade ends
added member that holds the number of lines a text string consist of on-screen including new line characters and word wrap
reorganised tutorial content based files, updated the function of the tutorial content base item (including a ton of helper functions) and added a bunch of default tutorial contents
added a minimum word length split limit of 10 characters to the word wrapping
cleaned up files (including additional comments) and fixed minor bugs; added helper functions for adding desired cards and displaying repeat messages if a player doesn't perform the correct action (now used meta data to replay the last message with added text) - updated tutorial human and behaviour to reflect this