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

Committer:
taylorza
Date:
Mon Feb 16 03:46:57 2015 +0000
Revision:
16:f9227904afc4
Parent:
9:34008d8b1cdf
Added a 4th game screen

Who changed what in which revision?

UserRevisionLine numberNew contents of line
taylorza 9:34008d8b1cdf 1 #ifndef __ONEBITSOUND_H__
taylorza 9:34008d8b1cdf 2 #define __ONEBITSOUND_H__
taylorza 9:34008d8b1cdf 3 class OneBitSound
taylorza 9:34008d8b1cdf 4 {
taylorza 9:34008d8b1cdf 5 public:
taylorza 9:34008d8b1cdf 6 OneBitSound(PinName pin);
taylorza 9:34008d8b1cdf 7
taylorza 9:34008d8b1cdf 8 void play(uint8_t channel, const SoundBlock soundBlocks[], int count);
taylorza 9:34008d8b1cdf 9
taylorza 9:34008d8b1cdf 10 public:
taylorza 9:34008d8b1cdf 11 void update(int elapsedTime);
taylorza 9:34008d8b1cdf 12
taylorza 9:34008d8b1cdf 13 private:
taylorza 9:34008d8b1cdf 14 DigitalOut _soundPin;
taylorza 9:34008d8b1cdf 15 bool _lastPinState;
taylorza 9:34008d8b1cdf 16 SoundChannel _channels[4];
taylorza 9:34008d8b1cdf 17 int _totalElapsed;
taylorza 9:34008d8b1cdf 18 };
taylorza 9:34008d8b1cdf 19 #endif //__ONEBITSOUND_H__