Tuesday, May 29, 2018

The flaws of World of Kirbycraft's level design

The first level of MMA, Isle Hell City. Believe it, this design has flaws.
I have concerns first-time players aren't going to know what to do. Why is this? Well, my game is very different than other games that use GZDoom as their engine. Also, try playing the first level and see if you can complete it. Yes, today, we'll compare this level to older World of Kirbycraft levels and newer ones from Mary's Magical Adventure to see how each stands in linearity.




In the beginning…

Okay, Stupid Hills might be as flawed as Isle Hell City…
One level was made for the earliest World of Kirbycraft versions, this grass level. There are multiple paths but most of them just lead the player down what feel like corridors with grass textures slapped on them. You can't go on top of the walls, so you can't take shortcuts. It didn't help the level felt very generic. Here's a map of the farthest I got making this level before realizing how bad it was and scrapping it, the version in v1.4.5:
Full map of Stupid Hills (2-1) from WoK v1.4.5. The mouse cursor looks nothing like my wand cursor!
Just looking at the map, it'll confuse you! It's obvious the level would lead you to the top-left corner through one of the many paths but all of the paths, as said before, are just corridors and each path overall feels separate, with no way to change paths easily.

The right side is a secret cave area where a Special Stage entrance could be found. The problem with this area's the same as the other paths in this level, it is separate with only one way back onto the path, unlike later Mary's Magical Adventure level design that makes it quick to return to where you were before finding the secret area (and with ways to switch paths unexpectedly). Overall, I'd say this level design is mostly linear, even with the multiple paths.

Building the city

After this level, I began designing Hell City. In these early versions, it was ugly but anyone can tell it's the same place that's in v1.9!

This level was based on City Trial from Kirby Air Ride since I liked that island's freedom to go anywhere, anytime. Also, I made this because World of Kirbycraft was a machinima series that used Kirby Air Ride gameplay, most of that being City Trial.

While the other level I was making at this point in time, Stupid Hills, was very linear with bland corridors and weirdly-placed secrets, restricting the player's freedom, Isle Hell City was the complete opposite, letting the player go anywhere they wanted and allowing them to try out their weapons and abilities.

Its open and free design proved to be a problem, though. In Kirby Air Ride, there wasn't a place you had to drive to to win, so everything looped around if you followed a path around the island, even through the underground area. In World of Kirbycraft, though, the goal was a set location you had to run to, so I converted the underground area into a tunnel that led out of the city.

I knew the player would just run there and complete the level within seconds unless I gave the player an objective to get the key to exit the area but due to the level being open, I couldn't do that, making the player find a key. This is what made me introduce the HCPD and the GTA-esque Wanted Level system, which keeps you from leaving the island until enough of them are killed. After this, the player would have to get five Wanted Level stars, grab a green key from a cop, then open a room in the HCPD and leave quickly.

There are many problems with this, though. Nothing really tells the player to do this, so they could get lost on the island, the first level of the game, which has very different gameplay from every other level in the game! Also, nothing says you have to get five Wanted Level stars, get the key, then exit. Other levels don't require that many steps to complete them, either; In other levels you just have to find keys to open marked doors, kill monsters, and find secret areas, then once you have a good amount of them found, run to the exit, much better.

With my level design today, which feels open and free but is really linear, Isle Hell City's confusing, fully open level seems pointless to keep in the game. Before talking about my plans for this level, let's compare to the other two levels in the game.

Magical level design

Without thinking much, you may think Mary's Magical Adventure's level design is the same as the older World of Kirbycraft versions, but you'd be wrong! My newer level design is more open than the older level design I made years ago but still ironically does a better job at leading the player to the exit while feeling like it isn't subtly doing so. By comparison, the old level design felt like it was trying to force you down paths, some of which led you to secrets as they were their own paths, while with the current level design, secrets are only off to the side of the main paths, preventing the player from getting confused upon entering secret areas.
World of Kirbycraft v1.4.5 - Stupid Plains (2-1)
Mary's Magical Adventure v1.9-dev - City Street Run (1-3)
Compare the map on the bottom to the one above it; Although I haven't marked anything on either map, you should be able to make out a path on both, but notice how many paths appear to branch off into nowhere on the World of Kirbycraft map! This isn't just because that level was never finished, but those are he secret paths.

Looking at the bottom map, you can see a lot of the areas that lead nowhere are just out of bounds areas for polyobjects (bottom-left) and the view from Xane Corp.'s window (upper-right), but you can see the level starts at the left side and goes down-right to the end at the bottom. With the World of Kirbycraft map, it starts at the bottom and ends up at the top-left.
In fact, watch me go through all of the non-Special-Stage levels in the current version of Mary's Magical Adventure; You'll see how most of the levels have a logical path but the first level doesn't, with Mary running everywhere to fight HCPD then returning to the building to open the room and escape. Really, this video is the best proof that the first level stands out in a bad way compared to the other levels.

The future

This was the level design I had to deal with outside of Isle Hell City as I felt I couldn't do any better, but the other two levels I've since made proved me wrong. Therefore, in the future, I have plans to get rid of the first level entirely. It's so out of place with the random cop fight (which the Battle Arena minigame handles better, anyways).

One problem that comes to mind is that this level is used for the Small Hut internally, so I can't fully get rid of it, but what may happen is I'll just remove all areas not related to the Small Hut and minigames then make a new level in place of Rooftop to Rooftop, pushing that level to the next slot, and so on. It made no sense that the supposed first level labelled "1-1" wasn't able to be re-visited...

Another problem is that this level's random cop battle was what made the dispatcher start making the cops follow you through the other levels, ending with a confrontation with the dispatcher himself. Removing that initial battle will make the dispatcher not seem like a battle the player could see coming, but it's planned that during the new first level, there will be cops that the player can kill. Killing one would make the dispatcher magically know your character killed the cop. (Well, it makes no sense how the dispatcher always knows exactly where your criminal is in Grand Theft Auto games in my opinion so this is just as illogical!)

At one point in the first level, there'd be a big button your character would land on that would forcibly kill a nearby cop, which would be done so the player would commit a crime that sets off the dispatcher, no matter if they killed a cop before this or not. For Xane, he would break out of jail during his story so the dispatcher would have a different reason to not like him. As the player ends up on Uroboros, the dispatcher would be heard alerting the cops on-board that the criminal that killed cops is there. I suppose this would fix the issue with removing the dispatcher's initial "encounter" with the player.

A good thing about making a new first level is that I can properly teach the player about different gameplay elements that I couldn't properly tell the player about in Isle Hell City. During Xane's story, he gets thrown in jail for suspected murder and for resisting arrest. After breaking out of jail, the player's taught about his three unique abilities:
  1. Kirby puffs
  2. Drop Dash
  3. Xane's claw
Meanwhile, during Mary's story, she's hanging out at home, drinking the juice she got from Mary's (the restaurant). She looks at a picture and realizes just how nice of a city she lives in...but then the Origin Master arrives and destroys a nearby landmark (or something). This scares Mary, who then runs away from her home. During this, she's taught about her three unique abilities:
  1. Air Dash
  2. Mary's crying
  3. Umbrella flight
After this, the paths would merge, allowing Mary and Xane to reach the big building that starts off 1-2. If no alternative path's made for Xane, the basketball court he visits in 1-2 will be made available to both characters and Xane would start the level at the same place as Mary.

Well, that's all for this time! Maybe one day the first level will be consistent with the other levels...

Saturday, May 12, 2018

Challenges in Mary's Magical Adventure

Let me tell a story about an interesting part of Mary's Magical Adventure that dates back to just after the name change from World of Kirbycraft, v1.6. There was a mysterious place that Mary could visit, planned reachable at the end of each level. Its name was the Hall of Challenges.

The only challenge programmed wasn't the best idea...
In this mysterious brick building in the sky, which was planned to be viewable from the outside in a later sky level, Mary could use switches to unlock gated-off openings to past levels. When she returned to the level she chose, she'd be given a challenge based on the difficulty the player chose. Should she complete it, she would be rewarded the great Powerup Coins, which would reward her with temporary upgrades...

Okay, let's end the story-like writing here! The Hall of Challenges wasn't as good as I was expecting it to turn out during development, but it was a good idea. It allowed me to reuse levels I spent weeks working on with minor script adjustments. The thing is, being able to be sent off to a random location after each level didn't make much sense (even though a similar thing is allowed in later versions, warping to the Small Hut).

Additionally, completing special stages in v1.6 advanced you to the next level, so if you chose to challenge a special stage, you wouldn't be able to visit the Hall of Challenges. This was done because the special stage is a separate map that the player is warped to, which made the game forget what happened in the proper level. These reasons are most likely why the Hall of Challenges was removed after v1.6, since special stages were modified to allow returning to the special stage entrance the player used.

If you think this looks hard, the wind makes it harder!
Since it was removed so fast, only one challenge was created, though other types were functional if forced on. As shown in the second picture above, it was a unique challenge; Mary had to survive for a certain amount of time (which varied depending on difficulty) while really fast versions of the yellow HCPD officer chased you around. In v1.6, the newly-added wind was enabled at power level 3 in 1-1 and Mary couldn't Air Dash while crying, so controlling your movement to escape the cops was nearly impossible! If you died, the dispatcher insulted you then you returned to the Hall of Challenges; Failing any challenge would just return you there.
Congratulations! You got the Heal Coin...I think!
This is the Damage Coin's DECORATE properties.
If you completed one, you would earn up to five Powerup Coins depending on your difficulty and the challenge type. If you already completed this challenge, you would only get half. After this, you would advance to the next level. Although nowadays these coins are easy to come by, able to be purchased from the Small Hut and found within the levels, back in v1.6 they were your reward for completing challenges. In fact, even in v1.9 they are sometimes referred to as "challenge" internally even though this version of the challenges is no longer used.

So wait, you're telling me Jane never noticed that rug?
But wait, what do I mean by "this version"? Well, reader, the challenges are planned to return in either v1.95 or v2, the ZDoom Demo. If you've looked closely inside the Small Hut, you may have seen an orange rug with a "C" on it. This will toggle challenges, which will make the challenge description and completion status appear when changing levels using the two switches beside the teleporter.

This is how it was planned ever since the Hall of Challenges was removed, but only now am I adding the changes to make challenges work! The rug doesn't function yet as that's the part the player will interact with. You'll step onto that rug to toggle challenges. Using the level change switches, you'll see whether this challenge has been completed before and what the goal is. After this, using the teleporter will warp you to the level you've selected, only with a challenge enabled (indicated with a timer on-screen). Said timer is separate from the timer that appears during speedruns, so you can still do challenges during them.
"Luck bonus"? Is this random or based on something? You'll have to find out!
Completing a challenge will reward you with normal coins, as Powerup Coins are hidden in the levels now. You get a set amount of coins depending on the challenge type but bonus coins are rewarded based on an additional condition that is determined by what challenge type was completed. For example, "run to the end of the level" gives you coins based on how much time you had left on the clock while "kill monsters" gives coins based on how big your combo was upon completing it. (Don't think of using a Combo Coin to cheese that, mind you.)

Anyways, whoa, this is a big blog post! Look forward to when challenges return to Mary's Magical Adventure, player! They will be back in v1.95 or v2, whichever is the next release.