Sunday 4 September 2016

MEGAFIGHT: A game for Corridor Digital

About a month ago, the cool guys at Corridor Digital released a stop motion video: https://www.youtube.com/watch?v=eaRQtwKo3hg

And for some reason, I got inspired to make this:


I tweeted it to Wren, one of the guys at Corridor, and I mentioned that I would've liked to have made a game out of it, but that would take a bloody long time.

But then I just decided to do it anyways.

For a day, I thought about what the game would actually be, what assets would need to be made like animations, sprites, the programming, the audio etc. And then I concluded that this would be doable within a week or so.

How I managed to get it done in 3 days, I'll never know.

The game was originally meant to be a 2 player fighter with a lot of running, jumping, shooting and a bit of punching. But the way Unreal Engine casts controls to the controller(s) meant that I had to make it single player.

See, you can cast the controls to either the keyboard, or a gamepad. But the problem is, you can't have 2 players using the same keyboard in Unreal. But you also can't have one on a keyboard and one on a controller. They BOTH have to be on controllers. And I only had one.

So I had to think about how to work around this. The obvious solution was to make it single player and have the other character as AI. But I can't program intelligent AI to save my life. The best AI I made was for a project at university, but that was just an AI that would look for the player, chase the player, and the go back to a patrol route. This AI would have to be able to chase the player, but also keep its distance so as not to get hit and only shoot at certain times. Just thinking about having to program all of that is stressing me out.

So I thought about the AI that was made for the university project, that was just on a predefined route around a level, why not do the same for this? But instead of running/jumping, he just teleports to each spot? It would add a bit of difficulty, seen as he wouldn't be running between spots, he would just appear there.

So after a lot of bugs and such, I got it made, but it's STILL full of bugs like how you can die from your own projectiles, the death animation may or may not appear, and if you hold down left and right at the same time, he'll just slide around.

I mean, c'mon I made it in 3 days what did you expect.

I'm actually a little proud of how quickly I managed to make a half-decent little game, and the fellas at Corridor really seemed to have fun with it.

(Here's their video)

And if you want to play Megafight for yourself, here is a link to it on Google Drive https://drive.google.com/file/d/0B_hNWh5_6kf0YlNYOUhaZm0wckk/view?usp=sharing&authuser=2

Also, it's called Megafight because it's in the style (kinda) of Megaman.