I. Introduction of the Project
Snake is a very classic game, it is also suitable for learning. This tutorial will work with you on an Android version of the snake game.
I have already uploaded the good case to the application treasure, we can download it and play it. In order to distinguish with other snake, I named "Happy Snake".
app Treasure Link:
Http://sj.qq.com/myapp/detail.htm?apkName=net.chengyujia.happysnake
Here's two sneak peek, haha.
How to play everyone should know, but I would like to mention more. Control the direction of the snake by the arrow keys on the screen. Each time a snake eats a food, the body grows a point, and the speed of progress is accelerated. When the head of a snake hits the wall or its body, the game ends and the score is the number of food eaten.
Second, the development environment
Android Studio 2.0+
iii. Preparation of knowledge
The following prerequisites are required to study this tutorial:
1.Java Foundation;
2.Activity and layout files;
3. Common layout linearlayout, common control TextView, ImageView, button and so on;
4. Data storage sharedpreferences.
with the above preparatory knowledge, you can continue with the following courses.
Android Happy Snake Game Project development Tutorial-01 Project Overview