mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
Merge pull request #130 from TQMatvey/dev
Snake: Allow food to spawn anywhere
This commit is contained in:
@@ -196,8 +196,8 @@ static Point snake_game_get_new_fruit(SnakeState const* const snake_state) {
|
||||
if((buffer[y] & mask) == 0) {
|
||||
if(newFruit == 0) {
|
||||
Point p = {
|
||||
.x = x * 2,
|
||||
.y = y * 2,
|
||||
.x = x,
|
||||
.y = y,
|
||||
};
|
||||
return p;
|
||||
}
|
||||
@@ -406,4 +406,4 @@ int32_t snake_game_app(void* p) {
|
||||
free(snake_state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user