feat(gameplay): add crazy dave casino and bank, and zombie mutation lab

This commit is contained in:
2026-09-22 09:25:08 +00:00
parent d8be8f4366
commit b8db5a123d
16 changed files with 2365 additions and 135 deletions
+12
View File
@@ -5,6 +5,18 @@ document.addEventListener('DOMContentLoaded', () => {
const engine = new window.GameEngine('gameCanvas');
// Immediate authoritative profile sync with server
if (window.PvZAuth && !window.PvZAuth.isGuest()) {
window.PvZAuth.fetchProfile().then(() => {
if (engine && typeof engine.loadUserData === 'function') {
engine.loadUserData();
engine.updateProfileUI();
engine.updateRecordDisplay();
engine.updateShopUI();
}
}).catch(() => {});
}
function startGame() {
if (startModal) {
startModal.classList.add('hidden');