killthebird

3D-Moorland-Shooter als React-/Next.js-Komponente

Kill the Bird

Landschaft wird geladen …

Bestwert: –

    In die eigene Next.js-App einbauen

    npm install killthebird three
    npx killthebird copy-assets public/killthebird
    "use client";
    import { KillTheBird } from "killthebird";
    
    export function Game() {
      return (
        <div style={{ width: "100%", aspectRatio: "16 / 9" }}>
          <KillTheBird onGameEnd={(r) => console.log(r.score)} />
        </div>
      );
    }

    Alle Props, Events und Hinweise zu Vollbild und Asset-Hosting stehen im README.