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

SoundEffects.h

Committer:
taylorza
Date:
2015-02-16
Revision:
16:f9227904afc4
Parent:
4:45ff7fc8a431

File content as of revision 16:f9227904afc4:

#ifndef __SOUNDEFFECTS_H__
#define __SOUNDEFFECTS_H__
#include "SoundBlock.h"

CREATE_EFFECT(Sound_PlayerJumping)
    TONE(100, 20, 500, 2, 16, 0),
END_EFFECT

CREATE_EFFECT(Sound_PlayerDying)
    TONE(10, 1000, 200, 2, 16, 1),
    PAUSE(1, 4000),
    TONE(10, 1000, 200, -2, 16, 1),
END_EFFECT

CREATE_EFFECT(Sound_PickupItem)
    TONE(1, 2000, 400, 0, 128, 0),
    TONE(1, 2000, 400, 0, 16, 0),
    TONE(1, 2000, 600, 0, 128, 0),
    TONE(1, 2000, 600, 0, 16, 0),
    TONE(1, 2000, 800, 0, 128, 0),
    TONE(1, 2000, 800, 0, 16, 0),
END_EFFECT

CREATE_EFFECT(Sound_NewScreen)
    TONE(4, 1000, 500, 100, 128, 1),
    TONE(4, 1000, 500, 100, 64, 0),
    TONE(4, 1000, 500, 100, 16, 0),
END_EFFECT

CREATE_EFFECT(Sound_GameOver)
    TONE(10, 400, 400, -20, 128, 0),
    PAUSE(10, 400),
    TONE(10, 400, 350, -20, 96, 0),
    PAUSE(10, 400),
    TONE(10, 400, 300, -20, 64, 0),
    PAUSE(10, 400),
    TONE(10, 400, 250, -20, 32, 0),
    PAUSE(10, 400),
    TONE(10, 400, 200, -20, 16, 0),    
END_EFFECT

#endif //__SOUNDEFFECTS_H__