Viking Queen Defense

Seele01-Flash
By
Viking Queen Defense is an innovative educational tower defense game that combines strategic gameplay with math learning. Play as a fierce Viking queen defending her castle while solving math problems to earn gold and defeat enemies.

Prompt

MODEL: Seele01-Flash
Please use Three.js to generate a **mobile-first game** with the theme "Viking Queen Defense". Please read the following detailed game design requirements first, and then generate the code accordingly: ### 1. Assets & Environment * **Visual Style**: **2.5D Toon/Low-Poly Style**. Use an **Orthographic Camera** to mimic the flat, illustrative look of the reference screenshot while using 3D geometry. * **Color Palette**: High saturation and contrast. Dominant colors: Red (#FF4444) for the castle walls, Orange (#FFAA00) for brick accents, Bright Yellow (#FFFF88) for the Queen's hair, and Light Blue (#88CCFF) for the sky background. * **Key Models**: * **Viking Queen**: A cute, simplified character (sphere head, cylinder body) positioned on the castle wall. Big black button eyes (torus or simple spheres). Animated to bob up and down (idle breathing). * **The Castle**: A blocky, modular wall structure acting as the player's base on the left or bottom of the screen. * **Allied Units**: Smaller, cute Viking soldiers (helmet with horns, round shields). * **Enemies**: Distinctly colored (e.g., Green or Grey) Vikings approaching the castle. * **Performance (Mobile)**: Use `MeshToonMaterial` or `MeshBasicMaterial` to reduce lighting calculations. Limit geometry segments (e.g., spheres should use 16 segments). Implement object pooling for projectiles and units to prevent garbage collection stutter. ### 2. Audio Requirements * **BGM**: A lighthearted, marching-band style track featuring flutes and snare drums. Must loop seamlessly. * **Sound Effects (SFX)**: * **Math Interaction**: A satisfying "Ding!" or high-pitched chime for correct answers; a comical "Buzz" or "Womp-womp" for incorrect answers. * **Combat**: Cartoonish "Bonk" sounds for weapon hits (no realistic gore sounds). * **Victory**: A short fanfare trumpet sound at level completion. * **UI**: Soft "Pop" sounds when tapping buttons. ### 3. Gameplay Loop * **Core Logic**: This is a hybrid Tower Defense and Educational game. * **The Loop**: 1. **Math Phase (Resource Generation)**: A question overlay appears (e.g., "5 + 3 = ?") or is constantly present in a UI panel. The player must answer correctly to earn "Gold". 2. **Defense Phase (Unit Management)**: Enemies automatically spawn and march toward the castle. The player spends earned Gold to spawn Allied Viking Soldiers to intercept them. 3. **Combat**: Allies and Enemies auto-attack when in range. * **Win Condition**: Defeat all waves of enemies for the current level (Total 10 levels). * **Lose Condition**: Enemies reach the Castle wall and deplete the Castle's HP to zero. * **Progression**: Between levels, unlock new unit types (higher cost, higher damage) displayed with price tags. ### 4. Mobile Controls & Interaction * **Orientation**: **Portrait Mode** suggested for easier one-handed math input, OR **Landscape** for a wider battlefield view (choose Landscape for better Tower Defense layout). * **UI Layout**: * **Math Panel**: A dedicated area (bottom right or toggleable modal) with large, finger-friendly buttons (Number Pad or Multiple Choice). Buttons must be at least 44x44 pixels. * **Unit Spawn Menu**: A horizontal scroll bar at the bottom containing unit icons. Tapping an icon spawns the unit if Gold is sufficient. * **Feedback**: * **Haptic Feedback**: Trigger a short vibration (`navigator.vibrate(50)`) on correct math answers and unit placement. * **Visual Feedback**: Floating text ("+10 Gold", "Correct!") appearing over the Queen when a problem is solved. Screen shake effect slightly when the castle takes damage. Do not ask for clarification. Do not request confirmation. Directly execute the generation task based on the given instructions.

Game Introduction

About the Game

Viking Queen Defense is a unique educational strategy game that brilliantly combines tower defense mechanics with math learning. With an impressive 4.5/5 rating, this game offers an engaging way for players to practice math skills while enjoying exciting strategic gameplay. Play as a brave Viking queen who must defend her castle against waves of enemy Vikings using both tactical thinking and mathematical prowess.

This innovative online game transforms traditional math practice into an adventure-filled gaming experience. Players answer math problems correctly to earn gold, which can then be used to purchase powerful Viking warriors to defend the castle. The game spans 10 challenging levels, each requiring both strategic planning and mathematical accuracy to succeed.

Core Features

Educational Excellence

  • Comprehensive Math Coverage : Practice math skills from preschool level through 8th grade
  • Flexible Learning : Switch between different math skills during gameplay to target specific learning needs
  • Progressive Difficulty : 10 levels with increasing complexity to challenge growing abilities
  • Instant Feedback : Learn from mistakes and reinforce correct answers immediately

Engaging Tower Defense Gameplay

  • Strategic Army Management : Purchase and deploy different Viking warriors with varying abilities and costs
  • Resource Management : Earn gold through correct math answers and spend wisely on defenders
  • Progressive Challenges : Face increasingly difficult waves of enemies as you advance through levels
  • Cute Visual Style : Charming cartoon graphics featuring adorable Viking characters

Accessibility and Convenience

  • Completely Free : No cost to play, no hidden fees or premium content locks
  • No Download Required : Play instantly in your web browser on any device
  • Mobile Friendly : Optimized for both desktop and mobile devices
  • All Ages Content : Safe and appropriate for players of all ages

Game Mechanics

The game ingeniously blends education with entertainment through its core mechanic: solving math problems to earn currency. Each correct answer rewards players with gold coins that serve as the primary resource for building defenses. This creates a natural incentive for accurate mathematical thinking while maintaining the excitement of tower defense strategy.

Players must carefully balance their gold spending between immediate defense needs and long-term strategic investments. More expensive Viking warriors offer superior combat abilities, requiring players to weigh cost versus benefit in their purchasing decisions.

Operation Guide

Getting Started

  1. Select Your Level : Choose your appropriate grade level and specific math skill to practice
  2. Monitor Your Progress : Check the upper left corner to see your current level and remaining enemies
  3. Answer Math Problems : Solve problems correctly to earn gold for purchasing defenders
  4. Build Your Army : Use earned gold to buy Viking warriors with different strengths and costs

Strategic Tips

  • Budget Wisely : More expensive warriors are generally more effective, so save up for quality units
  • Adapt Your Skills : Don't hesitate to change math skills mid-game to focus on areas needing improvement
  • Plan Ahead : Consider the next wave of enemies when deciding which defenders to purchase
  • Balance Speed and Accuracy : While quick answers help, accuracy is crucial for earning maximum gold

Why Play Viking Queen Defense

This game stands out in the crowded field of educational games by seamlessly integrating learning with genuine entertainment value. Unlike traditional math drills that can feel repetitive or boring, Viking Queen Defense maintains excitement through its strategic gameplay while reinforcing mathematical concepts.

Perfect for Students : Whether you're struggling with basic arithmetic or looking to sharpen advanced math skills, the game's flexible difficulty system adapts to your needs.

Great for Parents and Teachers : The game provides a fun way to encourage math practice without the resistance often associated with traditional homework or drilling.

Engaging for Gamers : Even players who might not initially be interested in educational content will find themselves drawn into the strategic depth and charming presentation.

The combination of immediate feedback, progressive challenges, and rewarding gameplay mechanics creates an optimal learning environment that makes math practice feel less like work and more like play.

Frequently Asked Questions (FAQ)