Skip to content

ShaharFullStack/3DFlightSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛩️ 3D Flight Simulator

A 3D flight simulator built using Three.js, offering an immersive flying experience with customizable aircraft, dynamic environments, and interactive gameplay mechanics.

✨ Features

  • Realistic Flight Physics – Simulated lift, drag, and gravity for an authentic flight experience.
  • Multiple Camera Views – Toggle between first-person (cockpit view), third-person, and far third-person views.
  • Interactive Shooting Mechanics – Shoot bullets with realistic projectile motion.
  • Dynamic Environment – Clouds, buildings, rivers, and a detailed runway enhance the experience.
  • Barrel Roll Maneuvers – Execute barrel rolls to evade obstacles and enemies.
  • In-game Music Player – Built-in soundtrack with track switching.

🚀 Installation

1️⃣ Clone the Repository

git clone https://github.com/ShaharFullStack/3DFlightSimulator.git
cd 3DFlightSimulator

2️⃣ Open the Project in a Browser

This project is a pure JavaScript & Three.js application. Simply open the index.html file in your preferred browser:

start index.html  # Windows
open index.html    # macOS
xdg-open index.html  # Linux

Alternatively, you can run a simple HTTP server:

npx http-server

Then open http://localhost:8080 in your browser.

🎮 Controls

  • W / S – Pitch (Nose Up/Down)
  • A / D – Roll (Left/Right)
  • Q / E – Yaw (Turn Left/Right)
  • Arrow Up/Down – Accelerate / Decelerate
  • Arrow Left/Right – Adjust roll
  • Space – Fire bullets
  • C – Switch camera
  • P – Switch plane type
  • R – Perform a barrel roll
  • [ / ] – Previous/Next music track
  • ; – Stop music

🛠️ Technologies Used

  • Three.js – 3D rendering
  • JavaScript (ES6+) – Core game logic
  • HTML & CSS – User interface
  • Web Audio API – In-game music system

🎯 Future Enhancements

  • Multiplayer mode with online dogfights ✈️
  • Advanced AI-controlled enemy planes 🎯
  • Additional aircraft and weapon upgrades 🚀
  • Weather simulation with wind turbulence 🌪️
  • Virtual Reality (VR) support 🕶️

📄 License

This project is licensed under the MIT License.


Enjoy flying in the 3D Flight Simulator! ✈️🌍

About

A flight simulator with original soundtrack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages