Inspiration
Lock picking has always been a skill I wanted to learn. What if you could do it just by ear?
What it does
Pick the lock to find treasure. Can you break the code to unlock each items? Treasure Hunter is an Alexa game where you can pick locks to find treasure. There are over 80 items to find.
"Alexa, Open Treasure Hunter"
https://www.amazon.com/dp/B08NFNX967
How I built it
Visual Studio Code was used to code this Alexa skill. The skill was coded in NodeJS. The skill is host on alexa-hosted (node.js).
To mix the audio lockpicking sound I use APL (for Audio) https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-for-audio-reference.html
To persist the data https://developer.amazon.com/en-US/docs/alexa/custom-skills/manage-skill-session-and-session-attributes.html
To save and use media files https://developer.amazon.com/en-US/docs/alexa/hosted-skills/alexa-hosted-skills-media-files.html
Challenges I ran into
I selected the skill to be host on alexa-hosted (node.js). This saved time in setting on the services I needed. The difficulty I ran into was testing the skill locally when the the invoke intent used a server feature, such as dynamo DB. The environment variables were not present locally for access. To over come this I minimized the use of the DB and failed safely to fake data.
Accomplishments that I'm proud of
Dynamically creating strings of sounds from a core game logic.
What I learned
How to chain and mix audio for Alexa output.
What's next for Treasure Hunter
More achievements and to create custom sound for each treasure found. I plan to add an UI to the game in time as well, not just voice/audio.
Built With
- amazon-web-services
- apla
- dynamodb
- node.js
Log in or sign up for Devpost to join the conversation.