mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-31 00:48:47 +08:00
Add some new lint rules (#1117)
This commit is contained in:
@ -246,10 +246,10 @@ class SnowmanPart extends HitboxCircle {
|
||||
SnowmanPart(double definition, Vector2 relativeOffset, Color hitColor)
|
||||
: super(normalizedRadius: definition) {
|
||||
this.relativeOffset.setFrom(relativeOffset);
|
||||
hitPaint..color = startColor;
|
||||
hitPaint.color = startColor;
|
||||
onCollision = (Set<Vector2> intersectionPoints, HitboxShape other) {
|
||||
if (other.component is ScreenCollidable) {
|
||||
hitPaint..color = startColor;
|
||||
hitPaint.color = startColor;
|
||||
} else {
|
||||
hitPaint.color = hitColor.withOpacity(0.8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user