Recreating a Train Simulation with JavaScript | Coding on the Train! @Radu
Recreating a Train Simulation with JavaScript | Coding on the Train!  @Radu
Uploaded June 2024 | Updated September 2026, 2 weeks ago
Join me on a train ride as I recreate my first train simulation using JavaScript! 🚂 In this video, I'll show you how to draw train tracks and animate a train using dashed lines and Bezier curves, all on an HTML Canvas. Whether you're a beginner or an experienced coder, this tutorial has something for everyone. Here's what you'll learn:

Highlights:
- Setting up an HTML Canvas with custom styles
- Drawing train tracks procedurally with JavaScript
- Creating and animating a train along the tracks
- Implementing smooth curves with Bezier curves
- Adding interactivity with customizable parameters
- Live coding challenges and solutions

Check out the final demo on my website and stay tuned for more projects, including a game based on the trolley problem! Like, comment, and subscribe for more coding adventures.

Old Version: youtu.be/ZNkapOL4OBw
DEMO: radufromfinland.com/projects/train_2
Recreating a Train Simulation with JavaScript | Coding on the Train!🚙Self-driving Car🩻🏢X-RAY BUILDINGS🏢🩻 Easter Egg 🐰🎅JavaScript 🔴 Christmas Calendar 📅 Day 2 🎄Machine Learning Course - Lesson 9: KNN Classifier with Python and Scikit-learnBad Apple!! But it’s a JavaScript TutorialDistance from Point to Segment Explained using JavaScriptDetecting Colored Markers with JavaScript [Understanding AI - Lesson 13 / 15]Why It Took Me 2 Years to Make This Course🎃 Coding a Theremin in JavaScript (#JSVFX) 🎃JavaScript 🟢 Christmas Calendar 📅 Day 21 🎄Bad Apple - JavaScript Static 🏆COMPETITION RESULTS 🏆A Virtual World - JavaScript Course: Lesson 7 / 11 [Road Marking Editor with JavaScript]
Radu Mariescu-Istodor |

Recreating a Train Simulation with JavaScript | Coding on the Train!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER