mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-10-08 20:01:47 +08:00
Compare commits
No commits in common. "6891062351c4de4e78e982ef03c7f9b57fbc89aa" and "fbecb5f8e49d4d877a779b5465dc519a1fb9471b" have entirely different histories.
6891062351
...
fbecb5f8e4
@ -1026,8 +1026,6 @@ 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);
|
||||
@ -1162,7 +1160,7 @@ export class Layer extends Container<ELayerEvent> {
|
||||
this.floorImage.forEach(v => {
|
||||
if (v.disable) return;
|
||||
const { x, y } = v;
|
||||
ctx.fillRect(0, 0, MAP_WIDTH, MAP_HEIGHT);
|
||||
ctx.fillRect(0, 0, 480, 480);
|
||||
ctx.drawImage(images[v.name], x, y);
|
||||
});
|
||||
}
|
||||
|
@ -255,7 +255,6 @@ const MainScene = defineComponent(() => {
|
||||
width={MAIN_WIDTH}
|
||||
height={MAIN_HEIGHT}
|
||||
noanti
|
||||
nocache
|
||||
>
|
||||
<LeftStatusBar
|
||||
loc={[0, 0, STATUS_BAR_WIDTH, STATUS_BAR_HEIGHT]}
|
||||
|
@ -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, MAP_WIDTH, 64);
|
||||
ctx.fillRect(0, 0, 480, 64);
|
||||
};
|
||||
|
||||
const renderBottom = (canvas: MotaOffscreenCanvas2D) => {
|
||||
const ctx = canvas.ctx;
|
||||
ctx.fillStyle = getBottomGradient(ctx);
|
||||
ctx.fillRect(0, 0, MAP_HEIGHT, 64);
|
||||
ctx.fillRect(0, 0, 480, 64);
|
||||
};
|
||||
|
||||
const enterTop = () => (topAlpha.value = 0.9);
|
||||
|
@ -429,6 +429,7 @@ export abstract class RenderItem<E extends ERenderItemEvent = ERenderItemEvent>
|
||||
|
||||
const ctx = canvas.ctx;
|
||||
ctx.save();
|
||||
canvas.setAntiAliasing(this.antiAliasing);
|
||||
if (this.type === 'static') transformCanvas(canvas, tran);
|
||||
ctx.filter = this.filter;
|
||||
ctx.globalAlpha = this.alpha;
|
||||
@ -441,10 +442,8 @@ export abstract class RenderItem<E extends ERenderItemEvent = ERenderItemEvent>
|
||||
this.cacheDirty = false;
|
||||
}
|
||||
|
||||
canvas.setAntiAliasing(false);
|
||||
canvas.ctx.drawImage(this.cache.canvas, ax, ay, width, height);
|
||||
} else {
|
||||
canvas.setAntiAliasing(this.antiAliasing);
|
||||
canvas.ctx.translate(ax, ay);
|
||||
this.render(canvas, tran);
|
||||
this.cacheDirty = false;
|
||||
|
@ -155,7 +155,7 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
|
||||
return current[0];
|
||||
}).toString(),
|
||||
"_docs": "绑定贴图",
|
||||
"_data": "绑定贴图暂时不不支持,预计在 2.B.1 添加支持"
|
||||
"_data": "该怪物绑定的怪物贴图,用法详见文档"
|
||||
},
|
||||
"hp": {
|
||||
"_leaf": true,
|
||||
|
@ -8,7 +8,7 @@ main.floors.sample0=
|
||||
"canUseQuickShop": true,
|
||||
"defaultGround": "ground",
|
||||
"images": [],
|
||||
"bgm": "bgm.mp3",
|
||||
"bgm": "bgm.opus",
|
||||
"ratio": 1,
|
||||
"map": [
|
||||
[ 0, 0,220, 0, 0, 20, 87, 3, 58, 59, 60, 61, 64],
|
||||
|
Loading…
Reference in New Issue
Block a user