Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Snake game #829

Merged
merged 4 commits into from
Nov 23, 2021
Merged

Add Snake game #829

merged 4 commits into from
Nov 23, 2021

Conversation

OlegSchwann
Copy link
Contributor

@OlegSchwann OlegSchwann commented Nov 17, 2021

What's new

Snake_game_demo.mp4

The merge request adds a game - the Snake, an analogue of the one that was incredibly popular on Nokia 6110 phones. The snake eats fruit and grows. Try not to run into your own tail!
The game occupies 1680 bytes or 0.25% of the firmware size.

Verification

Maybe just play the game? The code doesn't affect anything except the operation of the screen and buttons, no external interaction is required.

Checklist

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
* Applications: Added a classic game https://en.wikipedia.org/wiki/Snake_(video_game_genre)
Co-authored-by: LionZXY <nikita@kulikof.ru>
@OlegSchwann
Copy link
Contributor Author

I have revised the code according to your advises and would like to ask for your approval again.

@OlegSchwann OlegSchwann requested a review from skotopes November 22, 2021 14:25
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
@OlegSchwann OlegSchwann requested a review from skotopes November 22, 2021 22:12
applications/snake-game/snake-game.c Outdated Show resolved Hide resolved
* Snake Game: use low level InputTypePress event instead of InputTypeShort high level unpredictable event
@OlegSchwann OlegSchwann requested a review from skotopes November 23, 2021 14:40
@skotopes skotopes merged commit 68274b6 into flipperdevices:dev Nov 23, 2021
@OlegSchwann OlegSchwann mentioned this pull request Nov 27, 2021
@OlegSchwann OlegSchwann deleted the max/snake_game branch April 23, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants