From 2a9aca302485bc08f5b2dd2a54987de6f80fc338 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Fri, 19 Dec 2025 13:06:27 +0100 Subject: Implement loading stops as tiles from OTP --- src/frontend/public/maps/spritesheet/sprite.json | 30 ++++++++++++++++++--- src/frontend/public/maps/spritesheet/sprite.png | Bin 3426 -> 5926 bytes .../public/maps/spritesheet/sprite@2x.json | 30 ++++++++++++++++++--- src/frontend/public/maps/spritesheet/sprite@2x.png | Bin 7465 -> 13514 bytes 4 files changed, 54 insertions(+), 6 deletions(-) (limited to 'src/frontend/public/maps') diff --git a/src/frontend/public/maps/spritesheet/sprite.json b/src/frontend/public/maps/spritesheet/sprite.json index 46a525b..1b3a78b 100644 --- a/src/frontend/public/maps/spritesheet/sprite.json +++ b/src/frontend/public/maps/spritesheet/sprite.json @@ -7,17 +7,41 @@ "height": 32, "pixelRatio": 1 }, - "stop-vitrasa-cancelled": { - "id": "stop-vitrasa-cancelled", + "stop-santiago": { + "id": "stop-santiago", "x": 32, "y": 0, "width": 32, "height": 32, "pixelRatio": 1 }, + "stop-coruna": { + "id": "stop-coruna", + "x": 64, + "y": 0, + "width": 32, + "height": 32, + "pixelRatio": 1 + }, + "stop-xunta": { + "id": "stop-xunta", + "x": 96, + "y": 0, + "width": 32, + "height": 32, + "pixelRatio": 1 + }, "stop-renfe": { "id": "stop-renfe", - "x": 64, + "x": 128, + "y": 0, + "width": 32, + "height": 32, + "pixelRatio": 1 + }, + "stop-feve": { + "id": "stop-feve", + "x": 160, "y": 0, "width": 32, "height": 32, diff --git a/src/frontend/public/maps/spritesheet/sprite.png b/src/frontend/public/maps/spritesheet/sprite.png index a63888a..d8a32ab 100644 Binary files a/src/frontend/public/maps/spritesheet/sprite.png and b/src/frontend/public/maps/spritesheet/sprite.png differ diff --git a/src/frontend/public/maps/spritesheet/sprite@2x.json b/src/frontend/public/maps/spritesheet/sprite@2x.json index 02e05d5..d2e89dd 100644 --- a/src/frontend/public/maps/spritesheet/sprite@2x.json +++ b/src/frontend/public/maps/spritesheet/sprite@2x.json @@ -7,17 +7,41 @@ "height": 64, "pixelRatio": 2 }, - "stop-vitrasa-cancelled": { - "id": "stop-vitrasa-cancelled", + "stop-santiago": { + "id": "stop-santiago", "x": 64, "y": 0, "width": 64, "height": 64, "pixelRatio": 2 }, + "stop-coruna": { + "id": "stop-coruna", + "x": 128, + "y": 0, + "width": 64, + "height": 64, + "pixelRatio": 2 + }, + "stop-xunta": { + "id": "stop-xunta", + "x": 192, + "y": 0, + "width": 64, + "height": 64, + "pixelRatio": 2 + }, "stop-renfe": { "id": "stop-renfe", - "x": 128, + "x": 256, + "y": 0, + "width": 64, + "height": 64, + "pixelRatio": 2 + }, + "stop-feve": { + "id": "stop-feve", + "x": 320, "y": 0, "width": 64, "height": 64, diff --git a/src/frontend/public/maps/spritesheet/sprite@2x.png b/src/frontend/public/maps/spritesheet/sprite@2x.png index 5f4b575..ba873a4 100644 Binary files a/src/frontend/public/maps/spritesheet/sprite@2x.png and b/src/frontend/public/maps/spritesheet/sprite@2x.png differ -- cgit v1.3