12/9/08

Attack of the 50ft Robot!

Near the end of Kudos, when fall registration was happening, I decided to go into the "advanced" game section. Turns out it wasn't so much different or as great as I had imagined, but in the class are students who want to and are making quality games. My main reason for getting into that section of game class was that I wanted to work with a team that was dedicated to making a great game. Well since I didn't really know too many people at DigiPen, I was one of the few people thrown into a random team. During summer classes Dan, our lead producer, got four of us together. Eric, Mike, and Alex were going to be programmers along with me. Dan was a lead producer, making him also a producer for another team. I wouldn't realize until later that they have five programmers and three artists.

We met every Friday afternoon to discuss general things about what we would be doing in the upcoming semester. I tried to pitch a game idea about a First Person Shooter with bears, the number one threat to America, but that didn't go so well, and they have been giving me shit about it since. One of the major things was deciding our roles. I wanted to do graphics again, but Eric had a bad experience with a producer who tried to do graphics and failed. Plus, Eric was already a year ahead in his graphics classes, and he was taking an independent study game class to work on a graphics engine. I wound up doing the core engine, like the previous year, but I also requested to work on animations. This made me the technical director. Mike was going to do input, AI, and player control. Anything gameplay related. He was going to be our game designer. Alex, the last programmer, would be doing physics.

Mike's first game concept pitch, after my failed attempt at bears, was kind of like Katamari Damacy. You would be atop a giant ball and need to roll over enemies as they threw arrows onto your ball, which you had to avoid while rolling... His second idea was a derivation of that. You could go around to various pools of substances, such as mud, metal, rubber, etc., and create a ball of that substance. You could either launch it threw the air or ride it and smash into someone. This idea was a bit better, and there were more options with the gameplay, but it didn't feel very fun. I also would have nearly no character animation programming to do.

My other idea for a game was actually stolen from my friend Matt, although I did ask him if we could use it. Combine God of War with a bedtime story and you get Sweet Dreams. It's a game about a little boy in his PJs and a cape wielding two flashlights attached to rope that could be flung all around him. His brother was kidnapped and darkness was surrounding the world. It would be a great game, but way too much content. This would be a great game to do in our Senior year when we have a bunch of code and mainly need to produce content.

So, unhappily we settle with the smashing balls idea and do nearly nothing for the rest of the summer. I programmed a few new things, but I was mostly getting rid of all the Kudos' code from my engine because I would be expanding on that. Earlier in the summer I created a new system based on component-driven game objects. With this, each of the different modules, such as sound, AI, graphics, etc., could create their own component and contain it however they wanted. Each module could operate separately from the others.

The fall semester came and we were still stuck on the smashing balls idea. None of us had thought about anything better at the time, so we stuck with a team name that was suitable for that game. Uphill Games. We needed to call our SVN folder something if we were to start coding. During the second week I stripped out everything else from my engine besides the few core things. I helped Eric transform his graphics project into a new part of the game. I set up the component system so that whenever we create a game object that had a graphics component, it would request that from graphics, and Eric would handle it however he saw fit, as long as he gave a pointer back to that component. The conversion took about 2 days to complete. Mike and Alex didn't have much or any code, so they started from scratch.

Our game concept pitch was 6 weeks into the semester, and at around week 4 we still had balls bouncing around in our heads. Just not very exciting balls. So we had a big brainstorm meeting one day. Up to this point I had been suggesting another game that mixed Super Mario Kart, Twisted Metal, and Track Mania. It didn't seem like they wanted to do a racing game. I didn't want to so much either, but it was a better idea than our balls. I went with the core concepts of that game and suggested having a game with those: speed and destruction. Alex suggested a game where you just destroy a city. We all liked it.

As we talked more about the ideas of the game, we narrowed it closer down to a game about a boy who eats a bad sandwich and starts growing bigger, robot-like, and aggressive. You would play as this character while continually getting bigger and bigger until you were as tall as skyscrapers. This was good, except for the whole story. After another week or so of talking about it and a meeting with Ellinger, our main game teacher, we managed to get it closer to just a non-growing robot destroying a city.

Of course, while discussing game design, we were still programming. Since I was doing the core engine, I had to work quite a bit on getting it up and running, since everything else depended on it. I got a messaging system, memory allocator, XML parser, and Lua script handler done within the first few weeks. Alex was starting on his physics, and Mike did all the input with Direct Input and started on AI. Eric was fooling around with things, but didn't do a whole lot. One of the problems that he, and the rest of the team had, was that we really didn't have an art style laid out for the game. This would highly influence the kinds of technique Eric would be implementing.

Dan told us to find screenshots of a game that has the art style that we would want our game to be in. I was the only one who researched, but I didn't find a single game that I wanted to replicate. I had a very specific idea in my mind, but because I'm not much of an artist, I wasn't able to convey it well. I did find three games that had aspects that I thought would be good and presented those. After that I thought we had a somewhat agreeable style, but that was not the case. My team was still not content with this vague idea about our art style.

Then Alex pulls another one. 50s sci-fi B movies. I am hesitant at first because I am the only one who has any artistic talent on the team, thus I have to create all of the artwork. Yes, all the textures would be in black and white, but I would have to work extra hard to make sure the scene had enough contrast with only greyscale. I may also need to create more unique buildings to convey to the player that they are in the 50s. But after a while it sinks in, and I am hooked on this idea. At first our game was City of Destruction, but it was changed to its final name Attack of the 50ft Robot!

Unfortunately, by the time we found our new art style we had already presented our initial concept pitch to our class. At least I had envisioned more of an anime feel to the game and created a 3D robot sort of in the style of RoboTech. I spent a week thinking about the robot after seeing The Iron Giant and settled on a new design that featured one glowing, red eye. I didn't want to give it two eyes because it would start to look more human. Thinking that cyclops is a monster, I gave our robot only one eye so it could become a "monster". It was a very simple design, mostly made out of cylinders.

Since I had done most of core engine by this time, I would be starting my focus on animation programming. I had two major options on how to approach our robot, but with wanting it to be physically flexible, I separated each part of the robot and have my own animation controller moving the parts. The other way would have been using a skinned mesh, but that would have been more complicated for exaggerated animations, such as the rocket punch. Each part of the robot is a game object. They all have animation joint components which are linked together for the animation.

For our engine proof demonstration, we didn't have a whole lot to show. I was just starting on animations, so I just had simple rotation and position interpolation with the whole robot moving as one. Our AI was just a tank that tried to wander around, but physics was the major complaint by the teachers. It just wasn't up to par with our goal to have a destructible city. Alex knew he had problems. Objects didn't collide very well and there were only interactions between spherical collision boundaries. Also, we couldn't have too many objects in the scene because each object was tested against every other object, an N^2 algorithm. We ended up tying for last place in scores from our instructors.

I suppose getting those low scores influenced us to do better. The rest of the week I really went to town on my robot animation. Within two weeks I had animation blending and combining. Blending is switching from one animation to another, and combining is playing two animations on top of each other on the same character or object. The robot could easily punch while walking. By working on the animation system, I had to put code in the player logic to control which animations played. I have now took over control of the player logic from Mike. Oh, and mind you, each of the robot's parts had physics on them, so when I animated a punch, it would actually punch.

A week before our final presentation (first playable prototype) we still didn't have much of a game. You could move around the world and play as the robot, but the world consisted of a small plane and a small brick tower. Of course the physics were still broken, so the bricks weren't touching and if you ran into something, the body parts would rotate then soon disappear. The generic AI was mostly in, but they just moved around. Our graphics were at a pretty good state with film grain, motion blur, scratches, film dust, and a fairly decent particle system. Only, we just had one particle system.

That week, including Thanksgiving weekend and up until 1am in the morning on the following Monday, we worked quite a bit on our game. Alex was down in Portland until Sunday night, so the physics was still a mess, but he was able take out certain things and leave it at an acceptable state. I got animation rotations in so the robot could strafe side to side by rotating his legs and slightly rotating his upper body. The upper body also rotated to the angle of the camera. This effected which direction the player punched. I also managed to get grabbing objects in the game. At first a small cube was spawned in front of the player, but by our presentation, it could grab tanks, helicopters, missiles, and chunks of buildings. AI was now firing off missiles at the player. Alex made the blocks explode in random directions when they were hit for an exaggerated and unrealistic approach. It surprisingly worked and may continue to stay in the game in some form. We made our window in a 16:10 aspect ratio and kept that in fullscreen with black bars. Lastly, Eric made it so that the screen shakes with motion blur if you are hit or punch the buildings.

While waiting for our turn to present, we thought we might have some competition. Our game, while drastically improved since the previous presentation, or even week, wasn't completely polished with every aspect of gameplay we wanted to have and realistic physics. We also were aimed to go after Igneous, a game about a tiki stone traveling up the middle of a volcano while fighting of blobs of lava. They had amazing graphics/shaders and even more beautiful physics. Plus, Ben Gable, their lead producer, could do an entire presentation with a slideshow and animations without ever looking back at it and the timings perfectly done. Fortuantely for us, the first three games weren't that great, so it eased off the frustration.

Our presentation came and I was controlling the robot and playing the game. It was very exaggerated, but I showed off all the aspect of the game and the audience really seemed to like it when I grabbed a missile and threw it up into the air then see it explode. The presentation when smooth and the teachers liked the style of the game, the graphics that Eric did with his effects, and the robot. While our scores were fairly good, Ben Ellinger said that he would bet his money on us winning the student showcase of the Independent Games Festival, the big award for students to go for. We would have to work really hard to make it better, but he thought that people would enjoy playing as a robot destroying a city.

One major flaw was that we only had two sounds. So the rest of that week was still spent working on the game, besides Tuesday when none of us submitted any changes to SVN. Since I had programed the sound engine for our game, the rest of the team said I was the sound director. This of course was on top of being the technical director, because I programmed the core engine, and the art director, because I could produce art, even if it was merely ok. So I got sound effects for crushing buildings, tanks shooting, and rockets exploding, but I still needed music. I tried to make my own, but it just didn't work out so well. I'm not that great at making it. I looked around in DigiPen's sound libarary for classical music, since that would probably fit the best of the DigiPen's selection and searched through a good amount before thinking that none of the songs would fit. A day later, Alex manages to find a great song. Of course, it was one of the last files in the last folder, and I had given up before that point.

We submitted our game on the following Friday, and a few people have played it and actually liked it. I actually like playing it, and I hate playing my previous two games. They just aren't that fun. Hopefully this game can be improved upon to be fun for over 20 minutes and win IGF.

No comments: