mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
formatting
This commit is contained in:
@ -61,9 +61,9 @@ abstract class PositionComponent extends Component {
|
||||
canvas.translate(x, y);
|
||||
|
||||
// rotate around center
|
||||
canvas.translate(width/2, height/2);
|
||||
canvas.translate(width / 2, height / 2);
|
||||
canvas.rotate(angle);
|
||||
canvas.translate(-width/2, -height/2);
|
||||
canvas.translate(-width / 2, -height / 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user