E-Book Overview
It shows in detail how to use Java to program games for interactive use on the Internet.
E-Book Content
Teach Yourself Internet Game Programming with Java in 21 Days by Michael Morrison C O N T E N T S Introduction WEEK 1 At a Glance Chapter 1 Games on the Web ● ● ● The State of the Net What the Web Has to Offer ❍ Web-Based versus Non-Web Based Games Non-Java Based Games Mpath ❍ Cyber Warrior Network ❍ ImagiNation Network ❍ Total Entertainment Network ❍ Outland ❍ Sim-Net Java-Based Web Games ❍ Avalon ❍ Internet MahJong Server ❍ iChess ❍ Unearthed Summary Q&A Workshop ❍ Quiz ❍ Exercises ❍ ● ● ● ● Chapter 2 Java Game Programming ● ● ● ● ● ● Java and Web Games Java Features for Games ❍ Graphics and Animation ❍ User Input ❍ Sound ❍ Networking ❍ Media Management Game Design ❍ Basic Idea ❍ Storyline ❍ Play Modes Summary Q&A Workshop ❍ Quiz ❍ Exercises Chapter 3 Object-Oriented Programming with Java ● What Is OOP? ❍ Objects Classes ❍ Encapsulation ❍ Messages ❍ Inheritance OOP and Games Java and Other OOP Languages Summary Q&A Workshop ❍ Quiz ❍ Exercises ❍ ● ● ● ● ● Chapter 4 The Basics of Graphics ● ● ● ● ● ● ● Graphics in Games ❍ Game Window Size ❍ Target Audience ❍ Setting and Mood ❍ Graphics Style The GIF Image Format Creating and Editing Graphics ❍ Graphics Utilities ❍ Line-Art Graphics ❍ 3-D Rendered Graphics ❍ Scanned Photography and Video-Captured Graphics ❍ Background Graphics and Textures ❍ Animated Graphics Finding Graphics Summary Q&A Workshop ❍ Quiz ❍ Exercises Chapter 5 Java Graphics Techniques ● ● ● The Graphics Coordinate System The Basics of Color The Graphics Class ❍ Drawing Graphics Primitives Drawing Text ❍ Drawing Images Tracking Images ❍ The MediaTracker Class ❍ Using the Media Tracker Summary Q&A Workshop ❍ Quiz Exercises ❍ ● ● ● ● ● Chapter 6 Sprite Animation ● ● ● ● ● ● ● What Is Animation? Types of Animation ❍ Frame-Based Animation ❍ Cast-Based Animation Implementing Sprite Animation ❍ The Sprite Class ❍ The SpriteVector Class ❍ The Background Classes Sample Applet: Atoms Summary Q&A Workshop ❍ Quiz ❍ Exercises Chapter 7 Sim Tarantula: Creepy Crawly Sprites ● ● ● ● ● ● Extending the Sprite Class ❍ Designing a Directional Sprite ❍ The DirectionalSprite Class Designing Sim Tarantula Sample Applet: Sim Tarantula ❍ The Sprite Classes ❍ The SimTarantula Class Summary Q&A Workshop ❍ ❍ Quiz Exercises WEEK 1 In Review WEEK 2 At a Glance Chapter 8 User Input in Games ● ● ● ● ● Gaming and User Input User Input Devices ❍ The Keyboard ❍ The Mouse Summary Q&A Workshop ❍ Quiz ❍ Exercises Chapter 9 Handling User Input with Java ● ● ● ● ● ● ● ● ● Event-Driven Programming Java Input Event awt Event Handling Keyboard Events Mouse Events Sample Applet: Flying Saucer Summary Q&A Workshop ❍ Quiz ❍ Exercises Chapter 10 Traveling Gecko: Blistering Desert Fun ● ● Designing Traveling Gecko ❍ Sprites ❍ Game Play Sample Applet: Traveling Gecko The Sprite Classes ❍ The TravelingGecko Class Summary Q&A Workshop ❍ Quiz ❍ Exercises ❍ ● ● ● Chapter 11 The Basics of Sound ● ● ● ● ● ● ● ● ● ● The Physics of Sound Digital Sound Fundamentals The AU Sound Format Using Sound in Games Sound Utilities ❍ Cool Edit ❍ Sound Exchange (SoX) ❍ Sound Machine ❍ Sound Hack Creating and Editing Sounds ❍ Recording with a Microphone ❍ Sampling from External Sound Sources Finding Sounds Summary Q&A Workshop ❍ Quiz ❍ Exercises Chapter 12 Playing Sound with Java ● ● ● ● ● Java Sound Support ❍ The Au