![]() ![]() MmlMusic ( ProtoStax_MmlMusicPlayer extends the MmlMusic library, so we need the base library).The sketch utilizes the following libraries: #Classic snake game highest score how to#You can use the example sketch ProtoStaxSnakeGame from the GitHub page (link below), which also has instructions on how to get it running. ![]() #Classic snake game highest score portable#This game builds upon the "Arduino 1602 Snake Game" by SadaleNet (see attribution below for link to original code)īuild the ProtoStax Portable Arduino Game Console!įor this demo, I decided to use ProtoStax in Obsidian (black) color for a different look and feel. There is some celebratory music when you hit a high score! The game displays the reason you lost, as well as the high score to aspire to! You have sound effects when the snake turns clockwise, counter-clockwise, when it eats an apple, or when it hits and obstacle and the game ends. Points are awarded based on length of the snake. ![]() The game stops when the snake runs into an obstacle - either one of the 4 edges/walls, or running into itself. During gameplay, press Button1 to make the snake turn counter-clockwise/left and Button2 to make it turn clockwise/right. Press Button1 or Button2 to start the game. Every apple the snake eats makes its length increase by 1 and the game moves a little bit faster! The snake cannot run into itself either (this becomes a danger when the snake gets longer!) If you haven't already seen the Snake Game that was ubiquitous on old (non-smart) flip-style mobile phones, the objective of the game is to avoid obstacles and eat apples. In this post, we'll showcase the 2nd demo game - a Snake Game. You could switch between a Harry Potter, Game of Thrones or Legend of Zelda theme (or create your own easily). This built on an existing Arduino-based Endless Runner game to make the game play more arcade-like - add some background music, sound effects, track high score, etc. Of course, what good is a portable game console if it doesn't have some demo games? :-) We started with an Endless Runner Game with a forest-y theme along with Background music and Sound Effects, where a Harry Potter-esque Runner with a Wand had to jump over Obstacles (Trees) to collect as many points as possible. This console gave you a portable game development environment using a 16x2 Char LCD, two buttons for control, and 2 piezo speakers for background music and sound effects, all in a portable enclosure using ProtoStax. In my previous post Portable Arduino Game Console - Part 1 - Endless Runner, we talked about how to create a Portable Arduino-based Game Console. The position for the portal, whenever it appears is also chosen at random.Portable Arduino Game Console - Part 2 - Snake Game The speed boost may or may not be present There is a thirty percent chance that it will be present on the map every time a fruit is eaten. The positions of the portal and the fruit are also chosen at random to be anywhere on the grid. The starting position of the snake is chosen at random anywhere in the grid. START: Upon start, the snake has a length of 1, and just consists of a head. When the snake 'eats' a fruit on the map, it beocmes longer, and eating a speed boost causes the speed of the snake to double until a fruit is eaten. In this version,Ī random portal is generated on the map whenever the snake reaches emerges from a previous portal, and reachingĪ boundary results in the snake's head emerging from this portal with the same velocity as before. It continues moving with the same velocity from the opposite wall. ![]() In the traditional game, when the sanke's head reaches a boundary, This game is a modified version of the classic snake game, played on a 10x10 board, ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |