Join Joseph Labrecque for an in-depth discussion in this video Game setup and initialization, part of HTML5 Canvas and WebGL in Flash Professional CC.
- View Offline
Now that we're in the Actions panel,…we can start writing some code.…So let's start declaring some variables for our game.…The first one will be player, and we'll set that…equal to an empty object.…The next one is going to be collectibles.…And that's going to be set to an empty array.…We'll also declare our gamestage,…and set it equal to this.…This is going to allow us to always refer…to the gamestage itself, instead of using…something like this within our different functions.…
This course focuses on using Flash Professional CC to create a shared pool of content for a set of related projects: an HTML5 video, an interactive ad, and a simple web-based game. Author Joseph Labrecque shows how to use Flash's familiar toolset to build and manage assets that fit into a modern web publishing workflow.
- Using code snippets and actions
- Assembling and animating a scene for video
- Rendering the video
- Programming a game in HTML5 Canvas