📄 index.htm
字号:
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
11</FONT><FONT SIZE=5> <A HREF="ch11.htm"><I>The Basics of Sound</I></A></FONT></H2>
<UL>
<LI><A HREF="ch11.htm#ThePhysicsofSound" >The Physics of Sound</A>
<LI><A HREF="ch11.htm#DigitalSoundFundamentals" >Digital Sound Fundamentals</A>
<LI><A HREF="ch11.htm#TheAUSoundFormat" >The AU Sound Format</A>
<LI><A HREF="ch11.htm#UsingSoundinGames" >Using Sound in Games</A>
<LI><A HREF="ch11.htm#SoundUtilities" >Sound Utilities</A>
<UL>
<LI><A HREF="ch11.htm#CoolEdit" >Cool Edit</A>
<LI><A HREF="ch11.htm#SoundExchangeSoX" >Sound Exchange (SoX)</A>
<LI><A HREF="ch11.htm#SoundMachine" >Sound Machine</A>
<LI><A HREF="ch11.htm#SoundHack" >Sound Hack</A>
</UL>
<LI><A HREF="ch11.htm#CreatingandEditingSounds" >Creating and Editing Sounds</A>
<UL>
<LI><A HREF="ch11.htm#RecordingwithaMicrophone" >Recording with a Microphone</A>
<LI><A HREF="ch11.htm#SamplingfromExternalSoundSources" >Sampling from External Sound Sources</A>
</UL>
<LI><A HREF="ch11.htm#FindingSounds" >Finding Sounds</A>
<LI><A HREF="ch11.htm#Summary" >Summary</A>
<LI><A HREF="ch11.htm#QA" >Q&A</A>
<LI><A HREF="ch11.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch11.htm#Quiz" >Quiz</A>
<LI><A HREF="ch11.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
12</FONT><FONT SIZE=5> <A HREF="ch12.htm"><I>Playing Sound with Java</I></A></FONT>
</H2>
<UL>
<LI><A HREF="ch12.htm#JavaSoundSupport" >Java Sound Support</A>
<UL>
<LI><A HREF="ch12.htm#TheAudioClipClass" >The AudioClip Class</A>
<LI><A HREF="ch12.htm#AlternativestoUsingAudioClip" >Alternatives to Using AudioClip</A>
</UL>
<LI><A HREF="ch12.htm#SampleAppletWildAnimals" >Sample Applet: WildAnimals</A>
<LI><A HREF="ch12.htm#Summary" >Summary</A>
<LI><A HREF="ch12.htm#QA" >Q&A</A>
<LI><A HREF="ch12.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch12.htm#Quiz" >Quiz</A>
<LI><A HREF="ch12.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
13</FONT><FONT SIZE=5> <A HREF="ch13.htm"><I>Scorpion Roundup: Action By
Moonlight</I></A></FONT></H2>
<UL>
<LI><A HREF="ch13.htm#DesigningScorpionRoundup" >Designing Scorpion Roundup</A>
<UL>
<LI><A HREF="ch13.htm#Sprites" >Sprites</A>
<LI><A HREF="ch13.htm#GamePlay" >Game Play</A>
<LI><A HREF="ch13.htm#Options" >Options</A>
</UL>
<LI><A HREF="ch13.htm#SampleAppletScorpionRoundup" >Sample Applet: Scorpion Roundup</A>
<UL>
<LI><A HREF="ch13.htm#TheSpriteClasses" >The Sprite Classes</A>
<LI><A HREF="ch13.htm#TheScorpionRoundupClass" >The ScorpionRoundup Class</A>
</UL>
<LI><A HREF="ch13.htm#Summary" >Summary</A>
<LI><A HREF="ch13.htm#QA" >Q&A</A>
<LI><A HREF="ch13.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch13.htm#Quiz" >Quiz</A>
<LI><A HREF="ch13.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
14</FONT><FONT SIZE=5> <A HREF="ch14.htm"><I>Squishing Bugs in Java Games</I></A></FONT>
</H2>
<UL>
<LI><A HREF="ch14.htm#DebuggingBasics" >Debugging Basics</A>
<UL>
<LI><A HREF="ch14.htm#SingleSteppingCode" >Single-Stepping Code</A>
<LI><A HREF="ch14.htm#WatchingVariables" >Watching Variables</A>
<LI><A HREF="ch14.htm#UsingBreakpoints" >Using Breakpoints</A>
</UL>
<LI><A HREF="ch14.htm#DebuggingStrategies" >Debugging Strategies</A>
<UL>
<LI><A HREF="ch14.htm#BugPrevention" >Bug Prevention</A><LI><A HREF="ch14.htm#BugDetection" >Bug Detection</A>
</UL>
<LI><A HREF="ch14.htm#ChoosingaDebugger" >Choosing a Debugger</A>
<LI><A HREF="ch14.htm#Summary" >Summary</A>
<LI><A HREF="ch14.htm#QA" >Q&A</A>
<LI><A HREF="ch14.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch14.htm#Quiz" >Quiz</A>
<LI><A HREF="ch14.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><FONT SIZE=5 COLOR=#FF0000>WEEK 2 </FONT><FONT SIZE=5><A HREF="ch2rev.htm#"><I>In
Review</I></FONT></H2></A>
<H2><FONT SIZE=5 COLOR=#FF0000>WEEK 3 </FONT><FONT SIZE=5><A HREF="ch3gla.htm#"><I>At
a Glance</I></FONT></H2></A>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
15</FONT><FONT SIZE=5> <A HREF="ch15.htm"><I>Teaching Games to Think</I></A></FONT>
</H2>
<UL>
<LI><A HREF="ch15.htm#ArtificialIntelligenceFundamentals" >Artificial Intelligence Fundamentals</A>
<LI><A HREF="ch15.htm#TypesofGameAI" >Types of Game AI</A>
<UL>
<LI><A HREF="ch15.htm#RoamingAI" >Roaming AI</A>
<LI><A HREF="ch15.htm#BehavioralAI" >Behavioral AI</A>
<LI><A HREF="ch15.htm#StrategicAI" >Strategic AI</A>
</UL>
<LI><A HREF="ch15.htm#ImplementingYourOwnAI" >Implementing Your Own AI</A>
<LI><A HREF="ch15.htm#AIinCommercialGames" >AI in Commercial Games</A>
<UL>
<LI><A HREF="ch15.htm#Battlecruiser3000AD" >Battlecruiser: 3000AD</A>
<LI><A HREF="ch15.htm#CloakDaggerandDNA" >Cloak, Dagger, and DNA</A>
<LI><A HREF="ch15.htm#Destiny" >Destiny</A>
<LI><A HREF="ch15.htm#DungeonKeeper" >Dungeon Keeper</A>
<LI><A HREF="ch15.htm#GrandPrixII" >Grand Prix II</A>
</UL>
<LI><A HREF="ch15.htm#AIResourcesontheWeb" >AI Resources on the Web</A>
<UL>
<LI><A HREF="ch15.htm#WorldWideWebVirtualLibrary" >World Wide Web Virtual Library</A>
<LI><A HREF="ch15.htm#TheUniversityofChicagoAILab" >The University of Chicago AI Lab</A>
<LI><A HREF="ch15.htm#MachineLearninginGames" >Machine Learning in Games</A>
<LI><A HREF="ch15.htm#BibliographyonMachineLearninginStra" >Bibliography on Machine Learning in Strategic Game Playing</A>
</UL>
<LI><A HREF="ch15.htm#Summary" >Summary</A>
<LI><A HREF="ch15.htm#QA" >Q&A</A>
<LI><A HREF="ch15.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch15.htm#Quiz" >Quiz</A>
<LI><A HREF="ch15.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
16</FONT><FONT SIZE=5> <A HREF="ch16.htm"><I>Connect4: Human versus Machine</I></A></FONT>
</H2>
<UL>
<LI><A HREF="ch16.htm#DesigningConnect4" >Designing Connect4</A>
<UL>
<LI><A HREF="ch16.htm#HowtoPlaytheGame" >How to Play the Game</A>
<LI><A HREF="ch16.htm#TheElementsoftheGame" >The Elements of the Game</A>
<LI><A HREF="ch16.htm#TheAIStrategy" >The AI Strategy</A>
</UL>
<LI><A HREF="ch16.htm#SampleAppletConnect4" >Sample Applet: Connect4</A>
<UL>
<LI><A HREF="ch16.htm#TheGameEngineClasses" >The Game Engine Classes</A>
<LI><A HREF="ch16.htm#TheConnect4Class" >The Connect4 Class</A>
</UL>
<LI><A HREF="ch16.htm#Summary" >Summary</A>
<LI><A HREF="ch16.htm#QA" >Q&A</A>
<LI><A HREF="ch16.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch16.htm#Quiz" >Quiz</A>
<LI><A HREF="ch16.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
17</FONT><FONT SIZE=5> <A HREF="ch17.htm"><I>The Basics of Multiplayer Gaming</I></A></FONT>
</H2>
<UL>
<LI><A HREF="ch17.htm#TheRawappealofMultiplayerGames" >The Raw appeal of Multiplayer Games</A>
<LI><A HREF="ch17.htm#NetworkversusNonNetworkGames" >Network versus Non-Network Games</A>
<LI><A HREF="ch17.htm#GamingontheInternet" >Gaming on the Internet</A>
<LI><A HREF="ch17.htm#TypesofMultiplayerGames" >Types of Multiplayer Games</A>
<UL>
<LI><A HREF="ch17.htm#TurnBasedGames" >Turn-Based Games</A>
<LI><A HREF="ch17.htm#EventBasedGames" >Event-Based Games</A>
</UL>
<LI><A HREF="ch17.htm#NetworkGameProblems" >Network Game Problems</A>
<LI><A HREF="ch17.htm#NetworkGameSolutions" >Network Game Solutions</A>
<UL>
<LI><A HREF="ch17.htm#StateSynchronization" >State Synchronization</A>
<LI><A HREF="ch17.htm#InputSynchronization" >Input Synchronization</A>
<LI><A HREF="ch17.htm#AHybridSolution" >A Hybrid Solution</A>
</UL>
<LI><A HREF="ch17.htm#GameTheory" >Game Theory</A>
<LI><A HREF="ch17.htm#Summary" >Summary</A>
<LI><A HREF="ch17.htm#QA" >Q&A</A>
<LI><A HREF="ch17.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch17.htm#Quiz" >Quiz</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
18</FONT><FONT SIZE=5> <A HREF="ch18.htm"><I>Networking with Java</I></A></FONT>
</H2>
<UL>
<LI><A HREF="ch18.htm#NetworkBasics" >Network Basics</A>
<UL>
<LI><A HREF="ch18.htm#Addresses" >Addresses</A>
<LI><A HREF="ch18.htm#Protocols" >Protocols</A>
<LI><A HREF="ch18.htm#Ports" >Ports</A>
</UL>
<LI><A HREF="ch18.htm#TheClientServerParadigm" >The Client/Server Paradigm</A>
<LI><A HREF="ch18.htm#Sockets" >Sockets</A>
<UL>
<LI><A HREF="ch18.htm#StreamSockets" >Stream Sockets</A>
<LI><A HREF="ch18.htm#DatagramSockets" >Datagram Sockets</A>
</UL>
<LI><A HREF="ch18.htm#AReusableSocketClass" >A Reusable Socket Class</A>
<LI><A HREF="ch18.htm#Summary" >Summary</A>
<LI><A HREF="ch18.htm#QA" >Q&A</A>
<LI><A HREF="ch18.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch18.htm#Quiz" >Quiz</A>
<LI><A HREF="ch18.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
19</FONT><FONT SIZE=5> <A HREF="ch19.htm"><I>NetConnect4: Human versus Human</I></A></FONT>
</H2>
<UL>
<LI><A HREF="ch19.htm#DesigningNetConnect4" >Designing NetConnect4</A>
<UL>
<LI><A HREF="ch19.htm#TheServer" >The Server</A>
<LI><A HREF="ch19.htm#TheClient" >The Client</A>
<LI><A HREF="ch19.htm#PuttingThemTogether" >Putting Them Together</A>
</UL>
<LI><A HREF="ch19.htm#SampleAppletNetConnect4" >Sample Applet: NetConnect4</A>
<UL>
<LI><A HREF="ch19.htm#RunningNetConnect4" >Running NetConnect4</A>
<LI><A HREF="ch19.htm#DevelopingNetConnect4" >Developing NetConnect4</A>
</UL>
<LI><A HREF="ch19.htm#Summary" >Summary</A>
<LI><A HREF="ch19.htm#QA" >Q&A</A>
<LI><A HREF="ch19.htm#Workshop" >Workshop</A>
<UL>
<LI><A HREF="ch19.htm#Quiz" >Quiz</A>
<LI><A HREF="ch19.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
20</FONT><FONT SIZE=5> <A HREF="ch20.htm"><I>Optimizing Java Code for Games</I></A></FONT>
</H2>
<UL>
<LI><A HREF="ch20.htm#WhatIsCodeOptimization" >What Is Code Optimization?</A>
<UL>
<LI><A HREF="ch20.htm#Maintainability" >Maintainability</A>
<LI><A HREF="ch20.htm#Size" >Size</A>
<LI><A HREF="ch20.htm#Speed" >Speed</A>
</UL>
<LI><A HREF="ch20.htm#OptimizingwiththeJDKCompiler" >Optimizing with the JDK Compiler</A>
<LI><A HREF="ch20.htm#CostsofCommonOperations" >Costs of Common Operations</A>
<LI><A HREF="ch20.htm#IsolatingProblemCode" >Isolating Problem Code</A>
<LI><A HREF="ch20.htm#OptimizationTechniques" >Optimization Techniques</A>
<UL>
<LI><A HREF="ch20.htm#RethinkAlgorithms" >Rethink Algorithms</A>
<LI><A HREF="ch20.htm#UseNativeMethods" >Use Native Methods</A>
<LI><A HREF="ch20.htm#UseInlineMethods" >Use Inline Methods</A>
<LI><A HREF="ch20.htm#ReplaceSlowJavaAPIClassesandMethod" >Replace Slow Java API Classes and Methods</A>
<LI><A HREF="ch20.htm#UseLookUpTables" >Use Look-Up Tables</A>
<LI><A HREF="ch20.htm#EliminateUnnecessaryEvaluations" >Eliminate Unnecessary Evaluations</A>
<LI><A HREF="ch20.htm#EliminateCommonSubexpressions" >Eliminate Common Subexpressions</A>
<LI><A HREF="ch20.htm#ExpandLoops" >Expand Loops</A>
</UL>
<LI><A HREF="ch20.htm#Summary" >Summary</A>
<LI><A HREF="ch20.htm#QA" >Q&A</A>
<LI><A HREF="ch20.htm#Workshop" >Workshop </A>
<UL>
<LI><A HREF="ch20.htm#Quiz" >Quiz</A>
<LI><A HREF="ch20.htm#Exercises" >Exercises</A>
</UL>
</UL>
<H2><I><FONT SIZE=5 COLOR=#FF0000>Chapter</FONT></I><FONT SIZE=5 COLOR=#FF0000>
21</FONT><FONT SIZE=5> <A HREF="ch21.htm"><I>Assembling a Game Development
Toolkit</I></A></FONT></H2>
<UL>
<LI><A HREF="ch21.htm#TheImportanceofTools" >The Importance of Tools</A>
<LI><A HREF="ch21.htm#ContentTools" >Content Tools</A>
<LI><A HREF="ch21.htm#JavaDevelopersKit" >Java Developer's Kit</A>
<LI><A HREF="ch21.htm#IntegratedDevelopmentEnvironments" >Integrated Development Environments</A>
<UL>
<LI><A HREF="ch21.htm#SunsJavaWorkshop" >Sun's Java Workshop</A>
<LI><A HREF="ch21.htm#SymantecCaf
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -