Ì°³ÔÉßÓÎÏ·ÊǵçÄÔÓÎÏ··¢Õ¹Ê·ÖÐÔçÆÚ×îΪ¾µäµÄÓÎÏ·Ö®Ò»£¬ÎÞÂÛÊÇÔÚµçÄԶˡ¢Òƶ¯¶Ë¡¢»¹ÊÇÓÎÏ·»úÉÏ£¬¶¼Äܼûµ½Óë·É»úÏà¹ØµÄÉä»÷ÀàÓÎÏ·¡£²»¹ý£¬×î³õ³£¼ûµÄÌ°³ÔÉßÓÎÏ·ÊǶþάƽÃæÉϵģ¬²¢ÇÒ´ó¶àÒÔºÚ°×µÄÐÎʽ³öÏÖ£¬¶øÈç½ñ£¬ÔÚµçÄÔÉÏ£¬²»½ö»úÐͶ࣬¶øÇÒÎåÑÕÁùÉ«¡£Java×ÔÃæÊÀºó¾Í·Ç³£Á÷ÐУ¬·¢Õ¹Ñ¸ËÙ£¬¶ÔC++ÓïÑÔÐγÉÁËÓÐÁ¦³å»÷£¬Java¼¼Êõ¾ßÓиüºÃµÄ°²È«ÐÔ¡£
Òò´Ë£¬±¾ÂÛÎÄÖ÷Òª²ûÊöÒÔÃæÏò¶ÔÏóµÄ³ÌÐò¿ª·¢ÓïÑÔJava¼°Î¢ÐÅС³ÌÐò¿ª·¢¹¤¾ßµÄʵÏÖµÄÌ°³ÔÉßÓÎÏ·¡£±¾ÓÎϷͨ¹ý΢ÐÅweb¿ª·¢Õß¹¤¾ßƽ̨¿ª·¢»·¾³¼°»·¾³´î½¨£¬±¾Ì°³ÔÉßÓÎÏ·Ö÷Òª¿ÉÒÔʵÏÖÑ¡ÔñÄѶÈÌ°³ÔÉß³Ô¶«Î÷µÈ¹¦ÄÜ¡£±¾Éè¼ÆÊÇÒ»¸ö»ùÓÚ΢ÐÅС³ÌÐòµÄÌ°³ÔÉßÓÎÏ·Ó¦ÓóÌÐò²ÉÓÃC/Sģʽ£¬´ÓÐèÇó·ÖÎöµ½ÏµÍ³µÄÉè¼Æ¡¢ÊµÏÖ¡¢µ÷ÊÔ£¬×îÖÕʵÏÖʵÏÖÁËÌ°³ÔÉßÓÎÏ·µÄ¹¦ÄÜ¡£²¢¾¹ýÑϸñµÄ²âÊÔ£¬¿ÉÒÔÔÚÊÖ»úÉÏÕý³£Ê¹Óá£
¹Ø¼ü´Ê£ºC/S£»Î¢ÐÅС³ÌÐò£»Ì°³ÔÉߣ»ÓÎÏ·£» Java
Abstract
Snake game is one of the most classic games in the early development history of computer games. Shooting games related to airplanes can be seen on computer, mobile and game machines. However, at first the common snake game was on a two-dimensional plane and mostly appeared in black and white. Now, on computers, there are not only many models but also many colors. Java has been very popular and developed rapidly since it came out, which has formed a strong impact on C++ language. Java technology has better security. Therefore, this paper focuses on the realization of the snake game with object-oriented programming language Java and WeChat applet development tools. This game is built through WeChat web developer tool platform development environment and environment. This greedy snake game can mainly realize functions such as selecting difficult greedy snakes and eating. This design is a snake game application based on WeChat applet. It adopts C/S mode, from requirement analysis to system design, implementation and debugging, and finally realizes the function of snake game. After strict tests, it can be used normally on mobile phones.
Key words: c/s; WeChat applet; Greedy snake; Games; Java
Ŀ ¼
±¾ ¿Æ Éú ±Ï Òµ ÂÛ ÎÄ£¨Éè¼Æ£© I
ÌâÄ¿£ºÌ°³ÔÉßСÓÎÏ·µÄ΢ÐÅС³ÌÐòµÄÉè¼ÆÓëʵÏÖ I
Õª Òª II
Abstract III
1Ð÷ ÂÛ 1
1£®1 Ñо¿±³¾° 1
1£®2 Ñо¿ÒâÒå 2
1£®3¹úÄÚÍâÑо¿ÏÖ×´ 2
2¿ª·¢¼¼ÊõºÍ¿ª·¢Æ½Ì¨ 5
2£®1 Java¼¼ÊõÔÚÓÎÏ·¿ª·¢ÖеÄÓ¦Óà 5
2.1.1ÓÎÏ·¿ª·¢ÖеĽ»»¥ºÍ»æͼ 5
2.1.2¶àÏ̼߳¼ÊõµÄÓ¦Óà 5
2£®2΢ÐÅС³ÌÐòµÄÌصã 6
2£®3 ΢ÐÅweb¿ª·¢Õß¹¤¾ß 6
3ÐèÇó·ÖÎö 7
3£®1¿ÉÐÐÐÔ·ÖÎö 7
3.1.1¼¼Êõ¿ÉÐÐÐÔ 7
3.1.2¾¼Ã¿ÉÐÐÐÔ 7
3.1.3ÔËÐпÉÐÐÐÔ 8
3£®2ÒµÎñÐèÇó·ÖÎö 8
3£®3Óû§ÐèÇó·ÖÎö 9
3£®4ϵͳÓû§ÓÃÀýͼ 10
3£®5¹¦ÄÜÐèÇó·ÖÎö 10
4ÓÎÏ·×ÜÌåÉè¼Æ 11
4£®1 ÓÎÏ·¹¦Äܽṹ±í 11
4£®2ÓÎϷ˳Ðòͼ 11
4£®3ÓÎÏ·Á÷³ÌÉè¼Æ 12
4£®3ÔËÐл·¾³ÒªÇó 13
5 ÓÎÏ·¹¦ÄÜʵÏÖ 14
5£®1ÓÎÏ·µÄʵÏÖ˼· 14
5£®2ÓÎÏ·µÄÉè¼Æ·½°¸ 14
5£®3Ö÷½çÃæʵÏÖ 14
5£®4ÓÎÏ·½çÃ湦ÄÜʵÏÖ 15
5.5³¡¾°Ñ¡Ôñ¹¦ÄÜʵÏÖ 16
5£®6Ì°³Ô¹¦ÄÜʵÏÖ 17
5£®7תÍ书ÄÜʵÏÖ 18
6 ²âÊÔÓëά»¤ 20
6£®1Èí¼þ²âÊÔ¼ò½é 20
6£®2Èí¼þ²âÊÔÒâÒå 20
6£®3Èí¼þ²âÊÔÒâÒå 21
½á¡¡ÂÛ 22
Ö л 23
²Î¿¼ÎÄÏ× 24