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 #metaverse #threejs
2 views
9
2
6 years ago 00:54:17 20
Google Coding Interview With A Competitive Programmer
4 years ago 00:05:09 22
Offline Coding a LEGO maze / Coding with Cups
9 years ago 00:02:45 33
Root - A robot to teach coding
3 years ago 00:04:38 0
Coding Adventure: Coding a Coding Game
4 years ago 00:03:25 974
real pixel coding
8 years ago 00:03:20 32
“Coding SuperStar“ | The Programming / Coding Song | A Computer Science Song
5 years ago 00:01:00 123
YandereDev: A Lesson in Coding
9 years ago 00:11:54 20
Writing a Tetris in C++ - Speed Coding
4 years ago 00:29:16 9
Coding A Pong Game in Python
3 years ago 10:31:02 15
Live Coding A New Streaming Platform (10 Hours)
3 years ago 00:27:16 33
ASMR Programming - Coding a Snake Game - No Talking