tshiels / Snake

Snake game written in Embedded-C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snake

Snake game written in Embedded-C. Programmed on ATmega1284 microcontroller with ATmel Studio. Utilized Nokia 5110 LCD for graphics and Super Nintendo controller for user input. I used the AVR graphics library by Andy Gock https://andygock.github.io/glcd-documentation/

UPDATED June 2020:

Current Working Version

Link to video demo: https://youtu.be/07_hWhRFD4I

Working features:

  • Snake can maneuver around the screen and collect fruit
  • Fruit location is randomized by using user input as seed value.
  • Score is kept and displayed at end of each game.
  • Self-collision
  • Snake grows as it collects fruit, with size of array dynamically increasing

Recent Fixes:

  • Fixed border issue where if direction changed right as snake reached border, the game would only check against the borders in the new direction, allowing the snake to move past the original border.
  • Fruits no longer appear on the border

Known Bugs:

  • Fruits can appear on the snake's body.

Features In-Progress:

  • High-score saved permanently in EEPROM.

About

Snake game written in Embedded-C


Languages

Language:C 94.8%Language:C++ 5.2%