You all might have played the famous game of all time "Snakes" on your Nokia mobile phones. Inspired from the same Sandeep Sasi went far from just playing the game and thought of implementing it on 8051 platform.



The game is built on AT89S51 MCU operating at 27MHz crystal frequency. The game uses
a 16 * 8 LED dot matrix display and five way keys for user interface. A dedicated
delay settings key provides one touch access to the delay settings mode where the
speed of the Snake can be adjusted. Highlights of the game are:

  • As in the original game, the Snake grows in size as it snatches the eggs
  • Eggs appear periodically on the screen at random pixels and will disappear if not snatched within a certain period of time
  • The snake sees no boundaries at the edges of the display, will propagate in to any edge and enter from the opposite edge
  • The Snake can be accelerated / decelerated on the fly
  • There is also a separate delay settings mode to adjust the Snake's speed
  • The game ends when the Snake collides with itself
  • The total eggs snatched is then displayed as the game score
  • The gaming console will hibernate if no user event occurs in 25secs! The game can be resumed by pressing external interrupt / master reset keys!


Small video demonstrating the project:

[yt=425,344]2hflCwJzKwI[/yt]


The project code is not just well designed but also very well documented for a newbie to understand how things are being done. The complete documentation along with source code and schematics can be downloaded from the download section.

Download it here: C51 Snakes - A Nokia inspired game built on 8051
Tags c51 snakenokia snake game on 8051C51 Snakes - A Nokia inspired game built on 80518051 projects
printer friendly create pdf of this news item

Submit comment

(Required; Min length 5)
(Required; will not be displayed)

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am