Android Project Development Week fifth

Source: Internet
Author: User

  this week's progress: this week is the last week of the Android project development, which basically completes the tasks of Android game development on a progress basis.

The overall development report is as follows:

1. Demand Analysis: The rapid development of mobile Internet, people tend to diversify their lives, the electronic products represented by smartphones have gradually been sought after by people, mobile games gradually become a way of people's leisure and entertainment. This software is based on the Android system using 2.5D technology development of Leisure puzzle Tower defense game.   Tower Defense game is the most popular type of game on the market at present. 2.System Design:The game's planning mainly includes: Game type positioning, presentation technology and target platform to determine the work. Game Type the game all the operation for the touch screen complete, by placing the arrow tower to prevent the attack of the Elves, belong to the casual puzzle games.  Game running platform for Android 2.2, backwards compatible with Android2.1, Android 2.0, Android 1.6.  How to operate this game all about the game is touch-screen operation, the player can drag the tower to place the towers, while touching the current Arrow tower to show the operation of the Arrow Tower operations layer.  Rendering technology compared to 2D games, the game using 2.5D technology development, can have a three-dimensional effect, with the location of the different monster Elves can block the arrow tower, but also can be obscured. The game's class framework launches the game, first created is the tafanggameactivity, in tafanggameactivity first display the user interface as a welcome interface Welcomeview The Welcome screen after the end of the play, The game will switch to the main menu interface Mainmenusurfaceview in the main menu interface, the interface has the continuation of the game, new games, standings, sound settings and help selection buttons, players stand-alone new games into the game interface Gameview , the player stand-alone leaderboard Button enters the game's standings interface Highjifensurfaceview, when the player's stand-alone Help button, the system is counted into the Help interface Helpview; If the machine continues the game interface, pop-up game single-Block dialog box, Select the appropriate game file to enter the game interface Gameview, and then the last game play continues. When entering the game interface, the player can build arrows to block the attack of Monster Elves, when the main city blood volume 0 o'clock, tower defense game failed, the system will jump to the game failure bounded Gameoverview.3. System realization:  (1) The implementation class tafanggameactivity of the public class activity, which is obtained by extending the activity, is the entire game controller and the program entrance of the whole game.  Database class Dbutil This class contains the data query that the system uses, insert and so on database operation method. (2) interface-related class Welcome interface class Welcomeview This class is a welcome screen to appear after the software starts, and by changing the transparency of the image to achieve the image gradient, screen any touch screen and keyboard operation during operation. Main operating interface class Mainmenusurfaceview, which is the main interface of the software, can play the game sound settings, jump Help interface, view the game standings, run new games and read the game archive to continue the game and other operations. Leaderboard Interface Class Highjifensurfaceview, the class is the implementation of the game table, the database query in the application of paging technology, by sliding up or down the screen to achieve the table of information pagination display. Help interface class Helpview, this class is mainly static to the reader to introduce the play of the wizard Tower Defense. The Sound settings class interface Musicsurfaceview, which is primarily responsible for the opening and closing of the design sounds of Beijing music and turrets in the game. Game End Interface Class Gameoverview, which is the end of the game after the failure of the interface, the class and the Welcomeview class similar, but also by changing the transparency of the image to achieve the image of the gradient. Game Interface Class Gameview, this class is the most important class in the game program, mainly responsible for the game screen drawing (3) the auxiliary thread class Gameviewdrawthread class inherits from the thread class, The Surfaceview object Ifgameoverthread class that redraws Gameview inherits from the thread class and is used to determine when the game ends. Both the Shellnumthread class and the Shellthread class inherit from the thread class to control the generation of shells and the firing path of the shells. Both the Targetnumthread class and the Targetthread class inherit from the thread class, respectively, to control the threads of the drop-down option group in the interface.  The Timethread class and the Shuijingthread class inherit from the thread class and are used to control the threading of Crystal objects in the game interface. (4) The Shell class of the Entity object class and the target shell class are the object classes developed for the description of the turret shooting shells, and target is the object class that describes the monster elf development. The Singlejianta class and the Singlegojianta class are the object classes that describe the Arrow Tower development in the game interface, which is the arrow Tower class that describes the process of dragging an arrow tower in the game.  4. System test:After playing this game many times on the virtual device, the expected functionality is basically complete. Each game interface is also well-displayed. The normal operation of the game Wizard can be a normal arrow tower can also play the role of shooting elves, such as the game's various interfaces can also be displayed: Game main interface of the table interface help interfaceSummary:Tower Defense Game---Wizard Tower Defense has been basically developed, but also to achieve the original design function, but through the development of the test, testing found that there are still some need to optimize and improve the game, 1, the game was initially conceived but the map, single and multi-level map game compared to the function is exactly the same,  The only difference is that the game is less playable and can be expanded to add level maps based on the game. 2, the appropriate increase of different types of arrows tower, the addition of the Arrow Tower upgrade module This game only designed two arrows tower, and can not be upgraded, so that the case may be appropriate to increase the different types of arrows, such as deceleration Arrow tower. The arrows can be scaled to upgrade to an arrow tower that can be upgraded to a higher level of damage or add some extra effects, such as a magical attack after an arrow tower upgrade, such as fire damage on arrows.

Android Project Development Week fifth

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.