In this game dev experiment, we will go over the process of coding a 3D piano with JavaScript. We start off by setting up the React project using Vite. Then we programmatically construct the piano model using Three JS meshes. Next, we handle the user input from the keyboard with window event listeners. Finally, we play the pre-recorded piano sounds using the Howler JavaScript library.
📖 Code -
🐦 Twitter -
💻 GitHub -
🌎 Website -
== [ Resources ] ==
Docs -
Tutorial -
Piano Audio -
== [ Timestamps ] ==
00:00 Intro
01:00 Starter Code
01:50 Coding ASMR - Piano Model
14:50 Coding ASMR - User Input
25:05 Rotate Piano Key
27:56 Play Sound with Howler JS
31:00 Refactor Code Final UI
31:24 Demo
== [ Tags ] ==
#suboptimal #javascript #threejs
5 views
596
175
3 days ago 00:53:40 6
Lily Phillips Slept With 100 Men In One Day and Doesn’t Regret It
4 days ago 01:56:37 1
Les secrets à la vue de tous 1/4 ~ Scott Onstott (Secrets in Plain Sight)