Skip to content

SeanP2001/ATtiny_Snake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATtiny Snake

Table of Contents

Introduction

I created this game to run on my ATtiny handheld games console. The game is a tribute to the original Snake game, featured on Nokia mobile phones at the turn of the millennium.

Programming this game was a great way to practice using singly linked lists in C++.

Controls

Button Action
Left Move the snake left
Right Move the snake right
Up Move the snake up
Down Move the snake down

In order to control the snake you must press and hold the direction button until the snake updates it's position.

Game Objective

The objective of the game is to direct the snake to eat all of the apples. When the snake eats an apple it grows longer and your score increases. If the snake collides with itself, it's game over!

Demonstration

Demo Video

Credits

To create the game sounds I used the excellent code found here written by David Johnson-Davies. I highly recommend checking out David's website, especially for anything relating to the ATtiny microcontroller series.

Further Work

In future I would like to:

  • Add a directional pattern to the snake's body to make it clearer which direction it is moving in.
  • Add slimmer block sprites which help to clarify the snake's shape when parts run side by side with each other.
  • Add varying difficulty settings which would alter the speed of the snake's movement
  • Add the option to play with borders, so the snake cannot wrap around the edges of the screen
  • Add a mode to play against another snake, controlled by the ATtiny

About

A fun game for my ATtiny games console.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published