Skip to content

Bobagi/Doom-Fire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doom-Fire

Recreation of the classic Doom fire effect using pure JavaScript and HTML, inspired by this video.

You can see it running here.

HTML5 JavaScript

Introduction

The Doom fire effect is a visually captivating animation, famously used in the video game Doom. This project replicates that effect using only HTML and JavaScript. It demonstrates how simple web technologies can recreate dynamic visual effects with a nostalgic, retro aesthetic.

Technologies Used

  • JavaScript: The core logic of the fire effect is implemented using vanilla JavaScript. The script manipulates the HTML table by updating the pixel values in real-time, creating the fire animation.

  • HTML: The fire effect is displayed using an HTML table, where each cell corresponds to a pixel of the fire. JavaScript dynamically changes the background color of each cell to simulate the fire effect.

Features

  • Customizable fire speed, size, and color palette: The user can adjust these parameters in real-time via the UI.
  • Dynamic interpolation of colors: The system calculates intermediate colors to create a smooth gradient effect.
  • Wind direction control: The fire can be affected by wind, either blowing left or right.

How to Run

  1. Clone or download the repository to your local machine.
  2. Navigate to the project directory.
  3. Open the Fire.html file in your web browser to see the fire effect in action.

License

This project is licensed under the MIT License. See the LICENSE.md file for details.

Acknowledgments