Welcome to BrainRot Survival, a trivia-based game where your wits are your best weapon! Answer questions to survive, and manage your character's Health and Aura stats. Every correct answer boosts your stats, but get it wrong, and you’ll pay the price. Keep your stats balanced to avoid a total BrainRot! Can you survive the quiz and make it out on top?
- Trivia Questions: Each question tests your knowledge and impacts your character’s stats.
- Character Stats: Health and Aura bars dynamically change based on your choices.
- Character Customization: Watch your character evolve as you progress!
- Game Over Condition: If your Aura reaches zero, it's game over!
- Real-Time Feedback: Your stats are updated instantly as you answer questions.
- A web browser to play the game.
- Basic understanding of HTML and JavaScript (optional if you just want to play).
- Download the Game: Clone the repository or download the HTML and CSS files.
- Open the Game: Launch the
main.html
file in any modern web browser. - Answer Questions: Select your answer to questions and keep an eye on your Health and Aura stats!
- Survive: Keep both stats above zero to avoid a game over!
/assets
└── fighter1.jpg # Character image
/styles.css # Styling file for the game
index.html # Main HTML file containing the game logic
You can easily modify the look of the game by editing the following:
- Character Image: Change the background image of the character in the
.character
class. - Health and Aura Bars: Customize colors and widths in the
progress-bar
andprogress
classes instyles.css
. - Fonts & Layout: Play around with font styles and layout in
styles.css
.
index.html
contains the game’s layout:.left-section
for questions and options..right-section
to show your character and stats (Health and Aura).
styles.css
handles the game’s visual design:- Button effects, fonts, layout, colors, and animations.
- The character's image is styled in a circular frame with the
.character
class. - The Health and Aura bars are styled to reflect progress.
checkAnswer(isWrong)
:- Handles the logic when you select an answer.
- Increases or decreases Health and Aura based on whether the answer is correct or wrong.
- Keeps progress bars within 0-100% range.
- Ends the game if Aura depletes, or if Health maxes out at 100%.
- More Questions: Add a larger question pool.
- New Game Modes: Include multiple difficulty levels.
- Power-ups & Effects: Add items or power-ups to alter gameplay.
- Leaderboard: Track scores and achievements for competitive play.
- Sound and Animations: Make the game more immersive.
Feel free to fork the project, improve it, and submit pull requests. Contributions are always welcome!
This project is open source under the MIT License. Feel free to use, modify, and distribute the code
Good luck surviving **BrainRot Survival**! 🎮💥