Skip to content

Instantly share code, notes, and snippets.

View MLXXXp's full-sized avatar

Scott Allen MLXXXp

  • Toronto, Canada
View GitHub Profile
@MLXXXp
MLXXXp / JumpingSnake.ino
Created February 1, 2018 16:30
Markus Geiger's Jumping Snake for the Arduboy. Modified and optimised to use the Arduboy2 library
/*
JUMPING SNAKE
Version 1.1
Written by Markus Geiger alias Jayjunx 2018
http://www.chibicom.com
Game License: MIT: https://opensource.org/licenses/MIT
*/
#include <Arduboy2.h>
// A demonstration of the ArduboyPlaytune library used with the Arduboy
// A short score is played repeatedly in the background.
// The current settings are displayed and a circle moves across the
// bottom of the screen. If sound is muted the screen color is reversed.
// Buttons perform the folowing functions:
//
// A - Mute sound output by calling Arduboy2::audio.enabled(true).
// B - Unmute the sound by calling Arduboy2::audio.enabled(false).