Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-6-thinking-webdev· AnthropicHugging Face Arena WebDev Preferences (2026)

create a vampire survivors clone

  1. User

    create a vampire survivors clone

  2. Claude Assistant

    I'll create a Vampire Survivors clone with player movement, auto-attacking weapons, enemy waves, XP/leveling, and upgrade choices. Let me start by exploring the project structure.

    Now let me build the game. I'll create the game engine, types, and components across multiple files.

    Now I'll create the game engine types:

    Now the main game engine:

    Let me fix the unused imports:

    Now let me create the renderer:

    Now the main App component:

    Now let's build and check for errors:

    The project builds successfully. Let me also verify the game logic is working properly by reviewing a potential issue with the level-up system - I want to make sure the showLevelUp state syncs correctly with the game loop:

    The game loop references showLevelUp in its closure which could be stale. Let me fix this by using a ref for that flag:

    Now also remove showLevelUp from the useEffect dependency array since we're using the ref now:

    Let's build again to verify:

    The game builds successfully. Here's a summary of what I created:

    🧛 Dark Survivors - A Vampire Survivors Clone

    Features:

    • Player movement with WASD/Arrow keys and mobile touch controls (virtual joystick)
    • 6 Auto-attacking weapons:
      • 🪓 Whip - Horizontal area slash that passes through enemies
      • 🔥 Fireball - Homing projectiles toward nearest enemy
      • 🧄 Garlic - Damaging aura around the player
      • 💧 Holy Water - Drops damaging zones on the ground
      • ⚡ Lightning - Strikes random nearby enemies
      • 🗡️ Knife - Rapid-fire projectiles in facing direction
    • 5 Passive upgrades: Max HP, Armor, Regen, Speed, Magnet
    • Enemy variety: Bats, Skeletons, Ghosts, Zombies, Demons, and Bosses — each with unique visuals and stats
    • XP & Leveling: Kill enemies → collect XP gems → level up → choose upgrades (up to 5 levels each)
    • Escalating difficulty: More enemies, tougher enemies, and increasing spawn rates over time
    • 10-minute survival goal with a victory screen
    • Full HUD: HP bar, XP bar, level display, timer, kill count, weapon inventory, and minimap
    • Damage numbers floating above hit targets
    • Knockback physics on both enemies and player
    • Canvas-based rendering with tiled ground, shadows, particle effects, and glow effects
    • Polished UI: Gradient title screen, animated particles, game over/victory screens with stats

    Files built: index.html, src/index.css, src/game/types.ts, src/game/weapons.ts, src/game/enemies.ts, src/game/engine.ts, src/game/renderer.ts, src/App.tsx

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.

Identical first prompt