Ëæן÷ÖÖ¼¼ÊõµÄ·¢Õ¹£¬ÓÈÆäÊDZà³ÌÓïÑÔ·ÉËÙ·¢Õ¹¶øµ®ÉúµÄÒ»ÏîеĿª·¢ÓïÑÔ¡£Ì¹¿Ë´óÕ½ÊÇ»ùÓÚunityÓïÑÔÉè¼Æ¿ª·¢µÄ£¬±¾Éè¼Æ²ÉÓÃÃæÏò¶ÔÏóµÄÉè¼Æģʽ£¬¶ÔÓÎÏ·ÖеÄËùÓÐÎïÌ帳Óè¶ÔÏóµÄ¸ÅÄîºÍÊôÐÔ¡£ÔÚ¿ªÊ¼ÓÎÏ·ºó£¬Æô¶¯¿Í»§¶Ë£¬ÔÚÖ÷³ÌÐòÔËÐеÄÏß³ÌÖУ¬»Ãæˢн«ÒÔÒ»¶¨µÄƵÂʲÉÓÃË«»º³å¼¼Êõ¶ÔÆÁÄ»Öػ棬ʵʱ·´Ó³Õû¸öÓÎÏ·µÄ½øÐÐ״̬¡£Óû§¿ØÖƵÄ̹¿ËÔËÐÐÔÚÖ÷Ïß³ÌÖУ¬ËæÆÁĻˢеÄƵÂʶøÒƶ¯¡£Ì¹¿Ë½«ÔÚÓÎÏ·¿ªÊ¼Ê±½øÐгõʼ»¯£¬È»ºó½«Ì¹¿Ë»æÖÆÔÚµØͼµÄÉϲ㡣±¾Éè¼ÆÖ÷ҪʵÏֵŦÄÜÊÇÈÃ̹¿ËÄÜÏò°Ë¸ö·½ÏòÒƶ¯£¬²¢ÇÒ´ò³öÅÚµ¯£¬×Óµ¯»÷ÖеÐÈË̹¿Ë£¬×Óµ¯ºÍµÐÈË̹¿ËͬʱÏûʧ£¬²úÉú±¬Õ¨£¬µÐ·½Ì¹¿ËÄÜÖÇÄܵÄÒƶ¯²¢ÇÒ´ò³öÅÚµ¯¡£Äܹ»Ö§³Öµ¥È˶ÔÕ½ºÍÁ½È˶ÔÕ½Á½ÖÖģʽ¡£
±¾ÓÎϷͨ¹ýMicrosoft Visual Studio 2017ƽ̨¿ª·¢»·¾³¼°»·¾³´î½¨£¬Ì¹¿Ë´óÕ½ÓÎÏ·Ó¦ÓóÌÐò²ÉÓÃC/Sģʽ£¬´ÓÐèÇó·ÖÎöµ½ÏµÍ³µÄÉè¼Æ¡¢ÊµÏÖ¡¢µ÷ÊÔ£¬×îÖÕʵÏÖʵÏÖ̹¿Ë´óÕ½ÓÎÏ·µÄ¹¦ÄÜ¡£²¢¾¹ýÑϸñµÄ²âÊÔ£¬¿ÉÒÔÔÚÊÖ»úÉÏÕý³£Ê¹Óá£
¹Ø¼ü´Ê£ºunity£»ÓÎÏ·ÒýÇ棻ÓÎÏ·£»Ì¹¿Ë´óÕ½
With the development of various technologies, especially the rapid development of programming language, a new development language is born. Tank war is based on unity language design and development, this design uses object-oriented design pattern, all objects in the game are given the concept and attribute of the object. After starting the game, start the client. In the thread of the main program, the screen refresh will redraw with double buffer technology at a certain frequency to reflect the status of the whole game in real time. The user controlled tank runs in the main thread and moves with the frequency of screen refresh. The tank will be initialized at the beginning of the game and then drawn on the top of the map. The main function of this design is to make the tank move in eight directions, and hit the enemy tank, the bullet and the enemy tank disappear at the same time, produce explosion, the enemy tank can move intelligently and hit the shell. It can support single player versus two player versus two mode
The game through the Microsoft Visual Studio 2017 platform development environment and environment construction, tank war game application using C / S mode, from the demand analysis to the system design, implementation, debugging, and finally realize the function of tank war game. After strict testing, it can be used normally on mobile phones.
Key words: unity; game engine; game; tank battle