Skip to content

Latest commit

ย 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš”๏ธ Shield of Wrath Quiz โ€“ Wrath Edition ๐Ÿ›ก๏ธ

HTML5 CSS3 JavaScript Canvas Responsive License

An interactive anime quiz experience with dual-theme modes and dynamic particle effects

๐ŸŒ Live Demo โ€ข ๐Ÿ“– Documentation โ€ข ๐Ÿ› Report Bug โ€ข โœจ Request Feature

Shield of Wrath Quiz Preview


๐Ÿ“– About The Project

The Shield of Wrath Quiz is a fan-made interactive quiz application celebrating The Rising of the Shield Hero anime series. Built with pure HTML, CSS, and JavaScript, it features dynamic dual-theme modes, canvas-based particle animations, and an engaging user experience to test your knowledge of Naofumi Iwatani's journey through betrayal, redemption, and heroism.

๐ŸŽฏ What Makes This Special

This quiz captures the essence of the series through:

  • ๐Ÿ”ฅ Dual Theme System โ€“ Switch between Wrath Mode (fire particles) and Shield Mode (ice particles) with smooth transitions
  • ๐Ÿ“ 15 Challenging Questions โ€“ Carefully crafted questions covering characters, legendary weapons, kingdoms, and pivotal plot moments
  • โฑ๏ธ Three Difficulty Levels โ€“ Adaptive time challenges (Easy: 45s, Medium: 30s, Hard: 20s per question)
  • ๐ŸŽจ Interactive Animations โ€“ 140+ canvas particles, SVG graphics with dynamic gradients, and glassmorphism UI
  • ๐Ÿ† Achievement System โ€“ Unlock badges for perfect scores, speed runs, and consistent performance
  • โŒจ๏ธ Full Keyboard Support โ€“ Complete navigation without touching your mouse
  • ๐Ÿ’พ Smart Persistence โ€“ Remembers your theme preference across sessions

โœจ Features

๐ŸŽจ Visual & Dynamic Particle System

  • โšก 4 Hero Themes โ€“ Cycle through:
    • ๐Ÿ”ฅ Wrath Mode โ€“ Ascending red/orange fire particles
    • ๐Ÿ›ก๏ธ Shield Mode โ€“ Descending cyan/teal ice crystal particles
    • โšก Spear Mode โ€“ Golden lightning streak physics
    • ๐Ÿน Bow Mode โ€“ Emerald green rising mana sparks
  • ๐ŸŒˆ SVG & Canvas FX โ€“ Option selection fireworks, glowing shield logo, backdrop blur glassmorphism UI

๐ŸŽฎ Gameplay & RPG Progression

  • โšก Hero XP & Level Progression โ€“ Earn XP per quiz based on accuracy, speed, and combo streaks. Level up (Lv. 1 Novice $\rightarrow$ Lv. 10 Shield Hero Legend)
  • ๐Ÿ“– Shield Hero Lore Codex โ€“ Interactive encyclopedia modal featuring character bios, weapon trees, and Curse Series lore
  • โž• Custom Question Builder โ€“ Create custom trivia questions saved in localStorage that merge into your quiz bank
  • ๐ŸŽฒ Dynamic Question Bank โ€“ 25+ questions with option shuffling
  • ๐Ÿ›ก๏ธ Hero Lifelines & Skills โ€“ Activate Air Strike Shield (50:50), Filo's Swiftness (+10s), and Raphtalia's Insight (Hint)
  • โšก Quest Modes โ€“ Choose between Standard Campaign or Sudden Death
  • ๐Ÿ”ฅ Combo Streak Multipliers โ€“ Build consecutive correct answer streaks (๐Ÿ”ฅ 3x Combo)
  • ๐Ÿ“– Post-Quiz Lore Review โ€“ Detailed answer review with anime lore explanations
  • ๐Ÿ† Hall of Heroes Leaderboard โ€“ LocalStorage modal tracking top 10 historical quest performances
  • ๐Ÿ“œ HTML5 Canvas Certificate โ€“ Download a personalized high-resolution PNG certificate with your Hero Level and Title
  • ๐Ÿ”— Social Score Sharing โ€“ One-click score snippet copy for Discord/Twitter

๐Ÿ–ฅ๏ธ Technical Excellence

  • โŒจ๏ธ Keyboard Navigation โ€“ Full accessibility (โ†‘/โ†“ choose, โ†/โ†’ navigate, 1/2/3 skills, Enter confirm)
  • ๐Ÿ“ฑ Fully Responsive โ€“ Optimized layout for desktop, tablet, and mobile devices
  • ๐Ÿš€ Zero Dependency Vanilla Stack โ€“ Pure HTML5, CSS3, and ES6+ JavaScript

๐Ÿ› ๏ธ Tech Stack

Frontend

  • HTML5 (Semantic markup)
  • CSS3 (Custom properties, animations)
  • Vanilla JavaScript ES6+

Graphics & Animation

  • Canvas API (Particle systems)
  • SVG (Dynamic gradients)
  • CSS Transforms & Filters

Data & Storage

  • LocalStorage API
  • JSON data structures

Performance

  • RequestAnimationFrame
  • Hardware-accelerated rendering
  • Optimized DOM manipulation

๐Ÿ“‚ Project Structure

Shield-of-Wrath/
โ”‚
โ”œโ”€โ”€ index.html          # Main quiz structure with 15 questions
โ”œโ”€โ”€ style.css           # Dual-theme styling with CSS variables (600+ lines)
โ”œโ”€โ”€ main.js             # Quiz logic + particle animation systems (500+ lines)
โ”œโ”€โ”€ README.md           # Project documentation
โ”‚
โ””โ”€โ”€ asset/
    โ”œโ”€โ”€ favicon.png     # Browser favicon (32x32)
    โ”œโ”€โ”€ og-image.png    # Social media preview (1200x630)
    โ”œโ”€โ”€ shieldhero.png  # Wrath mode background (1920x1080)
    โ”œโ”€โ”€ shieldmode.jpg  # Shield mode background (1920x1080)
    โ””โ”€โ”€ Cursor.cur      # Custom cursor asset

๐Ÿš€ Getting Started

Prerequisites

  • A modern web browser (Chrome 90+, Firefox 88+, Safari 14+, Edge 90+)
  • Optional: Local web server for development

Installation

1๏ธโƒฃ Clone the repository:

git clone https://github.com/Divyansh3105/Shield-of-Wrath.git

2๏ธโƒฃ Navigate to project directory:

cd Shield-of-Wrath

3๏ธโƒฃ Launch the quiz:

Option A: Direct Browser Launch

# Simply double-click index.html
# Or right-click โ†’ Open with โ†’ Your Browser

Option B: Local Development Server

# Using Python 3
python -m http.server 8000

# Using Node.js http-server
npx http-server -p 8000

# Using PHP
php -S localhost:8000

4๏ธโƒฃ Access the application:

Open your browser and navigate to: http://localhost:8000

๐ŸŽฎ How to Use

1๏ธโƒฃ Start Screen

  • Enter Your Hero Name โ€“ Personalize your quiz experience
  • Select Difficulty Level:
    • ๐ŸŸข Easy โ€“ 45 seconds per question (Recommended for beginners)
    • ๐ŸŸก Medium โ€“ 30 seconds per question (Balanced challenge)
    • ๐Ÿ”ด Hard โ€“ 20 seconds per question (For true Shield Hero fans!)
  • Click "Begin Your Quest" to start

2๏ธโƒฃ Quiz Navigation

Mouse Controls:

  • Click on answer options to select
  • Use "Previous" and "Next" buttons to navigate
  • Click theme toggle button to switch modes

Keyboard Controls:

  • โ†‘ / โ†“ โ€“ Navigate between answer options
  • โ† / โ†’ โ€“ Move between questions
  • Enter โ€“ Confirm selection and advance
  • Works seamlessly without mouse!

3๏ธโƒฃ Theme System

  • โšก Wrath Mode (Default) โ€“ Fire theme with ascending red/orange particles
  • ๐Ÿ›ก๏ธ Shield Mode โ€“ Ice theme with descending cyan/teal particles
  • Click the theme toggle button to switch
  • Your preference is automatically saved

4๏ธโƒฃ Results Screen

  • Animated Score Display โ€“ Circular progress ring with percentage
  • Answer Review โ€“ See all questions with correct answers highlighted
  • Achievement Badges โ€“ Unlock based on your performance
  • Performance Stats โ€“ View your completion time
  • Retry Option โ€“ Take the quiz again to improve

๐ŸŽฏ Purpose & Learning Outcomes

This project was developed as a portfolio showcase to demonstrate:

๐Ÿ’ป Technical Skills

  • โœ… Proficiency in vanilla JavaScript without frameworks or libraries
  • โœ… Advanced Canvas API implementation for particle systems
  • โœ… CSS custom properties for dynamic theming
  • โœ… Responsive web design principles and mobile-first approach
  • โœ… Performance optimization techniques (60fps animations)
  • โœ… LocalStorage API for state persistence

๐ŸŽจ Design Skills

  • โœ… Modern glassmorphism UI design
  • โœ… Color theory application in dual-theme systems
  • โœ… Animation principles โ€“ timing, easing, and visual feedback
  • โœ… Typography and visual hierarchy
  • โœ… User experience (UX) design patterns

๐Ÿ”ง Development Practices

  • โœ… Clean, maintainable code structure
  • โœ… Semantic HTML5 markup
  • โœ… Accessibility considerations (WCAG guidelines)
  • โœ… Cross-browser compatibility testing
  • โœ… Version control with Git/GitHub

๐Ÿ“Š Performance Metrics

  • โšก Load Time: < 1 second (on standard connection)
  • ๐ŸŽฌ Frame Rate: Consistent 60fps animation
  • ๐Ÿ“ฆ Bundle Size: ~50KB (HTML + CSS + JS)
  • ๐Ÿ“ฑ Mobile Performance: Optimized for low-end devices
  • โ™ฟ Accessibility Score: 95+ (Lighthouse)
  • ๐ŸŽจ PageSpeed Insights: 90+ performance score

๐ŸŒŸ Future Enhancements

Phase 1 โ€“ Audio & Visual

  • ๐ŸŽต Background music toggle with Shield Hero OST
  • ๐Ÿ”Š Sound effects for correct/incorrect answers
  • ๐ŸŽฅ Embedded character introduction videos
  • โœจ More particle types (lightning, holy light)

Phase 2 โ€“ Advanced Features

  • ๐ŸŒ Leaderboard system with Firebase integration
  • ๐Ÿ‘ฅ User authentication and profile system
  • ๐Ÿ“Š Question categories (Characters, Plot, World, Abilities)
  • ๐ŸŽฒ Random question mode
  • ๐Ÿ“ˆ Progress tracking across multiple attempts

Phase 3 โ€“ Expansion

  • ๐ŸŽจ Additional themes (Spear Hero, Bow Hero, Sword Hero)
  • ๐ŸŒ Multi-language support (English, Japanese)
  • ๐Ÿ“ฑ Progressive Web App (PWA) with offline support
  • ๐Ÿ† Global leaderboard with social sharing
  • ๐Ÿ”„ Weekly challenge mode with new questions

Phase 4 โ€“ Community

  • ๐ŸŽฎ Custom quiz builder for users
  • ๐Ÿ’ฌ Community submissions for questions
  • ๐Ÿค Multiplayer mode (real-time competitive)
  • ๐ŸŽฏ Achievement system with unlockable themes

๐Ÿค Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

How to Contribute

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contribution Ideas

  • ๐Ÿ› Report bugs or issues
  • ๐Ÿ’ก Suggest new features or enhancements
  • ๐Ÿ“ Add more quiz questions
  • ๐ŸŽจ Design new themes
  • ๐ŸŒ Translate to other languages
  • ๐Ÿ“– Improve documentation

๐Ÿ“ธ Screenshots

๐Ÿ”ฅ Wrath Mode

Wrath Mode Screenshot Fire theme with ascending red particles

๐Ÿ›ก๏ธ Shield Mode

Shield Mode Screenshot Ice theme with descending cyan particles

๐ŸŽฎ Quiz Interface

Quiz Interface Screenshot Clean, readable questions with intuitive selection

๐Ÿ† Results Display

Result Display Screenshot Animated score with achievement badges


๐Ÿ› Known Issues

  • Safari: Minor particle rendering differences on older versions
  • Firefox: Slight delay in theme transition (< 0.1s)
  • Mobile: Custom cursor not visible (using default pointer)

Report issues: GitHub Issues


๐Ÿ“œ License

Distributed under the MIT License. See LICENSE file for more information.

This means you can:

  • โœ… Use commercially
  • โœ… Modify and distribute
  • โœ… Use privately
  • โœ… Sublicense

๐Ÿ‘จโ€๐Ÿ’ป Author

Divyansh Garg

Portfolio LinkedIn GitHub Email

Frontend Developer | UI/UX Enthusiast | Anime Fan


๐Ÿ™ Acknowledgments

  • ๐Ÿ“š Original Series: The Rising of the Shield Hero by Aneko Yusagi
  • ๐ŸŽฌ Anime Adaptation: Kinema Citrus Studio
  • ๐ŸŽจ Design Inspiration: Modern glassmorphism trends
  • ๐Ÿ’ป Development Tools: VS Code, Chrome DevTools, Git
  • ๐ŸŒŸ Community: Thanks to all contributors and testers

๐Ÿ“œ Disclaimer

โœจ This is a fan-made tribute quiz and is not affiliated with or endorsed by:

  • The official The Rising of the Shield Hero franchise
  • Aneko Yusagi (original author)
  • Kinema Citrus (animation studio)
  • Media Factory or any associated publishers

This project is created for educational and portfolio purposes only, with deep respect for the original work.


โญ Show Your Support

If you enjoyed this quiz, please consider:

Star Fork Watch

Share with fellow Shield Hero fans!

Twitter Reddit


Made with โค๏ธ and โš”๏ธ by Divyansh

"The shield exists to protect. But a shield that only protects becomes a wall..."