feat(gameplay): add crazy dave casino and bank, and zombie mutation lab
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user