提交 0d9e4950 authored 作者: lidongxu's avatar lidongxu

暂时适配了

上级 a92b6765
...@@ -60,11 +60,12 @@ function renderPlayer(state, offsetX, roomId) { ...@@ -60,11 +60,12 @@ function renderPlayer(state, offsetX, roomId) {
drawBubbleGrid(ctx, state.grid, state.pushAnimOffsetY ?? 0) drawBubbleGrid(ctx, state.grid, state.pushAnimOffsetY ?? 0)
} }
// 飞行中的泡泡 // 飞行中的泡泡(坐标是小游戏端屏幕坐标,需缩放到大屏设计稿坐标系)
if (state.fireBubbles && state.fireBubbles.length) { if (state.fireBubbles && state.fireBubbles.length) {
const scale = state.screenWidth ? SCREEN_WIDTH / state.screenWidth : 1
for (const fb of state.fireBubbles) { for (const fb of state.fireBubbles) {
if (fb.active !== false) { if (fb.active !== false) {
drawBubble3D(ctx, fb.x, fb.y, getBubbleRadius(), fb.color || 1) drawBubble3D(ctx, fb.x * scale, fb.y * scale, getBubbleRadius(), fb.color || 1)
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论