Last active
August 24, 2021 12:42
-
-
Save juskek/42bd710cc57cbb39535f7de8b6a0a7fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fly { | |
final FlyTerminator game; | |
Rect? flyRect; | |
Paint flyPaint = Paint(); | |
Fly(this.game, double x, double y) { | |
flyRect = Rect.fromLTWH(x, y, game.tileSize!, game.tileSize!); | |
flyPaint.color = Color(0xff6ab04c); | |
} | |
void render(Canvas c) { | |
c.drawRect(flyRect!, flyPaint); | |
} | |
void update(double t) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment