diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 2 | ||||
-rw-r--r-- | src/view/entity.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts index da119a8..4db13d5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,5 +9,5 @@ window.onload = async () => { const renderer = new Renderer(canvas); - await GameContext.load(renderer); + GameContext.load(renderer); }; diff --git a/src/view/entity.ts b/src/view/entity.ts index 015875a..6241387 100644 --- a/src/view/entity.ts +++ b/src/view/entity.ts @@ -13,6 +13,6 @@ export async function loadSimpleEntity( const [x, y] = anchor; const builder = new SpriteViewBuilder(r, texture); - builder.addSprite([-x, -y, 1 - x, 1 - y], [0, 0, 1, 1]); + builder.addSprite([-x, -y, -x + 1, -y + 1], [0, 0, 1, 1]); return builder.build(); } |