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.
28 lines
1.3 KiB
28 lines
1.3 KiB
2 years ago
|
# Bouncer
|
||
|
|
||
|
### Introduction
|
||
|
|
||
|
Some apps require using phone's hardware. In this app you are presented such an opportunity.
|
||
|
|
||
|
Develop an app that uses [accelerometer](https://www.credencys.com/blog/accelerometer/#:~:text=What%20does%20an%20accelerometer%20in,the%20orientation%20of%20your%20app.). 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](https://www.toppr.com/ask/en-af/question/1865186/): 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.
|
||
|
|
||
|
### Example
|
||
|
|
||
|
<center>
|
||
|
|
||
|
<img src="https://github.com/alem-01/alem_public/blob/master/resources/bouncer.01.jpg?raw=true" style = "width: 420px !important; height: 210px !important;"/>
|
||
|
|
||
|
</center>
|