From c86c56d44d0d647f498b48ba6053349e2e28111a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 4 Nov 2018 20:04:48 +0100 Subject: Minor code improvements --- src/view/entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/view') 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(); } -- cgit v1.2.3