Platform game written for the GHI/OutrageousCircuits RETRO game device. Navigate the caves collecting all the pickups and avoiding the creatures and haunted mine carts that patrol the caves. Oh and remember to watch out for the poisonous plants... This game demonstrates the ability to have multiple animated sprites where the sprites can overlap the background environment. See how the player moves past the fence and climbs the wall in the 3rd screen.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers OneBitSound.h Source File

OneBitSound.h

00001 #ifndef __ONEBITSOUND_H__
00002 #define __ONEBITSOUND_H__
00003 class OneBitSound
00004 {
00005     public:
00006         OneBitSound(PinName pin);
00007         
00008         void play(uint8_t channel, const SoundBlock soundBlocks[], int count);
00009     
00010     public:
00011         void update(int elapsedTime);
00012         
00013     private:
00014         DigitalOut      _soundPin;
00015         bool            _lastPinState;
00016         SoundChannel    _channels[4];
00017         int             _totalElapsed;
00018 };
00019 #endif //__ONEBITSOUND_H__