⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 book-index.html

📁 java game programming e-book
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DD>GameFrame, customizing, 252, 258-259
</DL>
</DL>
<DL>
<DL>
<DD>GameFrame Container, customizing, 253-254
<DD>GameManager, <I>see</I> GameManager
<DD>gameOver( ) method, 207-208
<DD>GunManager, <I>see</I> GunManager
<DD>GunSprite, <I>see</I> GunSprite
<DD>handling menu actions, customizing, 255
<DD>image strip, 372
<DD>killed( ) method, 202
<DD>KILL_FOR_NEXT_LEVEL constant, 202
<DD>landing aliens, 205
<DD>levels variable, 202
<DD>menu bar, customizing, 254-255
<DD>MissileSprite, 169-172
<DD>multithreaded animation, 368-370
<DD>newGame( ) method, 209
<DD>opening, 208-210
<DD>overview, 156
<DD>paint( ) method, 197, 203, 207, 209-210
<DD>scoring, 204-205
<DD>sound, enabling/disabling, 256-258
<DD>UFO class, <I>see</I> UFO class
<DD>UFOManager, <I>see</I> UFOManager
<DD>ufoskilled variable, 202
<DD>update( ) method, 180-183, 203, 205
<DD>Video Game loop, 157-158
</DL>
<DD>App3Dcore, implementing, 471-472
<DL>
<DD>bomb bays, 491
<DD>bombs, 492-494
<DD>buildings, 480-481
<DD>creating the layer, 461-471
<DD>explosions, 494
<DD>gliders, 476-479
<DD>mini-cannon shells, 490
<DD>mini-cannons, 486-488
<DD>missile launchers, 482-483
<DD>missiles, 484-485
<DD>shells, 488-489
<DD>tanks, 473-476
</DL>
<DD>Daleks! game , 593
<DL>
<DD>animateTele( ) method, 607
<DD>animation loops, 599
<DD>arrays (doctorPic[ ]), 596, 610
<DD>checkDaleks( ) method, 611
<DD>drawIntroScreen( ) method, 600
<DD>fine-tuning playing options, 614
<DD>game board size, adjusting, 614
<DD>getHTMLParameters( ) method, 596, 615
</DL>
</DL>
<DL>
<DL>
<DD>handleKeyPres( ) method, 601
<DD>if statements, 602
<DD>Intro screen, modifying, 613
<DD>keyDown( ) method, 600-601
<DD>moveDaleks( ) method, 605
<DD>movePlayer( ) method, 603
<DD>paintNumber( ) method, 611
<DD>prepareScreen( ) method, 596, 608
<DD>pursuit method, 605
<DD>redrawing board, 608
<DD>setInfo( ) method, 597
<DD>start( ) method, 598-599
<DD>starting turns, 601
<DD>status updates for player, 612
<DD>teleporting player, 607
<DD>update( ) method, 599
<DD>updating game board based on player&#146;s moves, 602
</DL>
<DD>educational, 653
<DD>JAVAroids game, 507
<DL>
<DD>applet tag, 588
<DD>Asteroid Manager, 549-550
<DD>Asteroids sprites, 539-540
<DD>collision handling, 531-532
<DD>division of responsibility, 532
<DD>Effect Manager, 575
<DD>Enemy Manager, 570
<DD>Enemy sprites, 534-536
<DD>Explosions sprites, 543-547
<DD>Fire sprites, 537-539
<DD>Game Manager, 578
<DD>inheritance hierarchy (sprites), 535
<DD>landscape, 509
<DD>manager classes, 530
<DD>managers, 531, 547-548
<DD>MoveablePolygon class, 514, 522-526
<DD>PolygonSprite class, 510-514, 522
<DD>RotateablePolygon class, 527-530
<DD>Ship Manager, 561-562
<DD>Ships sprites, 540-543
<DD>sprites, 509-510, 533
<DD>vectors, coordinate comparisions, 514-521
</DL>
<DD>Magic Squares Puzzle
<DL>
<DD>classes, 697-718
<DD>rules, 696-697
</DL>
<DD>MahJong, 721
<DL>
<DD>afterLogin( ) method, 742
<DD>checkMahJong( ) method, 758
</DL>
</DL>
<DL>
<DL>
<DD>classes, 724
<DD>client code, 738
<DD>client GUI, 741
<DD>CPlayer class, 740
<DD>CP_PLAY packet, 753
<DD>CTable class, 740
<DD>debugging, 760
<DD>disconnect( ) method, 731
<DD>Greeting class, 739
<DD>Hand class, 747
<DD>hdLogin( ) method, 737
<DD>hdSomePacket( ) method, 728
<DD>Listener thread, 732
<DD>mj.html document, 739
<DD>Packet class, 725
<DD>packets, 724
<DD>play( ) method, 756
<DD>Player class, 730
<DD>player database, 759
<DD>PlayerOutput class, 730, 734
<DD>ping packet, 759
<DD>protocols used, 724
<DD>readHand( ) method, 748
<DD>receiving packets, 727
<DD>RecordFile class, 759
<DD>Replier, thread 733
<DD>rules of play, 723
<DD>scoring system, 758
<DD>sending packets, 727
<DD>server, 721
<DD>Server class, 730
<DD>server code, 728, 756
<DD>server packets, 755
<DD>shuffling algorithm, 749
<DD>spSomePacket( ) method, 728
<DD>statements, synchronized, 731
<DD>stopOnWait( ) method, 733
<DD>synchronization and deadlock prevention, 737
<DD>Table class, 735
<DD>table.leave( ) method, 738
<DD>table.join method, 756
<DD>table structure, 746
<DD>tables, joining, 744
<DD>threads, 725
<DD>Tile class, 747
<DD>tile graphics, 749
<DD>tileWindow( ) method, 750
</DL>
</DL>
<DL>
<DL>
<DD>Timeout feature, 759
<DD>writeHand( ) method, 748
</DL>
<DD>NetOthello, 619
<DL>
<DD>client code, 624
<DD>client-side duties, 624
<DD>columns, 626
<DD>display( ) method, 632
<DD>doMove( ) method, 631
<DD>flip( ) method, 625
<DD>gameBoard class, 622, 626
<DD>GamePiece class, 622, 625
<DD>game play options, 623
<DD>mouseDown( ) method, 633
<DD>movement options, 620
<DD>NetOthello class, 623, 628
<DD>paint( ) method, 629
<DD>paintPiece( ) method, 625
<DD>repaint( ) method, 629
<DD>returnBoard( ) method, 627
<DD>returnNum( ) method, 627
<DD>rows, 626
<DD>run( ) method, 629
<DD>server-side duties, 624
<DD>validMove( ) method, 630
</DL>
<DD>Slider puzzle, 765
<DL>
<DD>action( ) method, 768
<DD>graphics, loading , 769
<DD>image observer, 774
<DD>imageUpdate( ) method, 774
<DD>init( ) method, 767
<DD>loading sounds, 773
<DD>mixing up pieces, 776
<DD>mouseDown( ) method, 767, 771
<DD>move( ) method, 772
<DD>paint( ) method, 770
<DD>Randomize button, 775
<DD>randomize( ) method, 776
<DD>responding to mouse clicks, 771
<DD>Solve button, 777
</DL>
<DD>Worm game, 781
<DL>
<DD>applet thread run( ) method, 811
<DD>autonomous worms, 812, 816
<DD>body segments, 785
<DD>browser compatibility, 823
<DD>demo mode option, 824
<DD>design strategies, 786-787
<DD>DoAutoWorms( ) method, 813, 819
</DL>
</DL>
<DL>
<DL>
<DD>DoYouHaveSegmentAt( ) method, 795
<DD>DropLastPoint( ) method, 796
<DD>game design, 784
<DD>game strategy, 782
<DD>gameRestart( ) method, 803
<DD>GetDirection( ) method, 814
<DD>GetNewDirection( ) method, 814, 821
<DD>GetNextPoint( ) method, 796
<DD>if-else statements, 817
<DD>integrating into Web pages, 822
<DD>keyboard input options, 801
<DD>linked lists, 788
<DD>mouse input options, 802
<DD>network play options, 825
<DD>Next( ) method, 804, 806
<DD>NotRegrowing( ) method, 817, 821
<DD>queues, 793
<DD>returning segments through iterators, 798
<DD>ReviveWorm( ) method, 795
<DD>saving scores, 824
<DD>screen and game coordinate differences, 785
<DD>SearchForCollision( ) method, 808
<DD>SearchForTreat( ) method, 808
<DD>segment drawing and clearing, 810
<DD>SessionManager class, 788, 791, 803
<DD>SetDirection( ) method, 813
<DD>SetNewDirectionFromMouse/Keyboard( ) method, 800
<DD>SetNextPoint( ) method, 796
<DD>sizing applet with getParameter( ) method, 823
<DD>variables, reinitializing, 794
<DD>Worm class, 791-793
<DD>Worm directional input, 800
<DD>WormBin class, 791, 809
</DL>
</DL>
<DD>game_board class (Magic Squares Puzzle), 697-704
<DD>garbage collection, chat rooms, 331
<DD>generateImage( ) method, 675
<DD>getAudioClip( ) method, 113
<DD>getDirection( ) method (Worm game), 814
<DD>getHTMLParameters( ) method, 596
<DD>getImage( ) method, 109
<DD>getNewDirection( ) method (Worm game), 814, 821
<DD>getNextPoint( ) method (Worm game), 796
<DD>getParameter( ) method, sizing Worm applet, 823
<DD>getQuestion( ) method, 670
<DD>getScore( ) method, 290
<DD>getScreenSize( ) method, 384
<DD>getSource( ) method, filtering images, 373
<DD>getTime( ) method, 378
<DD>getToolkit( ) method, 384
<DD>Gong (MahJong), 722
<DD>graphical attribute design (Worm game), 786
<DD>graphical user interfaces, <I>see</I> GUIs
<DD>graphics
<DL>
<DD>animation, <I>see</I> animation
<DD>bitmaps, 108-112
<DL>
<DD>loading/drawing images, 108-109
<DD>specifying locations, 109-110
<DD>sprites, 110-112
</DL>
<DD>color, 38
<DD>coordinate system, 37
<DD>creating, 40-41
<DL>
<DD>color, 38-39
<DD>drawing, 37
<DD>filling, 37
</DL>
<DD>Internet resources, 858
<DD>wrap-around, 508
<DD><I>see also</I> images
</DL>
<DD>graphics class (java.awt), 845-846
<DD>greeting class (MahJong), 739
<DD>GridLayout, 247
<DD>GUIs (graphical user interfaces)
<DL>
<DD>chat rooms, 336-338, 343-344
<DD>creating with AWT, 236-237
<DD>high score server test applet, 298-300
</DL>
<DD>GunManager (Alien Landing game), 161, 173
<DL>
<DD>class listing, 175-176
<DD>computing variables, 173-174
<DD>defining, 162-164, 175
<DD>gun response to alien hits, 206-207
<DD>GunManager unit, 159
<DD>modified class listing, 217-220
<DD>passing mouse input, 187
<DD>Sprite and Sprite2D classes listing, 162-164
</DL>
<DD>GunSprite (Alien Landing game), 164
<DL>
<DD>BitmapSprite class, 164-165
<DD>class listing, 168
<DD>determining intersections, 167-168
<DD>hit( ) method, 207
<DD>implementing, 168-169
<DD>Intersect interface, 166
<DD>modified class listing, 223
<DD>Moveable interface, 165
</DL>
</DL>
<P><FONT SIZE="+1"><B>H</B></FONT></P>
<DL>
<DD>hand class (MahJong), 747
<DD>handleCollisionWith( ) method (3D), 458
<DD>handleEvent( ) method, 130-131
<DD>handleKeyPress( ) method, 601-602
<DD>handling events
<DL>
<DD>action events, 237
<DL>
<DD>defining action handlers, 238-240
</DL>
<DD>AWT (Abstract Windowing Toolkit), 127-131
<DD>chat room clients, 339-346
<DD>function keys, 126
<DD>keyboard events, 139
<DD>modifier keys, 126-127
</DL>
<DD>hashtables, 381-382
<DD>hasMoreElements( ) method, 379-380
<DD>hdLogin( ) method (MahJong), 737
<DD>hdSomePacket( ) method (MahJong), 728
<DD>high-score server, 282
<DL>
<DD>client features, 283-284
<DD>colors, 293
<DD>fonts, 293-294
<DD>HighScore protocol, 304-305
<DD>HighScoreList class, 285
<DL>
<DD>addScore( ) method, 289
<DD>converting data to objects, 287-288
<DD>data parsing, 287
<DD>getScore( ) method, 290
<DD>HSob object class, 286
<DD>parseData( ) method, 288-289
<DD>scoring variables, 285-286
<DD>StringTokenizer class, 287
<DD>tryScore( ) method, 290
</DL>
<DD>HighScoreManager class, 283-284, 291
<DL>
<DD>adding to HighScoreList, 295-296
<DD>colors, creating, 293
<DD>fonts, creating, 293-294
<DD>getScores( ) method, 292
<DD>paintScores( ) method, 292-294
<DD>test applets, 296-300
<DD>threading HighScore Manager, 301-303
</DL>
<DD>networking code, 303-306
<DD>outputting scores to files, 311-313
<DD>performance, 284
<DD>server application, 306
<DL>
<DD>HighScoreServer class, 306-307
<DD>run( ) method, 309-311
<DD>server initialization routine, 308-309
</DL>
</DL>
<DL>
<DL>
<DD>ServerThread class, 308
<DD>trying the server, 311
<DD>writing scores to files, 311-313
</DL>
<DD>sockets, creating, 304
<DD>tasks performed, 285
<DD>updating scores, 295-296
</DL>
<DD>HTML (HyperText Markup Language), 7
<DL>
<DD>applets, 36
<DL>
<DD>Mondrian applet HTML code, 40-41
</DL>
<DD>limitations, 7-8
<DD>specifying bitmap image location, 109
<DD>tags
<DL>
<DD>&lt;APPLET&gt;, 263-264
<DD>&lt;PARAM&gt;, 263
</DL>
</DL>
<DD>HTTP (HyperText Transfer Protocol), defined, 279
</DL>
<P><FONT SIZE="+1"><B>I</B></FONT></P>
<DL>
<DD>icons, <I>see</I> sprites
<DD>IDs for WordQuest sprites, 657
<DD>if statements (Daleks! game ), 602
<DD>if-else statements (Worm game), 817
<DD>image class (java.awt), 846
<DD>image observer (Slider puzzle), 774
<DD>images
<DL>
<DD>bitmap, 108-111
<DL>
<DD>loading/drawing, 108-109
<DD>specifying locations, 109-110
<DD>sprites, 110-112
</DL>
<DD>Internet resources, 858
<DD>processing, 371
<DL>
<DD>methods, 376
</DL>
<DD>strips
<DL>
<DD>creating, 371-372
<DD>extracting images, 374-376
<DD>filtering images, 373-374
</DL>
<DD><I>see also</I> graphics
</DL>
<DD>imageUpdate( ) method (Slider puzzle), 774
<DD>importing classes/packages, 356
<DD>incremental development, 196
<DD>indexing, asteroid array indexing (JAVAroids game), 550
<DD>inheritance (object-oriented programming), 15-16
<DL>
<DD>animation, 66-67
<DL>
<DD>extension relationships, 68
<DD>final classes/methods, 72
<DD>method overriding, 69-70
<DD>Object class, 69
</DL>
</DL>
<DL>
<DL>
<DD>specialization, 68
<DD>super keyword, 70-71
</DL>
<DD>DancingRect applet, 72-73
<DD>defined, 16
<DD>heirarchy, 16
</DL>
<DD>init( ) method
<DL>
<DD>3D, 454-455
<DD>Magic Squares Puzzle, 705
<DD>Slider puzzle, 767
<DD>WordQuest, 679
</DL>
<DD>initializing
<DL>
<DD>Terrain class (WordQuest), 664
<DD>variables (WordQuest), 658
</DL>
<DD>initiateClass( ) method (3D), 451-455
<DD>initSprites( ) method, 98, 106, 114-116
<DD>initUser( ) method (WordQuest), 686
<DD>input
<DL>
<DD>chat room servers, 348-349
<DD>devices, 120
<DD>mouse, 126
<DL>
<DD>passing to GunManager (Alien Landing game), 187
</DL>
<DD><I>see also</I> keyboards
</DL>
<DD>instanceof operator, 25
<DD>instancing
<DL>
<DD>animation, 65-66
<DD>methods, 16, 24
<DD>variables, 16, 23
</DL>
<DD>instantiating objects (creating), 14-15
<DD>integer class (java.lang), 849
<DD>integrating Worm game into Web pages, 822
<DD>interactivity
<DL>
<DD>creating bitmap loops, 140
<DL>
<DD>BitmapLoop sprite interactive applet, 146-150
<DD>defining BitmapLoop class, 142-146
<DD>MediaTracker, 140-142
</DL>
<DD>dragging sprites, 135
<DL>
<DD>Draggable Rectangle applet listing, 137-139
<DD>DragRect class listing, 136-137
<DD>revisions to DragRect class, 139
</DL>
<DD>events, 121-122
<DL>
<DD>handling, <I>see</I> handling events
<DD>keyboard, 125
<DD>mouse, 122-124
</DL>
<DD>input devices, 120

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -