From 5869b4addefae14e028cb6760402ddef47aaa580 Mon Sep 17 00:00:00 2001 From: Damian-I Date: Mon, 24 Feb 2025 23:47:07 +0000 Subject: [PATCH] Fixed bug by initializing game state object with biometric samples and inventory tracking - Create `gameState` object to centralize game state management - Include biometric samples and inventory as initial state properties --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index cf27574..dce4ddb 100644 --- a/index.html +++ b/index.html @@ -195,6 +195,11 @@ let lastBluetoothScan = 0; // Track last scan time const BLUETOOTH_SCAN_INTERVAL = 500; // Scan every 500ms + const gameState = { + biometricSamples: [], + inventory: inventory + }; + // preloads the assets function preload() { // Show loading text