Skip to content

Commit

Permalink
feat: hunt style
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivomo committed Nov 24, 2023
1 parent 7995454 commit 25990ec
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions packages/client/src/components/PIXIPlayers/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ const Player = (props: IPlayer) => {
anchor={0.5}
x={cellSize / 2}
y={-30}
style={textStyle}
style={Object.assign({}, textStyle, {
stroke: hunted ? '#f00' : '#000'
})}
/>
}
{
Expand Down Expand Up @@ -214,18 +216,18 @@ const Player = (props: IPlayer) => {
)
})
}
{
hunted && (
<Sprite
anchor={0.5}
x={cellSize / 2}
y={cellSize + 10}
image={'/assets/img/hunted.png'}
width={30}
height={30}
/>
)
}
{/*{*/}
{/* hunted && (*/}
{/* <Sprite*/}
{/* anchor={0.5}*/}
{/* x={cellSize / 2}*/}
{/* y={cellSize + 10}*/}
{/* image={'/assets/img/hunted.png'}*/}
{/* width={30}*/}
{/* height={30}*/}
{/* />*/}
{/* )*/}
{/*}*/}
{/*<Graphics*/}
{/* x={1}*/}
{/* draw={g => {*/}
Expand Down

0 comments on commit 25990ec

Please sign in to comment.