mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-14 10:34:30 +08:00
fix: enemy48 显示错误
This commit is contained in:
1 parent
8f4f8d86a9
commit
6891062351
4 files changed
+7
-5
No files matched your search
@@ -1026,6 +1026,8 @@ export class Layer extends Container<ELayerEvent> {
|
||||
this.autotiles = {};
|
||||
this.block.size(width, height);
|
||||
this.block.clearAllCache();
|
||||
this.bigImages.clear();
|
||||
this.moving.clear();
|
||||
|
||||
for (const ex of this.extend.values()) {
|
||||
ex.onMapResize?.(this, width, height);
|
||||
@@ -1160,7 +1162,7 @@ export class Layer extends Container<ELayerEvent> {
|
||||
this.floorImage.forEach(v => {
|
||||
if (v.disable) return;
|
||||
const { x, y } = v;
|
||||
ctx.fillRect(0, 0, 480, 480);
|
||||
ctx.fillRect(0, 0, MAP_WIDTH, MAP_HEIGHT);
|
||||
ctx.drawImage(images[v.name], x, y);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -179,13 +179,13 @@ export const ViewMap = defineComponent<ViewMapProps>(props => {
|
||||
const renderTop = (canvas: MotaOffscreenCanvas2D) => {
|
||||
const ctx = canvas.ctx;
|
||||
ctx.fillStyle = getTopGradient(ctx);
|
||||
ctx.fillRect(0, 0, 480, 64);
|
||||
ctx.fillRect(0, 0, MAP_WIDTH, 64);
|
||||
};
|
||||
|
||||
const renderBottom = (canvas: MotaOffscreenCanvas2D) => {
|
||||
const ctx = canvas.ctx;
|
||||
ctx.fillStyle = getBottomGradient(ctx);
|
||||
ctx.fillRect(0, 0, 480, 64);
|
||||
ctx.fillRect(0, 0, MAP_HEIGHT, 64);
|
||||
};
|
||||
|
||||
const enterTop = () => (topAlpha.value = 0.9);
|
||||
|
||||
Reference in new issue
Block a user