diff --git a/apps/website/app/pages/(games)/wagon/index.vue b/apps/website/app/pages/(games)/wagon/index.vue index 4f57dcd3..4c202e9e 100644 --- a/apps/website/app/pages/(games)/wagon/index.vue +++ b/apps/website/app/pages/(games)/wagon/index.vue @@ -51,8 +51,8 @@ const id = route.query.id?.toString() ?? '' const stage = ref() const game = ref() -const christmasId = 'iq9f2634d3q3ans243dhxmj7' -const { data: leaderboard, execute: refreshLeaderboard } = useFetch(`https://chatgame.space/api/leaderboard/${christmasId}/list?limit=9`) +const currentEventId = 'iq9f2634d3q3ans243dhxmj7' +const { data: leaderboard, execute: refreshLeaderboard } = useFetch(`https://chatgame.space/api/leaderboard/${currentEventId}/list?limit=9`) onMounted(async () => { game.value = new BaseGameAddon({ websocketUrl: publicEnv.websocketUrl, client: 'WAGON_CLIENT', updateUI: () => {} }) @@ -131,6 +131,10 @@ onMounted(async () => { font-size: 32px; } + .hidden { + display: none; + } + .distance { font-size: 48px; } diff --git a/packages/game/src/lib/objects/unit/unitObject.ts b/packages/game/src/lib/objects/unit/unitObject.ts index 5fdb761c..c4edc457 100644 --- a/packages/game/src/lib/objects/unit/unitObject.ts +++ b/packages/game/src/lib/objects/unit/unitObject.ts @@ -51,14 +51,14 @@ export class UnitObject extends BaseObject implements GameObjectUnit { this.animationMoving = undefined } - const idle = await Assets.load(`/units/${codename}/idle.json`) + const idle = await Assets.load(`https://storage.yandexcloud.net/chatgame-assets/units/${codename}/idle.json`) const idleSprite = new AnimatedSprite(idle.animations.main) idleSprite.anchor.set(0.5, 1) idleSprite.scale.set(4) this.animationIdle = idleSprite this.addChild(this.animationIdle) - const moving = await Assets.load(`/units/${codename}/moving.json`) + const moving = await Assets.load(`https://storage.yandexcloud.net/chatgame-assets/units/${codename}/moving.json`) const movingSprite = new AnimatedSprite(moving.animations.main) movingSprite.anchor.set(0.5, 1) movingSprite.scale.set(4)