- Jiayan Liu u6107041 - team leader, help page code, morale builder
- Yan Yang u6169130 - Android project building, code building, testing
- Wei Xing u5656487 - create adapter and slide screen android code as introduction and level page (class of GuideActivity, LevelActivity, WelcomeActivity, VpAdapter), design UML Diagram
- Zhiyong Sun u6123044 - Android project building, code building, testing
The game has three versions of difficulty.
The moving speed of snake will be faster and faster as step counts increases.
Snake will slough after a certain time period and its skin will be remaining in the gaming field for a certain amount of time. After snake molting the length of snake will halve.
- Background - made of little squares of two different colours.
- Fruits - will appear on the gaming field randomly and have different colours. Each type of fruit has a special ability to buff the snake(Speed up, Speed down, Avatar, etc.). The fruit will also give a player bonus score.
- Snake - has a increasing speed as game steps increasing(The speed has limit). Its length increases if eats a fruit. Game changes to end state if snake hits walls or its own body or molted skin. Changes direction as input indicates.
- Score box - increases as steps increases. It shows the highest score from last player and current changing score. adds a bonus score if a fruit has been eaten.
The build of the structure is the most hard part we accomplished in this assignment. It is significant to have a very thoughtful and logical structure at the beginning or even before starting to build a project like the Snake we have. A good project should always start with a very detailed UML so that we know which part to implement individually and it will also be easier for us to test which part of the program has flaws or bug. On the other hand, the use of decorator and observer is quite important since that we will be able to design the game in a simpler approach, in other words, the bigger your project is the more necessary you would need decorator and observer.
I JIAYAN LIU declare that everything I have submitted in this assignment is entirely my own work, with exceptions given below.
I Yan Yang declare that everything I have submitted in this assignment is entirely my own work, with exceptions given below.
I Wei Xing declare that everything I have submitted in this assignment is entirely my own work, with exceptions given below.
- the idea and template of Fragment Adapter: https://developer.android.com/reference/android/support/v4/view/PagerAdapter
- usage note of Adapter: https://blog.csdn.net/zhaokaiqiang1992/article/details/22575757
- the idea and template of slide screen: https://www.sitepoint.com/using-viewpager-to-create-a-sliding-screen-ui-in-android/
- apply ViewPager to adapt image : https://developer.android.com/training/animation/screen-slide
I Zhiyong Sun declare that everything I have submitted in this assignment is entirely my own work, with exceptions given below.
add references from where you obtained the idea form the game and ideas about aspects of the game
- the template of the Adapter in this assignment is from: https://developer.android.com/reference/android/support/v4/view/PagerAdapter
- the template of the slide screen in this assignment is from: https://www.sitepoint.com/using-viewpager-to-create-a-sliding-screen-ui-in-android/