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
5 years ago 00:01:00 123
YandereDev: A Lesson in 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)
9 years ago 01:54:12 68
Live Coding a JavaScript Poll App with Chris and Alex (2/2)
4 years ago 00:29:34 4
Coding A Snake Game in Python
3 years ago 00:24:13 1
Coding a Spiral of Primes
2 years ago 00:43:46 4
Coding a crazy weave pattern
1 year ago 00:08:49 1
Coding a Wordle Clone with JavaScript +
4 years ago 00:38:51 5
Coding a fireworks effect
2 years ago 00:01:24 214
Apex Legends | Kill Code: A Life for a Life
4 years ago 00:05:09 22
Offline Coding a LEGO maze / Coding with Cups
4 years ago 00:18:01 2
Coding A Countdown Timer in Python
4 years ago 00:19:03 3
Coding A Twitter Bot in Python
5 years ago 01:52:17 4
Coding a complete snake game in JavaScript
3 years ago 00:27:16 33
ASMR Programming - Coding a Snake Game - No Talking
3 years ago 00:08:26 10
Coding a 3D Retro Snake Game with JavaScript
6 years ago 00:52:48 26
Zbrush ZScript - Coding a Nudge Axis Plugin
5 years ago 00:23:33 9
Coding a Stock Trading Bot - Python Tutorial
5 years ago 00:15:06 12
Neural Networks from Scratch - P.2 Coding a Layer
6 years ago 00:06:32 38
Coding a CS:GO Aimbot From Scratch [Time Lapse]
8 years ago 00:03:20 32
“Coding SuperStar“ | The Programming / Coding Song | A Computer Science Song
3 years ago 00:04:38 1
Coding Adventure: Coding a Coding Game
6 years ago 08:19:02 2
Coding a Better World Together - with Uncle Bob - Day 1