/plushcap/analysis/deepgram/p5js-deepgram-game

Playing With P5.js: Creating a Voice-Controlled Game

What's this blog post about?

In this tutorial, a voice-controlled game is created using P5.js, a creative coding library that simplifies working with the Canvas API. The game features an enemy appearing from one of four directions every few seconds and moving towards the player. If the player says a specific word associated with each direction correctly, a bullet will fly in that direction. The final code for this project can be found on GitHub. To create the game, various P5 functions are used such as preload(), setup(), draw(), and keyPressed(). Additionally, Deepgram's Speech Recognition API is integrated to enable voice control of the game.

Company
Deepgram

Date published
March 22, 2022

Author(s)
Kevin Lewis

Word count
1626

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.