Create an initial set of checks
This commit is contained in:
1 parent
b1ac26fa78
commit
37feade797
9 files changed
+322
-17
No files matched your search
@@ -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