Conclusion
This first project was for fun, displaying an aquarium full of fish swimming around using multithreaded sprite animation. What could be more fun than a dozen bright green guppies floating around on your computer? It's suitable when you need a quick break from work, as a backdrop on your desktop, something to perk you up, or just anytime you need an aquarium.
This application used a fair number of sophisticated techniques in order to get its fish to swim. The fish images are GIF files specially created with transparent areas to make sure they look like fish swimming around, not small white boxes. The MediaTracker object in this application read in the fish images and stored them as graphics sprites. The sprites were animated with a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access