Create an initial set of checks
This commit is contained in:
@ -31,7 +31,7 @@ export class Sprite {
|
||||
angle = angle == undefined ? 0.0 : angle;
|
||||
|
||||
// ctx.translate(Math.floor(x), Math.floor(y));
|
||||
ctx.translate(position.x, position.y);
|
||||
ctx.translate(Math.floor(position.x), Math.floor(position.y));
|
||||
ctx.rotate(angle * Math.PI / 180);
|
||||
ctx.scale(xScale, yScale);
|
||||
ctx.translate(-this.origin.x, -this.origin.y);
|
||||
|
Reference in New Issue
Block a user