mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nprimo
aa5c04cc0f
|
2 years ago | |
---|---|---|
.. | ||
audit | 2 years ago | |
README.md | 2 years ago |
README.md
Bouncer
Introduction
Some apps require using phone's hardware. In this app you are presented such an opportunity.
Develop an app that uses accelerometer. The app should be a smaller version of the 90s game of bouncing ball, where ball would be moving around, and player’s objective is to prevent it from touching the bottom part of the screen.
Rules of the game
- Ball moves in a linear manner
- Ball changes its direction when it hits wall or tiles. The direction change happens by the rule: the degree it came with should be degree it goes out, similar to real life experience.
- All tiles except player's tile disappear when they are hit with a ball
- Game ends when ball touches bottom part of the phone or all the tiles are disappeared.
- Player's tile moves according to phone's tiltiness. If phone is tilted more towards right side, so does the tile, the same with left side.
Objective
- Working with phone hardware.