Game Development Reference
The cat's ears now also flap when it moves. At last, a use for those long ears—the cat can fly! Figure 9-4
illustrates what you'll see.
Figure 9-4. Use the arrow keys to make the cat fly.
Double-click the Lh]uan[Cn]repu class to take a quick look at it. Even though the code is very simple,
the result is a very convincing simulation of the real world. In fact, it's almost scarily realistic! Let's see
how it works.
The new [cn]repu variable is nothing special:
Like the other values, ,*/ is just one that came about through trial and error, and it looks natural in
this context. A higher number increases gravity, and a lower number decreases it.