pong:front: pretty end screen + self & opponent names prints
This commit is contained in:
parent
03be784a51
commit
61b49ab370
6 changed files with 61 additions and 18 deletions
|
|
@ -33,6 +33,8 @@ export type GameMove = {
|
|||
export interface ClientToServer {
|
||||
enqueue: () => void;
|
||||
dequeue: () => void;
|
||||
readyUp: () => void;
|
||||
readyDown:() => void;
|
||||
debugInfo: () => void;
|
||||
gameMove: (up: GameMove) => void;
|
||||
connectedToGame: (gameId: string) => void;
|
||||
|
|
@ -43,7 +45,7 @@ export interface ServerToClient {
|
|||
forceDisconnect: (reason: string) => void;
|
||||
queueEvent: (msg: 'registered' | 'unregistered') => void;
|
||||
updateInformation: (info: UpdateInfo) => void,
|
||||
newGame: (initState: GameUpdate) => void,
|
||||
newGame: (initState: GameUpdate) => void, // <- consider this the gameProc eg not start of game but wait for client to "ready up"
|
||||
gameUpdate: (state: GameUpdate) => void,
|
||||
gameEnd: () => void;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue