USE OFFSET
This commit is contained in:
1 parent
f574804f68
commit
f9b7e16376
11 files changed
+179
-133
No files matched your search
@@ -35,8 +35,8 @@ export function drawSprites(ctx: CanvasRenderingContext2D): void {
|
||||
spriteSheetMap.get(sprite.src)!,
|
||||
sprite.xStart,
|
||||
sprite.yStart,
|
||||
position.x,
|
||||
position.y,
|
||||
position.x + sprite.offset.x,
|
||||
position.y + sprite.offset.y,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user