From 58f4ab0b26948bec13ba853c90298271e472169f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 29 Jun 2024 16:10:07 +0200 Subject: implement points --- test-client/main.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test-client/main.ts') diff --git a/test-client/main.ts b/test-client/main.ts index 4d1e9c53..72e88c90 100644 --- a/test-client/main.ts +++ b/test-client/main.ts @@ -99,6 +99,7 @@ export const items_removed = new Set() export let data: Gamedata = { item_names: [], tile_names: [], spawn: [0, 0], tile_collide: [], tile_interact: [] } export let my_id: PlayerID = -1 +export let points = 0 export let demands_completed = 0 export let demands_failed = 0 export const camera: V2 = { x: 0, y: 0 } @@ -197,6 +198,7 @@ function packet(p: PacketC) { case "score": demands_completed = p.demands_completed demands_failed = p.demands_failed + points = p.points break; case "error": console.warn(p.message) -- cgit v1.2.3-70-g09d2