»ùÓÚJ2MEµÄÀ¶ÑÀÏóÆåÓÎÏ·_¼ÆËã»úרҵÂÛÎÄ·¶ÎÄ
·¢²¼Ê±¼ä£º
2014-05-28
À´Ô´£º
ÈË´ó¾¼ÃÂÛ̳
¼ÆËã»úרҵÂÛÎÄ·¶ÎÄ
ÕªÒª
J2ME(Java 2 Platform Micro Edition)ƽ̨ÊÇSUN¹«Ë¾ÎªÇ¶ÈëʽÏû·ÑÀàµç×Ó²úÆ·ÍƳöµÄÒ»¸öͨÓõĿª·¢Æ½Ì¨¡£
±¾´Î±ÏÒµÉè¼Æ½«Í¨¹ýÉè¼Æ¿ª·¢Ò»¿îÀ¶ÑÀÏóÆåÓÎÏ·À´Ñ§Ï°ºÍÕÆÎÕ»ùÓÚJ2ME¼¼ÊõµÄÊÖ»úÓÎÏ·Èí¼þ¿ª·¢£¬±¾´Î±ÏÒµÉè¼ÆÍê³ÉÒÔÏÂÄÚÈÝ£º1.Á˽âºÍÕÆÎÕJ2MEÏà¹Ø¼¼Êõ£¬°üÀ¨J2MEµÄÌص㡢J2MEƽ̨Éϸ÷APIµÄ¹¦ÄÜ¡¢MIDletsÓ¦ÓóÌÐòÉúÃüÖÜÆں;ßÌ忪·¢Á÷³Ì£¬ÒÔ¼°J2MEƽ̨ÉϵÄÀ¶ÑÀÁ¬½Ó¼¼Êõ¡£2.ʵÏÖÏóÆåµÄ»ù±¾¹¦ÄÜ£¬°üÀ¨Æå×ÓºÍÆåÅ̵Ĵ´½¨£¬Ñ¡ÔñÆå×ÓºÍÒƶ¯Æå×Ó¡¢ÊäÓ®Åжϵȡ£3.ʵÏÖÀ¶ÑÀÁ¬½Ó¹¦ÄÜ£¬Í¨¹ý´´½¨·þÎñ¶Ë½¨Á¢ÓÎÏ·£¬Ê¹¿Í»§¶ËÄÜËÑË÷µ½ÓÎÏ·²¢¼ÓÈëÓÎÏ·£¬ÔÚÓÎÏ·Öб£³Ö·þÎñ¶ËºÍ¿Í»§¶ËµÄͨÐÅ¡£4.Éè¼ÆÓÎÏ·½çÃ棬ʵÏÖ¹¦Äܲ˵¥µÄµ÷Óá£
¹Ø¼ü´Ê£º J2ME£¬ÊÖ»úÓÎÏ·£¬ÖйúÏóÆ壬À¶ÑÀ
Abstract
The J2ME (Java 2 Platform Micro Edition) is a General platform for the inserts type of
electronic products which promoted by The SUN Company.
This graduation project will study and grasp the software development on handset game which is based on the J2MEtechnology through the designing and developing a s
-ection of blue tooth Chinese chess game, and this graduation project will complete the content: 1.understanding and grasping the J2ME correlation Technology ,includeing J2
-ME`s characteristic, each API function in J2ME platform, the life cycle and concrete d
-evelopment flow of the MIDlets application procedure, as well as the bluetooth connet
-ion technology of the J2ME platform. 2.achieving the basic functions of the Chinese c
-hess, including the foundations of board game piece and the checkerboard , the choise of the board game piece and the motion of the board game piece, thejudgement of victo
-ry and loss and so on. 3.realizing the function of blue tooth connection, establishing th
-e game through founding the service end, which enables the customer end to search ga
-mes and joins the game and maintains the correspondence between the service end and the customer end in the game. 4.designing game interface , realizing the transfering of function menu.
Key Words£º J2ME£¬Mobile game£¬Chinese chess£¬Blue tooth
Ŀ¼
ÕªÒªI
AbstractII
µÚ1Õ Ð÷ÂÛ1
1.1 ÊÖ»úÓÎÏ·ÏÖ×´·ÖÎö1
1.2 ÊÖ»úÓÎÏ·ÌØÕ÷1
1.3 ÊÖ»úÓÎÏ·µÄÀàÐÍ2
1.4 ±¾ÓÎÏ·±³¾°2
1.5 ±¾ÕÂС½á2
µÚ2Õ ¿ª·¢»·¾³¼°Ïà¹Ø¼¼Êõ½éÉÜ3
2.1 ¿ª·¢»·¾³3
2.2 JAVAÓïÑÔµÄÌصã3
2.3 J2ME½éÉÜ6
2.3.1 J2MEµÄÊг¡6
2.3.2 J2MEƽ̨µÄÌåϵ½á¹¹6
2.3.3 MIDlet ÉúÃüÖÜÆÚ7
2.4 WTK½éÉÜ8
2.5 ¿ª·¢¹¤¾ß½éÉܼ°²å¼þ¼¯³É9
2.5.1 Eclipse ½éÉÜ9
2.5.2 Eclipse ME ½éÉÜ10
2.6 À¶ÑÀ¼¼Êõ½éÉÜ10
2.6.1 À¶ÑÀ¼ò½é10
2.6.2 J2MEÖеÄÀ¶ÑÀAPI12
2.7 ±¾ÕÂС½á12
µÚ3Õ ÕûÌåÉè¼Æ¼°ÐèÇó·ÖÎö13
3.1 ÐèÇó·ÖÎö13
3.2 ³ÌÐòµÄÁ÷³ÌÉè¼Æ13
3.3 ³ÌÐòÖи÷¸öÀàµÄÔËÐÐÁ÷³Ì15
3.4 ±¾ÕÂС½á15
µÚ4Õ ³ÌÐòµÄ¸÷¸öÀàµÄ¾ßÌåʵÏÖ¼°µ÷ÊÔ16
4.1 GameÀà16
4.2 GameCanvasÀà16
4.3 ChessÀà17
4.4 GameWorldÀà17
4.4.1 ±äÁ¿µÄ¶¨Òå17
4.4.2 ³õʼ»¯18
4.4.3 »ÆåÅ̼°Æå×Ó18
4.4.4 Æå×ÓÑ¡Ôñ¼°»Ñ¡Ôñ¿ò18
4.4.5 Êä³öÆåÅÌÆå×Ó19
4.4.6 Æå×ÓÌæ»»¼°Æå×ÓµÄÐÐ×ß¹æÔò20
4.4.7 °´¼ü´¦Àí·½·¨23
4.4.8 ÊäÓ®Åжϼ°¸ÃË×ß24
4.4.9 ½ÓÊÜÐÅÏ¢25
4.5 ControlÀà25
4.6 ConnectionÀà26
4.7 ServerÀà28
4.8 ClientÀà29
4.9Ä£ÄâÆ÷Éϵ÷ÊÔÔËÐÐ29
4.10 ±¾ÕÂС½á33
µÚ5Õ ½áÂÛ34
ÖÂл35
²Î¿¼ÎÄÏ×36
¸½Â¼ ²¿·ÖÔ´´úÂë37