Drawing the graphics

Let's start drawing all the graphics. A snake prototype requires:

  • A background, such as a grass field
  • A "game over" overlay, used to add a dramatic effect when the game is over
  • The fruit (collectible)
  • The wall
  • The snake

They are all very easy to draw, except for the snake. In snake.fla, create four new Movie Clip symbols and call them bg_mc for the background, game_over_mc for the game over overlay, fruit_mc for the fruit, and obstacle_mc for the wall. Set them all as exportable for ActionScript. Leave all other settings at their default values, just like you did in previous chapters.

These are the objects I drew:

Drawing the graphics

From left to right, ...

Get Flash Game Development by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.