chore: adjust player tank's size
This commit is contained in:
@@ -4,6 +4,19 @@
|
||||
* Initializes canvas, sets up the game loop, and manages scene lifecycle.
|
||||
*/
|
||||
|
||||
// Ensure timer globals exist (some WeChat base library versions may not
|
||||
// inject them early enough, causing WAGame.js internal error-reporting to
|
||||
// crash with "Can't find variable: setTimeout").
|
||||
if (typeof setTimeout === 'undefined') {
|
||||
GameGlobal.setTimeout = GameGlobal.setTimeout || function (fn, ms) {
|
||||
// Fallback: execute synchronously when real timer is unavailable
|
||||
fn();
|
||||
};
|
||||
GameGlobal.setInterval = GameGlobal.setInterval || function () {};
|
||||
GameGlobal.clearTimeout = GameGlobal.clearTimeout || function () {};
|
||||
GameGlobal.clearInterval = GameGlobal.clearInterval || function () {};
|
||||
}
|
||||
|
||||
const SceneManager = require('./js/managers/SceneManager');
|
||||
const ResourceManager = require('./js/managers/ResourceManager');
|
||||
const StorageManager = require('./js/managers/StorageManager');
|
||||
@@ -16,6 +29,7 @@ const PaymentManager = require('./js/managers/PaymentManager');
|
||||
const ComplianceManager = require('./js/managers/ComplianceManager');
|
||||
const BuffManager = require('./js/managers/BuffManager');
|
||||
const SkinManager = require('./js/managers/SkinManager');
|
||||
const PlayerProfile = require('./js/managers/PlayerProfile');
|
||||
const EventBus = require('./js/base/EventBus');
|
||||
const {
|
||||
SCREEN_WIDTH,
|
||||
@@ -64,6 +78,7 @@ const paymentManager = new PaymentManager();
|
||||
const complianceManager = new ComplianceManager();
|
||||
const buffManager = new BuffManager();
|
||||
const skinManager = new SkinManager();
|
||||
const playerProfile = new PlayerProfile();
|
||||
GameGlobal.adManager = adManager;
|
||||
GameGlobal.shareManager = shareManager;
|
||||
GameGlobal.currencyManager = currencyManager;
|
||||
@@ -71,6 +86,7 @@ GameGlobal.paymentManager = paymentManager;
|
||||
GameGlobal.complianceManager = complianceManager;
|
||||
GameGlobal.buffManager = buffManager;
|
||||
GameGlobal.skinManager = skinManager;
|
||||
GameGlobal.playerProfile = playerProfile;
|
||||
|
||||
// ============================================================
|
||||
// Game State
|
||||
|
||||
Reference in New Issue
Block a user