mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 22:32:29 +03:00
Arkanoid: rand_range, remote temp number
This commit is contained in:
parent
4417a37a2e
commit
9c3406895c
@ -67,8 +67,7 @@ static const NotificationSequence sequence_short_sound = {
|
|||||||
|
|
||||||
// generate number in range [min,max)
|
// generate number in range [min,max)
|
||||||
int rand_range(int min, int max) {
|
int rand_range(int min, int max) {
|
||||||
int number = min + rand() % (max - min);
|
return min + rand() % (max - min);
|
||||||
return number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void move_ball(Canvas* canvas, ArkanoidState* st) {
|
void move_ball(Canvas* canvas, ArkanoidState* st) {
|
||||||
|
Loading…
Reference in New Issue
Block a user