mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user