HD Video

CartoonSmart was the first training website to offer HD video. Seriously. Before YouTube was even founded, we realized screencasts needed to be way bigger than what others were offering. Nothing will replace books in the training spectrum, but sometimes you just want to put your feet up and watch someone else work. Since 2004, our customers haven't had to squint.

Find Out More »

Software to Use

The intended audience for this course is the programmer with some experience in writing ActionScript 3 familiar with development using Adobe Flash Professional, Adobe Flash Builder 4, or FlashDevelop.

Your Instructor

This course is taught by John Nyquist, author, artist, programmer and the very first Blender Foundation Certified Trainer in the US. John created this course while building the iPad app, Astra Itinera. For freelance queries, John can be reached at Nyquist.net

Part 1. Terrain Generation

In part one, you'll learn how to create terrains, use spatial averaging, draw with the graphics class, deal with bits, work with connected component labeling to detect regions, and more. Topics include:

  • Development Options - Flash Professional, Flash Builder, and/or FlashDevelop.
  • Setting up for your environment
  • Creating the main package and Terrain class
  • Graphics Class - learn to use the Graphics class to draw and color shapes
  • Creating noise
  • Using bit shifting to extract RGB values
  • Spatial Averaging - softening the noise to create the land forms
  • Gridlines - drawing gridlines with a Graphics class object
  • Creating the Grid and Node classes
  • Game Class - Tying the Terrain, Grid, and Node classes together with the Game class
  • BitmapData class - dynamically create bitmaps in AS3
  • Terrain - adding Mountains and beaches
  • Connected Component Labeling (CCL)
  • Creating an interactive test for our CCL algorithm (and debugging)
  • Creating the Region class and integrating it with out CCL test
  • Bringing in Symbols

Part 2. A* Pathfinding

The A* pathfinding algorithm is the most popular method of finding a path between two points. In part two you will:

  • Learn the fundamentals of the A* pathfinding algorithm through a "blackboarding" session
  • Write an implementation of it from scratch in ActionScript 3.
  • Create an interactive movie to test the implementation.
  • Integrate it into the main project from part one of the series.

Part 3. State Machines

In part three you will:

  • Create a shaded terrain. Dynamically adjust contrast with the ColorMatixFilter class.
  • Create multiple states for an object. Progress from a simple switch statement to object-oritented states.
  • Create multiple players.
  • Learn to create a turn-based environment for units and players, for both human and computer input.
  • Create computer opponents.
  • Create multiple unit types: land, air, computer and human.
  • Use the bitmap class to create a “fog of war” that reveals the map as units move.
  • Differentiate between turn-based and non-turn-based states (and support both).
  • Add combat between units.
  • Refactor to use a singleton design pattern.

Testimonial from Gary Rosenzwig

Read what Gary Rosenzweig from FlashGameU.com has to say about this course...

"John's a great teacher. He makes complex concepts seem simple by explaining them in small steps with great clarity. You'll find that you are not just following along, but you are gaining an understanding into the process of how the project was developed. You'll not only learn how it was built, but you'll also know how it works."

Preview Video

Ten hours. Get experienced with Actionscript 3.

Only $30. Download these videos directly to your computer. Includes source files and free updates. You'll be notified by email whenever there's an update to either the course or collection of source projects. Redownload access is always granted for our products.

Related Products...