cooperuser / blockade

A minimal but challenging puzzle game, inspired by the ice puzzles in The Legend of Zelda: Twilight Princess.
2 stars 0 forks source link

Show Level number and name in play mode #77

Closed cooperuser closed 8 years ago

cooperuser commented 8 years ago

Make it show the level number and name in play mode. Only show the number if applicable (only when playing default levels).

grady404 commented 8 years ago

I assume "only show the name if applicable" also applies?

cooperuser commented 8 years ago

Yes

grady404 commented 8 years ago

Ok cool, no more Debug

cooperuser commented 8 years ago

Well, the level 0 debug is the name of the level the user gets sent to if something goes wrong

grady404 commented 8 years ago

Well, the level is called Debug, but what I meant is it doesn't say Debug anymore if the level doesn't have a name

cooperuser commented 8 years ago

Correct

grady404 commented 8 years ago

wait a minute, what? Why is there a "number" attribute? I assume that's temporary

grady404 commented 8 years ago

Also, if the bottom left thing doesn't display a number the alignment looks off, so I would try to fix that

screen shot 2016-10-13 at 11 46 10 pm

cooperuser commented 8 years ago

The number attribute is for the default levels.... or should default-level be a flag where it checks the file name?

grady404 commented 8 years ago

But the default levels are saved according to their number (e.g. level15.json)

cooperuser commented 8 years ago

But what if a user names a level level24.json or something

grady404 commented 8 years ago

Then it will display the number 24...

cooperuser commented 8 years ago

I think there should be a default-level flag, then it would integrate with the progress system more

grady404 commented 8 years ago

Well, with the current way we are storing the levels the level number is in the file name. But I actually think we should change that so that the file name is the same as the name of the level (for example, Four Corners.json) and create a file called order.json or sequence.json or something like that that looks like what I typed out below (it is ordered by page). If you're not sure why I made it like this, see the bottom part of issue #58.

{
    "levels": [
        [
            "First Steps",
            "Not So Easy",
            "Doubling Up",
            "Saucer",
            "Globular",
            "Symbiosis",
            "The Climb",
            "Which One?",
            "Correspondence",
            "Underground Heist",
            "Spire",
            "Surprisingly Simple",
            "Mushroom",
            "Easy Way Out",
            "Two-Block Shuffle",
            "Crown"
        ],
        [
            "Triumvirate",
            "Satellite",
            "Four Corners",
            "Jailbreak"
        ],
        [
            "Hyrule Field I",
            "Hyrule Field II",
            "Hyrule Field III",
            "Snowpeak Ruins"
        ]
    ]
}

Eventually, we will change this so that the file names are UUIDs (see #58), and the level name will once again be an attribute in the info section of the JSON.