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
This commit is contained in:
Damian-I
2025-02-24 23:47:07 +00:00
parent 6f560af427
commit 5869b4adde

View File

@@ -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