mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
address comments
This commit is contained in:
@ -31,7 +31,7 @@ class Square extends PositionComponent with HasGameRef<MyGame> {
|
||||
void render(Canvas c) {
|
||||
super.render(c);
|
||||
|
||||
c.drawRect(toZeroRect(), white);
|
||||
c.drawRect(toOriginRect(), white);
|
||||
c.drawRect(const Rect.fromLTWH(0, 0, 3, 3), red);
|
||||
c.drawRect(Rect.fromLTWH(width / 2, height / 2, 3, 3), blue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user