This commit is contained in:
33333-33333 2026-06-30 10:57:06 +09:00
commit f941200504
70 changed files with 1856 additions and 429 deletions

View file

@ -415,10 +415,11 @@ class AntActor {
return this.kind === "queen" ? "ant_queen" : this.workerSpriteId();
}
draw(ctx, time = 0, lighting = null) {
draw(ctx, ...args) {
if (this.dead) return;
const id = this.spriteId();
const img = getRenderableImage(id, id);
const lighting = args.find(value => value && typeof value === "object") || null;
const lightState = lighting || getLightingState(this.world);
ctx.save();
const shadow = projectedShadowParams(lightState, this.kind === "queen" ? 0.78 : 0.26);