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) {
|
if (passes > 0) {
|
||||||
await emitGameEvent(payload, {
|
await emitGameEvent(payload, {
|
||||||
type: EventTypes.MinigameFlappy,
|
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,
|
actor: user.id as number,
|
||||||
targetCollection: "users",
|
targetCollection: "users",
|
||||||
targetId: user.id as number,
|
targetId: user.id as number,
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import { Bird } from "lucide-react";
|
||||||
import { FlappyArena } from "@/components/frontend/flappy/FlappyArena";
|
import { FlappyArena } from "@/components/frontend/flappy/FlappyArena";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Flappy Bird — Polaris Task Force",
|
title: "Flight Simulator — Polaris Task Force",
|
||||||
description: "Side training sim. Pass pipes to earn XP.",
|
description: "Side training sim. Definitely not Flappy Bird.",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default async function FlappyPage() {
|
export default async function FlappyPage() {
|
||||||
|
|
@ -52,7 +52,8 @@ export default async function FlappyPage() {
|
||||||
<h1 className="text-lg font-semibold">Flight Simulator</h1>
|
<h1 className="text-lg font-semibold">Flight Simulator</h1>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-sm text-muted-foreground">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ export function NavUser({
|
||||||
<DropdownMenuItem asChild>
|
<DropdownMenuItem asChild>
|
||||||
<Link href="/flappy">
|
<Link href="/flappy">
|
||||||
<Bird />
|
<Bird />
|
||||||
Flappy Bird
|
Flight Simulator
|
||||||
</Link>
|
</Link>
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DropdownMenuGroup>
|
</DropdownMenuGroup>
|
||||||
|
|
|
||||||
|
|
@ -413,9 +413,9 @@ export function FlappyBird({
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center gap-4">
|
<div className="flex flex-col items-center gap-4">
|
||||||
<div className="text-center space-y-1">
|
<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">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -433,14 +433,15 @@ export function FlappyBird({
|
||||||
<canvas
|
<canvas
|
||||||
ref={canvasRef}
|
ref={canvasRef}
|
||||||
className="block max-w-full rounded-xl border border-border shadow-lg"
|
className="block max-w-full rounded-xl border border-border shadow-lg"
|
||||||
aria-label="Flappy Bird game"
|
aria-label="Flight Simulator game"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{phase === "ready" && (
|
{phase === "ready" && (
|
||||||
<div className="absolute inset-0 flex flex-col items-center justify-center gap-3 text-center pointer-events-none">
|
<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">
|
<span className="text-4xl font-black uppercase tracking-wider drop-shadow-lg">
|
||||||
Flappy Bird
|
Flight Simulator
|
||||||
</span>
|
</span>
|
||||||
|
<span className="text-xs text-white/70 italic">(definitely not Flappy Bird)</span>
|
||||||
<span className="text-sm text-white/80">
|
<span className="text-sm text-white/80">
|
||||||
Tap or press <span className="font-semibold">Space</span> to flap
|
Tap or press <span className="font-semibold">Space</span> to flap
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -491,7 +492,7 @@ export function FlappyBird({
|
||||||
<span className="font-semibold text-foreground">{stats.bestScore}</span>
|
<span className="font-semibold text-foreground">{stats.bestScore}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-1.5">
|
<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>
|
<span className="font-semibold text-foreground">{stats.flappyXp}</span>
|
||||||
</div>
|
</div>
|
||||||
</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="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">
|
<div className="flex items-center gap-2 border-b border-border px-4 py-3">
|
||||||
<Trophy className="size-4 text-amber-400" />
|
<Trophy className="size-4 text-amber-400" />
|
||||||
<h2 className="text-sm font-semibold">Flappy Leaderboard</h2>
|
<h2 className="text-sm font-semibold">Flight Simulator Leaderboard</h2>
|
||||||
<span className="ml-auto text-xs text-muted-foreground">Top 10 · best run</span>
|
<span className="ml-auto text-xs text-muted-foreground">Top 10 · best run (bird-free)</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{failed ? (
|
{failed ? (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue