Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
LIBRARY: TutorialsVideo TutorialsReviewsInterviewsEditorialsFeaturesBusinessAuthorsRSS FeedTraining DVDs

Tanx-AE: A Game for After Effects

COW Library : Chris Zwar : Tanx-AE: A Game for After Effects
Tanx-AE: A Game for After Effects
A CreativeCOW After Effects Game


Tanx-AE
Chris Zwar Chris Zwar
Entertainment Media
South Melbourne, AUSTRALIA
©2004 Chris Zwar and CreativeCOW.net. All rights reserved.

Article Focus:
Everyone needs a diversion now and then, so Chris Zwar took some time to write a game in After Effects just to see if he could. Here's the result: Tanx-AE, the world's first game written for Adobe After Effects. Take a moment, download the aep and have some fun with this. It's for version 5.5 and up.


Download zipped AEP here

Tanx-AE is the world’s first game written for Adobe After Effects (ver 5.5 and up).

Tanx-AE is a 2 player game in which each player aims their tank at the other player’s by varying the angle of elevation of the tank’s barrel, and the power of each shell. The player who can find the correct combination of barrel elevation and power, to hit the other player’s tank first, is the winner.

Tanx-AE was inspired by an old game called “Tanx” which I used to play against my neighbour on the Commodore 64 more than 15 years ago. These were the days of typing in BASIC programs which were published in magazines, running on a machine which had a 1mhz processor, only 16 colours, and a TV as the monitor.



The obvious question is – Why? Why write (and play) a game using a graphics and compositing program?

The answer, quite simply, is to prove that you can. It also demonstrates how useful and interesting expressions can be. Tanx-AE demonstrates the power of expressions by using them to link together several After Effects compositions, which together make up the game.

Expressions are used throughout the After Effects project in a variety of ways including:
  • An expression is used to generate pseudo-random numbers, which produces the varying height of the terrain (and tanks) in a repeatable and calculable manner.
  • Expressions are used to render the landscape, automatically positioning small “land units” to create an overall terrain.
  • Expressions are used to allow each player to alter their tanks power and barrel elevation, using standard After Effects controls. The tank’s barrels raise and lower to match the settings entered by each player.
  • The trajectory and movement of each player’s shell is calculated using expressions.
  • Expressions are used for the collision detection, to see if a player has hit either the ground or the other player.
  • Expressions are used to determine which message is displayed at the end of each shot, and whether to display an explosion at the site of any impact.


Tanx-AE runs best on beefy machines with plenty of RAM, and a display size of at least 1024x768. It was written in After Effects 5.5 on a Mac. Future revisions of Tanx-AE will see the battle move to a 3D world, with the ability of the players to alter the position of their tank between shots, but this may have to wait for faster machines because it’s fairly slow already…

There’s some old saying about watching dancing bears at the circus – you don’t admire how well they dance, just that they dance at all. Keep this in mind when playing Tanx-AE.

Chris Zwar
Entertainment Media




Please discuss this technique in the After Effects forum at Creativecow.net




Please visit our forums and view other articles at CreativeCOW.net if you found this page from a direct link.




  Digg it Digg itAdd Comment


Related Articles / Tutorials:
Bleach Bypass EffectSimple MorphBuilding a Cube World: Part 4Building a Cube World: Part 3Fix it in Pre! Workflow Starts Before the Shooting Does


Recent Articles / Tutorials:
Native P2 Editing in Final Cut Pro with MXF4MacLighting with ShadowsUp-Converting SD for HD Projects and HD Cross-Conversion Using AJA Kona 3Marketing: Staying Effective in Tough TimesVector Logo to 3D Logo
MORE


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]