From 0cc0c69d7ebaf770f6b91963ad2f3ad93e86d03c Mon Sep 17 00:00:00 2001 From: aronmal Date: Sat, 7 Jan 2023 13:50:35 +0100 Subject: [PATCH] Fix layout glitches --- leaky-ships/helpers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/leaky-ships/helpers.ts b/leaky-ships/helpers.ts index 8a14f25..16c919b 100644 --- a/leaky-ships/helpers.ts +++ b/leaky-ships/helpers.ts @@ -37,8 +37,8 @@ export const hitReducer = (formObject: HitType[], action: HitDispatchType) => { } export const initlialTarget = { show: false, - x: 0, - y: 0 + x: 2, + y: 2 }; export const initlialTargetPreview = { newX: 0, @@ -47,7 +47,7 @@ export const initlialTargetPreview = { appearOK: false, eventReady: true, show: false, - x: 0, - y: 0 + x: 2, + y: 2 }; export const isHit = (hits: HitType[], x: number, y: number) => hits.filter(h => h.x === x && h.y === y);