formatting

This commit is contained in:
Luan Nico
2018-05-21 01:59:07 -03:00
parent 011aff0fff
commit 6be3d28493
10 changed files with 107 additions and 57 deletions

View File

@ -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);
}
}