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

Additional content - snake game #552

Closed
bunburya opened this issue Jan 12, 2024 · 1 comment · Fixed by #555
Closed

Additional content - snake game #552

bunburya opened this issue Jan 12, 2024 · 1 comment · Fixed by #555

Comments

@bunburya
Copy link
Contributor

After reading through the book I wrote a simple snake game to apply some of the concepts covered. This also involved dealing with the button peripherals, interrupts and the non-blocking display. I was considering doing a short write-up of the process and figured where better to put it than in the book itself, either as a new chapter or an appendix or something.

Would there be any interest in this? If so I can work on a PR. The code is at https://github.com/bunburya/snakebit - it is only written to work on the v2 (because that's all I have).

@eldruin
Copy link
Member

eldruin commented Jan 17, 2024

Nice work! The code seems pretty clear.
I think it would fit here either as a chapter after punch-o-meter or as an appendix.
Something similar to the LED compass chapter would be great, with emphasis on the hardware interface and including a general game (loop) design overview.
It would be ideal if it was ported to the V1 as well but we can add a disclaimer and ask for contributions porting it otherwise.

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 a pull request may close this issue.

2 participants