Build a Virtual World Filled with Self-Driving Cars – JavaScript Tutorial

Subscribers:
10,700,000
Published on ● Video Link: https://www.youtube.com/watch?v=5iHejdqYIa8



Category:
Tutorial
Duration: 5:41:41
136,432 views
5,243


Learn to build a virtual environment entirely from the ground up using basic HTML, CSS, and JavaScript. You can easily make something like Pokemon Go using it, but you'll learn to fill it with the self-driving cars from Radu's other course: https://youtu.be/Rs_rAxEsAvI

In this course, you'll learn valuable skills like: mathematics, algorithms, programming, and design—skills that greatly benefited Radu during his PhD and his time at Microsoft. Here's what you'll learn:
* Building a spatial graph from scratch and creating an editor with a dynamic viewport.
* Understanding the mathematics and logic behind user-friendly interfaces in modern software.
* Generating road borders, buildings, and trees using geometry and creating a 3D effect.
* Implementing road markings to prepare for advanced self-driving challenges.
* Enhancing the world editor for user convenience and maximizing auto-generated content.
* Loading real-world data from openstreetmap for city-based simulations.
* Creating a minimap for navigation in expansive worlds.

Created by @Radu

⭐FINAL APP⭐
https://radufromfinland.com/projects/virtualworld

🔗Phase 1 - Self-Driving Cars with JavaScript: https://www.youtube.com/watch?v=Rs_rAxEsAvI

💻CODE💻
https://github.com/gniziemazity/virtual-world

💻COPY CODE FROM HERE💻
https://radufromfinland.com/projects/virtualworld/CODES/lesson_4.js
https://radufromfinland.com/projects/virtualworld/CODES/lesson_5.js

👨‍💻MATERIAL FROM STUDENTS👨‍💻
Brett ported the code from Phase 1 to ThreeJS:
https://github.com/Bretto/evolution

@davidmurphy563 ported the code from Phase 1 to Godot:
https://youtu.be/FJFrSCEWqLU?si=toU4O43h2oaJmKUy

⭐RECOMMENDED PREREQUISITES⭐
https://www.youtube.com/playlist?list=PLB0Tybl0UNfZ3nnHVg8SJ4uK3R4QD6R0H

⭐PREREQUISITES I SPECIFICALLY MENTION⭐
Pythagorean Theorem: https://youtu.be/iqSlzYXdFzw
Euclidean Distance: https://youtu.be/3rPwfmrCwVw
2D Vectors: https://youtu.be/nzyOCd9FcCA
Distance to Segment: https://youtu.be/jvqomjmMsPI
Segment Intersection: https://youtu.be/fHOLQJo0FjQ
Interpolation: https://youtu.be/J_puRs40GhM


⭐EMOJIS⭐
🗑️💾🌐🛑🚶🚙🅿️🚦⚠️🎯📁


⭐EXTRA VIDEOS⭐
Adding the Self-driving Cars
https://youtu.be/wH2aNJxltus

Using Real-world Data (OpenStreetMap)
https://youtu.be/IKwkOajkSHs

How to make a MiniMap
https://youtu.be/ecZRuuLjGQA

☕Buy Radu a Coffee?☕
https://www.buymeacoffee.com/radum

⭐ Contents ⭐
⌨️ (0:00:00) Introduction
⌨️ (0:05:21) Project Setup
⌨️ (0:10:16) Spatial Graphs
⌨️ (0:47:50) Graph Editor
⌨️ (1:27:30) Dynamic Viewport
⌨️ (2:03:15) Generating Roads
⌨️ (2:49:25) Buildings And Trees
⌨️ (3:31:47) Pseudo 3D
⌨️ (4:04:59) Road Markings
⌨️ (5:09:65) Saving the World
⌨️ (5:40:57) Outro

🎉 Thanks to our Champion and Sponsor supporters:
👾 davthecoder
👾 jedi-or-sith
👾 南宮千影
👾 Agustín Kussrow
👾 Nattira Maneerat
👾 Heather Wcislo
👾 Serhiy Kalinets
👾 Justin Hual
👾 Otis Morgan
👾 Oscar Rahnama

--

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news




Other Videos By freeCodeCamp.org


2024-01-09Data Analyst Bootcamp for Beginners (SQL, Tableau, Power BI, Python, Excel, Pandas, Projects, more)
2024-01-08Learn to Code with AI - ChatGPT Tutorial
2024-01-04Memcached Tutorial for Beginners
2024-01-03Full Stack React Developer Course with Appwrite
2023-12-21Master Behavioral Interviews (for Software Engineers)
2023-12-20Learn JavaScript Interactively in NEW freeCodeCamp.org Curriculum
2023-12-19Full Stack Tutorial – Hotel Management Site w/ Next.js, React, Sanity.io, Tailwind, Stripe
2023-12-18Remix and Strapi Crash Course – Full Stack Development
2023-12-14Microsoft Azure Fundamentals Certification Course (AZ-900) UPDATED – Pass the exam in 8 hours!
2023-12-13JavaScript Testing with Jest – Crash Course
2023-12-12Build a Virtual World Filled with Self-Driving Cars – JavaScript Tutorial
2023-12-11Vector Search RAG Tutorial – Combine Your Data with LLMs with Advanced Search
2023-12-07Beginner JavaScript Project – Snake Game Tutorial
2023-12-05AWS Certified Cloud Practitioner Certification Course (CLF-C02) - Pass the Exam!
2023-12-04MLOps Course – Build Machine Learning Production Grade Projects
2023-11-30Build and Deploy an Instagram Clone with React and Firebase – Tutorial
2023-11-29API Documentation Best Practices – Full Course
2023-11-28Advanced Music Production with FL Studio – Tutorial
2023-11-27AWS Cloud Complete Bootcamp Course
2023-11-21Machine Learning with Python and Scikit-Learn – Full Course
2023-11-20Go Programming Tutorial – 3 Beginner Projects