Skip to content

Commit

Permalink
Merge pull request RogueMaster#130 from TQMatvey/dev
Browse files Browse the repository at this point in the history
Snake: Allow food to spawn anywhere
  • Loading branch information
xMasterX authored Oct 24, 2022
2 parents ee614f1 + d159c56 commit e8920ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions applications/plugins/snake_game/snake_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -406,4 +406,4 @@ int32_t snake_game_app(void* p) {
free(snake_state);

return 0;
}
}

0 comments on commit e8920ef

Please sign in to comment.