@@ -268,34 +268,6 @@ export class Body {
268268 this . drawHealthBar ( match , overlayCtx )
269269 }
270270 }
271-
272- /*
273- if (this.carryingFlagId !== null) {
274- renderUtils.renderCenteredImageOrLoadingIndicator(
275- overlayCtx,
276- getImageIfLoaded('resources/bread_outline_thick_64x64.png'),
277- { x: renderCoords.x, y: renderCoords.y },
278- 0.6
279- )
280-
281- if (config.showFlagCarryIndicator) {
282- for (const direction of [
283- { x: 0.5, y: 0 },
284- { x: 0, y: 0.5 },
285- { x: -0.5, y: 0 },
286- { x: 0, y: -0.5 }
287- ]) {
288- renderUtils.renderCarets(
289- overlayCtx,
290- { x: renderCoords.x + 0.5, y: renderCoords.y + 0.5 },
291- direction,
292- 2,
293- this.team.id == 1 ? '#ff0000aa' : '#00ffffaa'
294- )
295- }
296- }
297- }
298- */
299271 }
300272
301273 private drawPath ( match : Match , ctx : CanvasRenderingContext2D ) {
@@ -551,11 +523,6 @@ export const BODY_DEFINITIONS: Record<schema.RobotType, typeof Body> = {
551523 hovered : boolean
552524 ) : void {
553525 super . draw ( match , ctx , overlayCtx , config , selected , hovered )
554-
555- const interpCoords = this . getInterpolatedCoords ( match )
556- // for (const [color, level, [dx, dy]] of levelIndicators) {
557- // this.drawPetals(match, ctx, color, level, interpCoords.x + dx, interpCoords.y + dy)
558- // }
559526 }
560527 } ,
561528
@@ -579,11 +546,6 @@ export const BODY_DEFINITIONS: Record<schema.RobotType, typeof Body> = {
579546 hovered : boolean
580547 ) : void {
581548 super . draw ( match , ctx , overlayCtx , config , selected , hovered )
582-
583- const interpCoords = this . getInterpolatedCoords ( match )
584- // for (const [color, level, [dx, dy]] of levelIndicators) {
585- // this.drawPetals(match, ctx, color, level, interpCoords.x + dx, interpCoords.y + dy)
586- // }
587549 }
588550 } ,
589551
@@ -607,11 +569,6 @@ export const BODY_DEFINITIONS: Record<schema.RobotType, typeof Body> = {
607569 hovered : boolean
608570 ) : void {
609571 super . draw ( match , ctx , overlayCtx , config , selected , hovered )
610-
611- const interpCoords = this . getInterpolatedCoords ( match )
612- // for (const [color, level, [dx, dy]] of levelIndicators) {
613- // this.drawPetals(match, ctx, color, level, interpCoords.x + dx, interpCoords.y + dy)
614- // }
615572 }
616573 } ,
617574
@@ -634,11 +591,6 @@ export const BODY_DEFINITIONS: Record<schema.RobotType, typeof Body> = {
634591 hovered : boolean
635592 ) : void {
636593 super . draw ( match , ctx , overlayCtx , config , selected , hovered )
637-
638- const interpCoords = this . getInterpolatedCoords ( match )
639- // for (const [color, level, [dx, dy]] of levelIndicators) {
640- // this.drawPetals(match, ctx, color, level, interpCoords.x + dx, interpCoords.y + dy)
641- // }
642594 }
643595 } ,
644596
@@ -661,11 +613,6 @@ export const BODY_DEFINITIONS: Record<schema.RobotType, typeof Body> = {
661613 hovered : boolean
662614 ) : void {
663615 super . draw ( match , ctx , overlayCtx , config , selected , hovered )
664-
665- const interpCoords = this . getInterpolatedCoords ( match )
666- // for (const [color, level, [dx, dy]] of levelIndicators) {
667- // this.drawPetals(match, ctx, color, level, interpCoords.x + dx, interpCoords.y + dy)
668- // }
669616 }
670617 } ,
671618
@@ -688,11 +635,6 @@ export const BODY_DEFINITIONS: Record<schema.RobotType, typeof Body> = {
688635 hovered : boolean
689636 ) : void {
690637 super . draw ( match , ctx , overlayCtx , config , selected , hovered )
691-
692- const interpCoords = this . getInterpolatedCoords ( match )
693- // for (const [color, level, [dx, dy]] of levelIndicators) {
694- // this.drawPetals(match, ctx, color, level, interpCoords.x + dx, interpCoords.y + dy)
695- // }
696638 }
697639 }
698640}
0 commit comments