add magazine system (cannot reload currently)

This commit is contained in:
Vinzenz Schroeter 2024-04-29 16:39:37 +02:00
parent 4e605d556c
commit 9ccb7c8df8
8 changed files with 86 additions and 32 deletions

View file

@ -22,7 +22,7 @@ function ScoreRow({name, value}: {
}
type TankInfo = {
readonly explosiveBullets: number;
readonly magazine: string;
readonly position: { x: number; y: number };
readonly orientation: number;
readonly moving: boolean;
@ -63,8 +63,8 @@ export default function PlayerInfo({player}: { player: string }) {
</h3>
<table>
<tbody>
<ScoreRow name="magazine" value={lastJsonMessage.tank?.magazine}/>
<ScoreRow name="controls" value={lastJsonMessage.controls}/>
<ScoreRow name="explosive bullets" value={lastJsonMessage.tank?.explosiveBullets}/>
<ScoreRow name="position" value={lastJsonMessage.tank?.position}/>
<ScoreRow name="orientation" value={lastJsonMessage.tank?.orientation}/>
<ScoreRow name="moving" value={lastJsonMessage.tank?.moving}/>