Coding Challenge #147: Chrome Dinosaur Game (with Speech Commands machine learning model!)

Coding Challenge #147: Chrome Dinosaur Game (with Speech Commands machine learning model!)

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=l0HoJHc-63Q



Duration: 27:35
210,332 views
5,083


In this challenge, I attempt to make my own version of Google’s Dinosaur Game (T-Rex run!) with a unique twist – controlling the dinosaur (unicorn, in this case) with a machine learning Speech Commands model! Code: https://thecodingtrain.com/challenges/147-chrome-dinosaur-game

🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/aMNxuhdO6

🎥 Previous video: https://youtu.be/vYgIKn7iDH8?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Next video: https://youtu.be/YNyULRrydVI?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
💻 ml5 soundClassifier: https://learn.ml5js.org/#/reference/sound-classifier
💻 p5.collide2D: https://github.com/bmoren/p5.collide2D
💻 jsDelivr: https://www.jsdelivr.com/

Videos:
🎥 ml5.js Sound Classification: https://youtu.be/cO4UP2dX944
🔴 Livestream Archive: https://youtu.be/eRy3j1Alzko

Related Coding Challenges:
🚂 #41 Clappy Bird: https://youtu.be/aKiyCeIuwn4
🚂 #31 Flappy Bird: https://youtu.be/cXgA1d_E-jY
🚂 #138 Angry Birds with Matter.js: https://youtu.be/TDQzoe9nslY

Timestamps:
0:00 Introduction
0:56 Unicorn class
3:05 Jump and move
4:14 Add gravity
6:30 Add images
8:05 Add train obstacles
13:24 Add collision detection
18:40 Add speech commands
20:45 soundClassifier.classify()
23:08 Change collision detection to circles

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://discord.gg/hPuGy2g
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/

🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#chromedinosaurgame #machinelearning #soundclassification #speechcommands #p5js #ml5js




Other Videos By The Coding Train


2019-07-17Coding Train Live 182: Introduction to RunwayML
2019-07-14Whoops
2019-07-13Coding Challenge #148: Gift Wrapping Algorithm (Convex Hull)
2019-07-09Setup: Everything you need to begin the course Working with Data and APIs in JavaScript
2019-07-08Working with Data and APIs in JavaScript
2019-07-02ITP/IMA Spring Show 2019
2019-06-283.5 Web Application Deployment (Glitch and Heroku) - Working with Data and APIs in JavaScript
2019-06-27Coding Train Live 181: Processing Library + Tic Tac Toe
2019-06-22Coding Train Live 180: Processing Java Library, Starting Computational Geometry Challenges
2019-06-21ml5.js: Sound Classification
2019-06-18Coding Challenge #147: Chrome Dinosaur Game (with Speech Commands machine learning model!)
2019-06-173.4 Hiding API Keys with Environment Variables (dotenv) and Pushing Code to GitHub
2019-06-143.3 Mapping Database Entries with Leaflet.js - Working with Data and APIs in JavaScript
2019-06-133.2 Open Air Quality API in Node.js - Working with Data and APIs in JavaScript
2019-06-13Coding Train Live 179: Chrome Dinosaur Game + ml5 Speech Commands Model
2019-06-123.1 API calls from Node.js (Weather data from Dark Sky) - Working with Data and APIs in JavaScript
2019-06-072.7 Project Wrap-up: Accessibility and Design - Working with Data and APIs in JavaScript
2019-06-062.6 Saving Images and Base64 Encoding - Working with Data and APIs in JavaScript
2019-06-052.5 Database Query - Working with Data and APIs in JavaScript
2019-06-042.4 Saving to a Database - Working with Data and APIs in JavaScript
2019-06-032.3 HTTP Post Request with fetch() - Working with Data and APIs in JavaScript



Tags:
p5.js
p5js
javascript
ml5
creative coding
creative technology
coding challenges
google chrome
dinosaur game
google dinosour
javascript for beginners
javascript tutorial
creative coding examples
p5.js game tutorial
p5.js tutorial
p5.js coding train
dinosaur game no internet
machine learning
sound classification
speech commands