[Android mobile games] Snake (1)

Source: Internet
Author: User

[Android mobile games] Snake
Introduction

I have been learning about android mobile app development, reading books, coding, forums (mainly www.eoeandroid.com), posting, replying, and accumulating a little experience a month ago, familiar with some of the most basic control usage and basic android development ideas.
I have posted several posts on the eoe forum, including [large release and continuous update of demo sets such as basic controls and basic animation effects ], [Sina Weibo open platform development-simple android client], [Examples of novice projects-Notepad] and other demo small examples.
Recently, I want to go through a "snake" game to fully understand the game development process and technical points used.
 
Game Development Process

After a period of study, I think the game development process includes:
Game Planning
Game resource preparation
Game Framework Design
Game Development
Game Testing
Game release
Game upgrade
 
Game Planning
The first thing we need to do is game planning, which is like researching the needs in software development, organizing the needs, and organizing the needs. Design a game, design a game type, scenario, background, game process, specification, and rules.
 
[Snake] Game Planning
1. There are three screens. The score is displayed in the above column. The middle column is the activity area of the snake, and the following column is the operation column, which includes two operation buttons.
2. After the game starts, a upward snake appears below the screen.
3. The left and right keys in the bottom column of the screen can be used to control the snake. The left-click control controls the rotation of the Snake Head 90 degrees to the left, and the right-click control measures the rotation of the Snake Head 90 degrees to the right.
4. An apple appears randomly in the activity area of the snake on the screen. If you eat an apple, the other one will appear.
5. When a snake uses its head to touch a random Apple, the score is + 10. The speed increases as appropriate.
6. If the snake's head touches the boundary of the active area, the snake will randomly turn to the left or right to 90 degrees.
7. If the snake's head touches the body, the game ends. After the game ends, you can enter the user name to record the score.
8. The ranking function is available to show users and scores in the ranking.
8. The game is a pass-through type. A total of 10 levels are set. The first level will show three apples, and three more apples will be added for each level in the future. In the new level, the length of the snake is restored to the default length, and the speed is the default speed.
9. Set the challenge limit function. Set the initial speed to 10 and the initial length to 10 for 100 apples.
 
[Snake] Game process

1. Start Screen
2. on the menu page, choose start game> challenge limit> ranklist> about snake> help> quit game]
3. [start the game] and [challenge the limit] enter the game
4. After this check box is completed, a message is displayed, indicating whether to continue or exit. If you exit, you are prompted to enter the user name to go to the menu interface. If you continue, you are prompted to enter the next check box. After all customs clearance, a user name is prompted to enter the menu interface.
5. The rankings list user names and points based on the points
6. Help display game rules and operations
7. Show the author's name and version about the snake.
Technorati tags: android, games, and snakes
, Contact email, contact number
8. Exit the game and exit the application directly.
[Snake] main game screen

This article is from the "Software Design and Development" blog

Related Article

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.