feat(flappy): rebrand references to "definitely not Flappy Bird"
This commit is contained in:
parent
f81b7ecce6
commit
9d990d2965
5 changed files with 15 additions and 13 deletions
|
|
@ -104,7 +104,7 @@ export async function submitFlappyScore(input: {
|
|||
if (passes > 0) {
|
||||
await emitGameEvent(payload, {
|
||||
type: EventTypes.MinigameFlappy,
|
||||
message: `Completed a Flappy Bird run passing ${passes} pipe${passes === 1 ? "" : "s"} (+${runXp} XP)`,
|
||||
message: `Completed a flight simulator run passing ${passes} pipe${passes === 1 ? "" : "s"} (definitely not Flappy Bird) (+${runXp} XP)`,
|
||||
actor: user.id as number,
|
||||
targetCollection: "users",
|
||||
targetId: user.id as number,
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import { Bird } from "lucide-react";
|
|||
import { FlappyArena } from "@/components/frontend/flappy/FlappyArena";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Flappy Bird — Polaris Task Force",
|
||||
description: "Side training sim. Pass pipes to earn XP.",
|
||||
title: "Flight Simulator — Polaris Task Force",
|
||||
description: "Side training sim. Definitely not Flappy Bird.",
|
||||
};
|
||||
|
||||
export default async function FlappyPage() {
|
||||
|
|
@ -52,7 +52,8 @@ export default async function FlappyPage() {
|
|||
<h1 className="text-lg font-semibold">Flight Simulator</h1>
|
||||
</div>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
An unofficial side activity. Earn 1 XP per 15 pipes passed in a single run.
|
||||
An unofficial side activity. (Definitely not Flappy Bird.) Earn 1 XP per 15 pipes passed
|
||||
in a single run.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ export function NavUser({
|
|||
<DropdownMenuItem asChild>
|
||||
<Link href="/flappy">
|
||||
<Bird />
|
||||
Flappy Bird
|
||||
Flight Simulator
|
||||
</Link>
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuGroup>
|
||||
|
|
|
|||
|
|
@ -413,9 +413,9 @@ export function FlappyBird({
|
|||
return (
|
||||
<div className="flex flex-col items-center gap-4">
|
||||
<div className="text-center space-y-1">
|
||||
<h1 className="text-2xl font-bold uppercase tracking-widest">Flappy Bird</h1>
|
||||
<h1 className="text-2xl font-bold uppercase tracking-widest">"Flight Simulator"</h1>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
Side training sim · +1 XP per {PASSES_PER_XP} pipes in a single run
|
||||
+1 XP per {PASSES_PER_XP} pipes in a single run
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
@ -433,14 +433,15 @@ export function FlappyBird({
|
|||
<canvas
|
||||
ref={canvasRef}
|
||||
className="block max-w-full rounded-xl border border-border shadow-lg"
|
||||
aria-label="Flappy Bird game"
|
||||
aria-label="Flight Simulator game"
|
||||
/>
|
||||
|
||||
{phase === "ready" && (
|
||||
<div className="absolute inset-0 flex flex-col items-center justify-center gap-3 text-center pointer-events-none">
|
||||
<span className="text-4xl font-black uppercase tracking-widest drop-shadow-lg">
|
||||
Flappy Bird
|
||||
<span className="text-4xl font-black uppercase tracking-wider drop-shadow-lg">
|
||||
Flight Simulator
|
||||
</span>
|
||||
<span className="text-xs text-white/70 italic">(definitely not Flappy Bird)</span>
|
||||
<span className="text-sm text-white/80">
|
||||
Tap or press <span className="font-semibold">Space</span> to flap
|
||||
</span>
|
||||
|
|
@ -491,7 +492,7 @@ export function FlappyBird({
|
|||
<span className="font-semibold text-foreground">{stats.bestScore}</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-1.5">
|
||||
<span>XP from Flappy</span>
|
||||
<span>XP from the sim</span>
|
||||
<span className="font-semibold text-foreground">{stats.flappyXp}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -102,8 +102,8 @@ export function FlappyLeaderboard({ refreshKey = 0, currentUserId }: FlappyLeade
|
|||
<div className="w-full max-w-[420px] rounded-xl border border-border bg-card">
|
||||
<div className="flex items-center gap-2 border-b border-border px-4 py-3">
|
||||
<Trophy className="size-4 text-amber-400" />
|
||||
<h2 className="text-sm font-semibold">Flappy Leaderboard</h2>
|
||||
<span className="ml-auto text-xs text-muted-foreground">Top 10 · best run</span>
|
||||
<h2 className="text-sm font-semibold">Flight Simulator Leaderboard</h2>
|
||||
<span className="ml-auto text-xs text-muted-foreground">Top 10 · best run (bird-free)</span>
|
||||
</div>
|
||||
|
||||
{failed ? (
|
||||
|
|
|
|||
Loading…
Reference in a new issue