OrcDev

8bit Enemy Health Display

Component 14

About

An 8-bit styled enemy health display built on the retro health-bar primitive. Shows enemy name, level, and a health bar with a percentage overlay, driven by current/max health values.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds 8bit Enemy Health Display to your project and fits it to your theme.

Code

How 8bit Enemy Health Display is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import EnemyHealthDisplay from "@/components/ui/8bit-enemy-health-display";

export default function Default() {
  return (
    <div className="flex w-full min-h-screen items-center justify-center bg-background p-8 retro">
      <div className="w-full max-w-md space-y-6">
        <EnemyHealthDisplay
          enemyName="Fire Dragon"
          level={25}
          currentHealth={850}
          maxHealth={1000}
          healthBarVariant="retro"
          healthBarColor="bg-red-500"
          enemyNameColor="text-red-500"
        />
        <EnemyHealthDisplay
          enemyName="Goblin Warrior"
          level={5}
          currentHealth={45}
          maxHealth={100}
          healthBarVariant="retro"
          healthBarColor="bg-orange-500"
          enemyNameColor="text-green-500"
        />
      </div>
    </div>
  );
}

Dependencies

More by OrcDev

View all
  • 8bit CTA 1 — Comparison

    8bit CTA 1 — Comparison

    295
  • 8bit 404 Page

    8bit 404 Page

    172
  • 8bit Loading Screen

    8bit Loading Screen

    104
  • 8bit Changelog

    8bit Changelog

    75
  • 8-bit Login Form

    8-bit Login Form

    59
  • 8bit FAQ 2 — Card Grid

    8bit FAQ 2 — Card Grid

    57
  • 8-bit Stats Dashboard

    8-bit Stats Dashboard

    55
  • 8bit Timeline Horizontal

    8bit Timeline Horizontal

    54