Use real assets.

This commit is contained in:
Greyson Parrelli
2026-07-25 18:42:20 -04:00
parent 3598180ff1
commit e6c895d6b4
146 changed files with 205 additions and 70 deletions
+8 -3
View File
@@ -4,10 +4,11 @@ import { createPortal } from 'react-dom'
import type { Card, ClientMessage, GameView, PlayerView } from '../types'
import { CardView } from './CardView'
import { useCardAnimations } from '../anim'
import { artFor, artUrlFor } from '../petArt'
interface Flyer {
key: string
emoji: string
name: string
x: number
y: number
}
@@ -174,7 +175,7 @@ export function ShopPhase({ view, you, send }: Props) {
if (!rect) continue
added.push({
key: `spawn-${e.seq}`,
emoji: e.spawn === 'bee' ? '🐝' : '🍎',
name: e.spawn === 'bee' ? 'Bee' : 'Apple',
x: rect.left + rect.width / 2,
y: rect.top + rect.height / 2,
})
@@ -580,7 +581,11 @@ export function ShopPhase({ view, you, send }: Props) {
setFlyers((f) => f.filter((x) => x.key !== fl.key))
}
>
{fl.emoji}
{artUrlFor(fl.name) ? (
<img className="spawn-flyer-img" src={artUrlFor(fl.name)!} alt="" draggable={false} />
) : (
artFor(fl.name)
)}
</div>
))}
</>,