RandomityGuy / MBHaxe

A Haxe port of Marble Blast Gold, Platinum and Ultra with 99% identical physics and cross platform multiplayer, runs on Windows, Mac, Web and Android!
MIT License
71 stars 8 forks source link

[Web] [Manifest] Manifest fixes #26

Closed glitch128 closed 11 months ago

glitch128 commented 11 months ago

make manifests different for all three versions as MBU is the only one with a manifest, but it shows itself as MBG, and MBG and MBP don't have manifests linked. what I would suggest is making 2 new manifest files and naming them manifest-gold.json and manifest-platinum.json respectively, and renaming manifest.json at /data/manifest.json to manifest-ultra.json and changing the code of the manifests to

{
    "name": "Marble Blast Gold Haxe Port",
    "short_name": "Marble Blast Gold",
    "description": "A reimplementation of Marble Blast Gold in Haxe",
    "dir": "ltr",
    "start_url": "/index.html?app=true",
    "scope": "/",
    "display": "fullscreen",
    "orientation": "landscape",
    "background_color": "black",
    "theme_color": "black",
    "categories": [
        "games"
    ],
    "lang": "en-US",
    "icons": [
        {
            "src": "/data/icons/icon-512.png",
            "type": "image/png",
            "sizes": "512x512"
        },
        {
            "src": "/data/icons/icon-256.png",
            "type": "image/png",
            "sizes": "256x256"
        },
        {
            "src": "/data/icons/icon-192.png",
            "type": "image/png",
            "sizes": "192x192"
        },
        {
            "src": "/data/icons/icon-180.png",
            "type": "image/png",
            "sizes": "180x180"
        },
        {
            "src": "/data/icons/icon-144.png",
            "type": "image/png",
            "sizes": "144x144"
        },
        {
            "src": "/data/icons/icon-128.png",
            "type": "image/png",
            "sizes": "128x128"
        },
        {
            "src": "/data/icons/icon-96.png",
            "type": "image/png",
            "sizes": "96x96"
        },
        {
            "src": "/data/icons/icon-64.png",
            "type": "image/png",
            "sizes": "64x64"
        },
        {
            "src": "/data/icons/icon-48.png",
            "type": "image/png",
            "sizes": "48x48"
        },
        {
            "src": "/data/icons/icon-32.png",
            "type": "image/png",
            "sizes": "32x32"
        }
    ]
}

for manifest-gold.json

{
    "name": "Marble Blast Ultra Haxe Port",
    "short_name": "Marble Blast Ultra",
    "description": "A reimplementation of Marble Blast Ultra in Haxe",
    "dir": "ltr",
    "start_url": "/index.html?app=true",
    "scope": "/",
    "display": "fullscreen",
    "orientation": "landscape",
    "background_color": "black",
    "theme_color": "black",
    "categories": [
        "games"
    ],
    "lang": "en-US",
    "icons": [
        {
            "src": "/data/icons/icon-512.png",
            "type": "image/png",
            "sizes": "512x512"
        },
        {
            "src": "/data/icons/icon-256.png",
            "type": "image/png",
            "sizes": "256x256"
        },
        {
            "src": "/data/icons/icon-192.png",
            "type": "image/png",
            "sizes": "192x192"
        },
        {
            "src": "/data/icons/icon-180.png",
            "type": "image/png",
            "sizes": "180x180"
        },
        {
            "src": "/data/icons/icon-144.png",
            "type": "image/png",
            "sizes": "144x144"
        },
        {
            "src": "/data/icons/icon-128.png",
            "type": "image/png",
            "sizes": "128x128"
        },
        {
            "src": "/data/icons/icon-96.png",
            "type": "image/png",
            "sizes": "96x96"
        },
        {
            "src": "/data/icons/icon-64.png",
            "type": "image/png",
            "sizes": "64x64"
        },
        {
            "src": "/data/icons/icon-48.png",
            "type": "image/png",
            "sizes": "48x48"
        },
        {
            "src": "/data/icons/icon-32.png",
            "type": "image/png",
            "sizes": "32x32"
        }
    ]
}

for manifest-ultra.json, and

{
    "name": "Marble Blast Platinum Haxe Port",
    "short_name": "Marble Blast Platinum",
    "description": "A reimplementation of Marble Blast Platinum in Haxe",
    "dir": "ltr",
    "start_url": "/index.html?app=true",
    "scope": "/",
    "display": "fullscreen",
    "orientation": "landscape",
    "background_color": "black",
    "theme_color": "black",
    "categories": [
        "games"
    ],
    "lang": "en-US",
    "icons": [
        {
            "src": "/data/icons/icon-512.png",
            "type": "image/png",
            "sizes": "512x512"
        },
        {
            "src": "/data/icons/icon-256.png",
            "type": "image/png",
            "sizes": "256x256"
        },
        {
            "src": "/data/icons/icon-192.png",
            "type": "image/png",
            "sizes": "192x192"
        },
        {
            "src": "/data/icons/icon-180.png",
            "type": "image/png",
            "sizes": "180x180"
        },
        {
            "src": "/data/icons/icon-144.png",
            "type": "image/png",
            "sizes": "144x144"
        },
        {
            "src": "/data/icons/icon-128.png",
            "type": "image/png",
            "sizes": "128x128"
        },
        {
            "src": "/data/icons/icon-96.png",
            "type": "image/png",
            "sizes": "96x96"
        },
        {
            "src": "/data/icons/icon-64.png",
            "type": "image/png",
            "sizes": "64x64"
        },
        {
            "src": "/data/icons/icon-48.png",
            "type": "image/png",
            "sizes": "48x48"
        },
        {
            "src": "/data/icons/icon-32.png",
            "type": "image/png",
            "sizes": "32x32"
        }
    ]
}

for manifest-platinum.json and use these images for the corresponding games Platinum: icon-32x32icon-48x48icon-64x64icon-96x96icon-128x128icon-144x144icon-180x180icon-192x192icon-256x256icon-512x512 Ultra: icon-32x32icon-48x48icon-64x64icon-96x96icon-128x128icon-144x144icon-180x180icon-192x192icon-256x256icon-512x512

RandomityGuy commented 11 months ago

Sure. Initially when I added the manifests, they weren't quite working but seems like they do work now. Can you provide the icons in a .zip?

glitch128 commented 11 months ago

Actually, I'm trying to make a pull request, but how old are the index.html files on the https://marbleblast[ gold | NULL ].randomityguy.me sites? because on the sites, there is no manifest or favicon linked. Here are the .zip files with the manifests inlcuded. platinum.zip ultra.zip

RandomityGuy commented 11 months ago

Yeah those index.html files are slightly different from the ones in the repo, causing them to not be in the same VCS. Fixed those files on the server, changes will be propagated as cache invalidates. Merged the PRs, thanks.