Underwater Environment with ActionScript

I have had some ideas recently about creating an underwater type environment with actionscript. Not a fish tank thing. Ideally I would like deep sea primitive life forms, lots of environment noise from caustics, particles of plankton, light scattering, etc.

Lots of layers like this would quickly bog down the flash player. Careful thought and usage would be required to strike a balance, switching out the objects in motion.

The particles, bubbles etc. would be easy enough. The Math & drawing required for the creatures would be more challenging. This first class written is for things like seaweed or Jellyfish tentacles. It makes use of the drawing API, curveTo, etc. our old friends cosine and sine and is completely random each time it is generated. Stay tuned to the evolution.

Like it? Share it

Share on LinkedIn

Share on Google Plus