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.
12/9/08
5/6/08
The End of Kudos
We had our Alpha presentation. Both Bryan and I were pretty bummed afterwards. There was a bug in the map triggers which left the collision for the physics of a wall that disappeared. Luckily, Bryan's physics was still buggy, so it allowed the Kudos to slip through some awkward gaps. Justin either really had problems with merging files with SVN or he didn't finish the AI movement, so we couldn't command the kudos to move anywhere. Bryan also experienced problems in getting to Bart the Bear, the boss of the forest, during the presentation. He kept on dying because he was losing some kudos that were getting stuck on the invisible collision. Matt also seemed to have too many "um"s and pauses while presenting our game.
Spring Break came and I did almost nothing on the game. In fact, I played Team Fortress 2 for most of the time. I even played this one map that had no winning or losing conditions for about 5 hours straight. Earlier in the week I had friends over, and we were all out in my living room with tables set up. After they left I stayed out there with my computer until I moved it back in my room once the break was over.
Our Focus Group session was coming up in a few weeks after Spring Break was over. We wanted to have a tutorial level that players could go through to learn how to play the game. Bryan was going to create a simple "scripting" system for the tutorial so that players would see messages, react, then advance to the next message or area. Since I was in charge of the UI, it was my job to create speech bubbles that would display messages. The idea was that multiple kudos would be standing around and the speech bubbles would appear over their head when the player got near. I also made it so that the speech bubble would smoothly fade away if Oscar or the mouse cursor were close to it.
Justin finally uploaded his fixed AI movement code two weeks after Alpha. This would mark the beginning of a stream of "fixed" messages on SVN until the end of the project. We all noticed it was still a little awkward/buggy. Kudos seemed to try to go straight towards their destination then stop if anything was blocking the path right in front of them. During the Focus Group session, two weeks after his grand AI movement fix, we learned that this was his intention. If I remember correctly, after he joined our team we told him he would be doing pathfinding for the kudos. From the word pathfinding, you can most likely assume that you would be finding a path. He was finding a straight line until an obstacle, not a path. What really boggled my mind was that he said was using A*. He even wrote a function that determines if a kudo is trying to move but hasn't moved for a full second. This was used to tell a kudo to give up trying. A simple intersection test would have worked.
One week before the Focus Group session Justin uploaded code. He didn't work during the week to improve things for Focus Group where people would be playing our game, nor did he upload anything for two more weeks. Justin did not upload anything to SVN for an astonishingly long three weeks. There was no break or days off of school either (which really should not be an excuse). He did do some work after the Focus Group session. Since he was the Product Manager it was his job to whip up an evaluation and analysis for the Focus Group. On the Monday before our Thursday GAM class, he e-mailed the three of us his analysis and asked for comments/suggestions. Being the editor that I am, I spent almost two hours working through the paper and writing up four pages of corrections and suggestions for improvement. One of the glaring issues was a misspelling of "definitely". He had about 9 cases of "defiantly". I made mention of every one. As I arrived at school that day, I passed him at the front entrance and told him about it in a jokingly way. On Thursday, he seemed distant and didn't even respond to my "hello". The three of us left class early, after the lecture and producer reports, and Justin stayed to finish up on the analysis. A week later Moore e-mailed feedback and a score for it. I checked it out and saw that Justin had not used any suggestion that I gave whatsoever. It was the exact same version he had previously sent to the three of us. On the copy Moore sent, he highlighted in red all of the "defiantly"s. Justin still got a descent score, but the fact that he didn't even fix the "defiantly"s pissed me off. Granted he may have thought I was being an ass, but I truly just wanted the best paper possible. This is the sort of thing I try to do with formal papers. Towards the end of the semester I would realize he does not take criticism well.
Our Saturday sessions were fairly successful. Justin appeared to actually work, and we could all do tasks efficiently and with the help of others, if needed. Yet there seemed to be a problem between each of our Saturday coding sessions towards the later part of the semester. It was a lack of motivation. I first started to feel it when I realized that Justin wasn't submitting anything, and when he was, nothing really seemed to change from his code. The amount of work from our team seemed to be down, and the hours logged were low. Overall I was still logging in the most time and doing the most work, but because everyone else was doing less I felt bad. I couldn't seem to work well on a team project that the rest of the team wasn't putting the same effort into. It got worse when Matt asked to stay over after Friday's classes because of bad traffic. To try to influence working on the game, I just stayed on my computer the entire time he was over and worked on Kudos. For 5 hours he just laid on my bed reading books. On the following Tuesday, I told him off then sat at my computer for hours later that night just staring at the screen. I skipped the first two classes the next day just to make up work. On the last two Saturday sessions Bryan kept on asking if he could go home because he did not want to work on Kudos.
We had our Beta presentation on the first week of April. It was my turn to present, but I didn't think the game was up to snuff. We clearly did not have a game that was all done besides a few bug fixes. Leading up to the time we were going to present, I kept on feeling bad about the game. There were many more games in better condition than ours. I finally got myself together and brought the team to the front of the room. We did not have a great or complete game, but I lead the audience through Kudos and Beta improvements while Matt controlled the game. I spoke with no awkward pauses or "um"s (that I am aware of), and I tried to tell enough information in a nicely packed amount of time, leaving no rooms for questions that I did not want to answer. It went pretty damn well.
We still had a problem. The final game was due in three weeks and we still needed two more levels, along with some key gameplay elements. Justin had actually fixed his AI movement for Beta. It was incremental A*, so the Kudos would always have to walk along obstacles after hitting them to find a path, instead of avoiding them completely with a good path finding algorithm. At this point Justin started asking Matt and I for new things to code during the Saturday sessions. Both of us were sort of weirded out from this new experience and had to think for a while for things he could do. I couldn't really think of any programming tasks for him, so I suggested that he should create the final level. Yet Justin was really eager to program something rather than create content. I think at this point Justin realized just how much code he had done. After some suggestions from the GAM TA, I had split up files and specifically split up the AI file into three separate files. Justin's AI movement was all contained in one file with less than 900 lines of code. We had over 20,000 lines of code in the project. Do the math. For two Saturday sessions I encouraged him to do content, but somehow he ended up doing useless things. He "improved" his pathfinding to get rid of useless nodes, but this introduced some nasty bugs. He spent the rest of the time fixing it. One major problem with the pathfinding that Justin never addressed was the fact that Kudos could only travel on the nodes and the horizontal, vertical, or diagonal lines that connected the nodes. This leaves the kudos traveling on crooked, instead of fluid, lines. The kudos also travel in a single-file line. Justin said formations would be easy to do when he first started out. Now we can send kudos in one-by-one to their death. Bryan ended up creating the final level, but Justin was going to finally create content and do the tiles for the it. He was supposed to create ice, but the outcome was some messed up psychedelic mixture that didn't tile well. Bryan made his typical criticizing comment, and Justin seemed to be really defensive about it. As usual, motivation was low, along with hours logged, for the last few weeks of development.
A week before our final submission Justin was to show off our marketing materials. As a Product Manager, he could have asked Bryan or I to create artwork for the box art. He chose to do it himself. After seeing all of the presentations for the marketing materials, I could clearly say that his was the absolute worst, even more than the boxes that were not even completed. I had a hunch it would be the worst when I saw it the night before on SVN. For the front cover he took a screenshot and put it dead center. There was no enlarging or cropping. The whole screenshot was on it. You could barely see Oscar or the kudos. There was even the FPS counter in the upper corner, which should only be on for debugging. This is not box art. It looked like he even stole the PC CD strip from EA to put at the top. The back side was a continuation of the front, but with bad text. At the bottom was a "Know Your Kudos" section, but he couldn't even properly extract the kudos from the sprite sheets. A few were cut off a bit short. The background was completely white and all the text was black and Times New Roman. He even messed up on our team name. We are "Bryan & Sons" not "Bryan And Sons". He shouldn't have even capitalized the "And". It was a complete mess. The manual wasn't much better. It had a front page saying that it's a manual, an inner page for the table of contents, an inner page with all the information that is pointed to by the table of contents, and an back page with a team list. He forgot the press release, so Bryan whipped it up late at night after his e-mail.
During the last two days Bryan was able to completely redo the forest map and create an intricate desert. They are actually quite amazing compared to what we previously had for the forest. I managed to get Mortimer, the final boss, and a saving and loading interface in the game along with tons of various tweaks and fixes. We sent it off to Moore, and I hadn't actually played the full game until a few days ago. I just realized we had two major saving and loading issues. Hotkeys disappear after each level, and all the Kudos that are dazed are added to your party for the next level. Kudos also crashes after defeating Mortimer.
Our game lacked nearly half the elements in the GDD. We had half the kudos, no creatures, no town, no kudo points, no treasures, no non-linear gameplay, half the bosses, and half the size of the levels. It's sort of disappointing. I had hoped that my sophomore game would be pretty good. I learned two things. One: I am a very bitter person. Two: Justin was a terrible teammate who took forever to not accomplish much. He did not accept criticism, did not work when needed, and did not comment his code (except for one measly line).
Spring Break came and I did almost nothing on the game. In fact, I played Team Fortress 2 for most of the time. I even played this one map that had no winning or losing conditions for about 5 hours straight. Earlier in the week I had friends over, and we were all out in my living room with tables set up. After they left I stayed out there with my computer until I moved it back in my room once the break was over.
Our Focus Group session was coming up in a few weeks after Spring Break was over. We wanted to have a tutorial level that players could go through to learn how to play the game. Bryan was going to create a simple "scripting" system for the tutorial so that players would see messages, react, then advance to the next message or area. Since I was in charge of the UI, it was my job to create speech bubbles that would display messages. The idea was that multiple kudos would be standing around and the speech bubbles would appear over their head when the player got near. I also made it so that the speech bubble would smoothly fade away if Oscar or the mouse cursor were close to it.
Justin finally uploaded his fixed AI movement code two weeks after Alpha. This would mark the beginning of a stream of "fixed" messages on SVN until the end of the project. We all noticed it was still a little awkward/buggy. Kudos seemed to try to go straight towards their destination then stop if anything was blocking the path right in front of them. During the Focus Group session, two weeks after his grand AI movement fix, we learned that this was his intention. If I remember correctly, after he joined our team we told him he would be doing pathfinding for the kudos. From the word pathfinding, you can most likely assume that you would be finding a path. He was finding a straight line until an obstacle, not a path. What really boggled my mind was that he said was using A*. He even wrote a function that determines if a kudo is trying to move but hasn't moved for a full second. This was used to tell a kudo to give up trying. A simple intersection test would have worked.
One week before the Focus Group session Justin uploaded code. He didn't work during the week to improve things for Focus Group where people would be playing our game, nor did he upload anything for two more weeks. Justin did not upload anything to SVN for an astonishingly long three weeks. There was no break or days off of school either (which really should not be an excuse). He did do some work after the Focus Group session. Since he was the Product Manager it was his job to whip up an evaluation and analysis for the Focus Group. On the Monday before our Thursday GAM class, he e-mailed the three of us his analysis and asked for comments/suggestions. Being the editor that I am, I spent almost two hours working through the paper and writing up four pages of corrections and suggestions for improvement. One of the glaring issues was a misspelling of "definitely". He had about 9 cases of "defiantly". I made mention of every one. As I arrived at school that day, I passed him at the front entrance and told him about it in a jokingly way. On Thursday, he seemed distant and didn't even respond to my "hello". The three of us left class early, after the lecture and producer reports, and Justin stayed to finish up on the analysis. A week later Moore e-mailed feedback and a score for it. I checked it out and saw that Justin had not used any suggestion that I gave whatsoever. It was the exact same version he had previously sent to the three of us. On the copy Moore sent, he highlighted in red all of the "defiantly"s. Justin still got a descent score, but the fact that he didn't even fix the "defiantly"s pissed me off. Granted he may have thought I was being an ass, but I truly just wanted the best paper possible. This is the sort of thing I try to do with formal papers. Towards the end of the semester I would realize he does not take criticism well.
Our Saturday sessions were fairly successful. Justin appeared to actually work, and we could all do tasks efficiently and with the help of others, if needed. Yet there seemed to be a problem between each of our Saturday coding sessions towards the later part of the semester. It was a lack of motivation. I first started to feel it when I realized that Justin wasn't submitting anything, and when he was, nothing really seemed to change from his code. The amount of work from our team seemed to be down, and the hours logged were low. Overall I was still logging in the most time and doing the most work, but because everyone else was doing less I felt bad. I couldn't seem to work well on a team project that the rest of the team wasn't putting the same effort into. It got worse when Matt asked to stay over after Friday's classes because of bad traffic. To try to influence working on the game, I just stayed on my computer the entire time he was over and worked on Kudos. For 5 hours he just laid on my bed reading books. On the following Tuesday, I told him off then sat at my computer for hours later that night just staring at the screen. I skipped the first two classes the next day just to make up work. On the last two Saturday sessions Bryan kept on asking if he could go home because he did not want to work on Kudos.
We had our Beta presentation on the first week of April. It was my turn to present, but I didn't think the game was up to snuff. We clearly did not have a game that was all done besides a few bug fixes. Leading up to the time we were going to present, I kept on feeling bad about the game. There were many more games in better condition than ours. I finally got myself together and brought the team to the front of the room. We did not have a great or complete game, but I lead the audience through Kudos and Beta improvements while Matt controlled the game. I spoke with no awkward pauses or "um"s (that I am aware of), and I tried to tell enough information in a nicely packed amount of time, leaving no rooms for questions that I did not want to answer. It went pretty damn well.
We still had a problem. The final game was due in three weeks and we still needed two more levels, along with some key gameplay elements. Justin had actually fixed his AI movement for Beta. It was incremental A*, so the Kudos would always have to walk along obstacles after hitting them to find a path, instead of avoiding them completely with a good path finding algorithm. At this point Justin started asking Matt and I for new things to code during the Saturday sessions. Both of us were sort of weirded out from this new experience and had to think for a while for things he could do. I couldn't really think of any programming tasks for him, so I suggested that he should create the final level. Yet Justin was really eager to program something rather than create content. I think at this point Justin realized just how much code he had done. After some suggestions from the GAM TA, I had split up files and specifically split up the AI file into three separate files. Justin's AI movement was all contained in one file with less than 900 lines of code. We had over 20,000 lines of code in the project. Do the math. For two Saturday sessions I encouraged him to do content, but somehow he ended up doing useless things. He "improved" his pathfinding to get rid of useless nodes, but this introduced some nasty bugs. He spent the rest of the time fixing it. One major problem with the pathfinding that Justin never addressed was the fact that Kudos could only travel on the nodes and the horizontal, vertical, or diagonal lines that connected the nodes. This leaves the kudos traveling on crooked, instead of fluid, lines. The kudos also travel in a single-file line. Justin said formations would be easy to do when he first started out. Now we can send kudos in one-by-one to their death. Bryan ended up creating the final level, but Justin was going to finally create content and do the tiles for the it. He was supposed to create ice, but the outcome was some messed up psychedelic mixture that didn't tile well. Bryan made his typical criticizing comment, and Justin seemed to be really defensive about it. As usual, motivation was low, along with hours logged, for the last few weeks of development.
A week before our final submission Justin was to show off our marketing materials. As a Product Manager, he could have asked Bryan or I to create artwork for the box art. He chose to do it himself. After seeing all of the presentations for the marketing materials, I could clearly say that his was the absolute worst, even more than the boxes that were not even completed. I had a hunch it would be the worst when I saw it the night before on SVN. For the front cover he took a screenshot and put it dead center. There was no enlarging or cropping. The whole screenshot was on it. You could barely see Oscar or the kudos. There was even the FPS counter in the upper corner, which should only be on for debugging. This is not box art. It looked like he even stole the PC CD strip from EA to put at the top. The back side was a continuation of the front, but with bad text. At the bottom was a "Know Your Kudos" section, but he couldn't even properly extract the kudos from the sprite sheets. A few were cut off a bit short. The background was completely white and all the text was black and Times New Roman. He even messed up on our team name. We are "Bryan & Sons" not "Bryan And Sons". He shouldn't have even capitalized the "And". It was a complete mess. The manual wasn't much better. It had a front page saying that it's a manual, an inner page for the table of contents, an inner page with all the information that is pointed to by the table of contents, and an back page with a team list. He forgot the press release, so Bryan whipped it up late at night after his e-mail.
During the last two days Bryan was able to completely redo the forest map and create an intricate desert. They are actually quite amazing compared to what we previously had for the forest. I managed to get Mortimer, the final boss, and a saving and loading interface in the game along with tons of various tweaks and fixes. We sent it off to Moore, and I hadn't actually played the full game until a few days ago. I just realized we had two major saving and loading issues. Hotkeys disappear after each level, and all the Kudos that are dazed are added to your party for the next level. Kudos also crashes after defeating Mortimer.
Our game lacked nearly half the elements in the GDD. We had half the kudos, no creatures, no town, no kudo points, no treasures, no non-linear gameplay, half the bosses, and half the size of the levels. It's sort of disappointing. I had hoped that my sophomore game would be pretty good. I learned two things. One: I am a very bitter person. Two: Justin was a terrible teammate who took forever to not accomplish much. He did not accept criticism, did not work when needed, and did not comment his code (except for one measly line).
2/11/08
Alpha Worries
In my previous entry, I discussed Brandon leaving the team. His replacement was Justin, who would be the main person in charge of AI movement. He joined our team at the end of the first week of school, and it is now the start of the sixth week. Our Alpha presentation is on Thursday and the deliverables are due on Friday.
We gave Justin a week to get familiar with our code base, but because we each have defined roles, he would have to look no further than the AI module and objects. The time needed to understand the structure of the code he would be working off of would be fairly quick. Mostly we were waiting until he was granted SVN access from IT. He utilized this time by preparing a path finding algorithm. I am not entirely sure what occurred during the second, third, or even forth week, but I do remember he adjusted the way the Kudos found their targets, making them more efficient killers in the process. We all cheered in glee on that Saturday meeting.
I wasn't cheering at all this last Saturday. I do agree that Brandon's AI movement wasn't the best. Following the main character and staying apart from each other in a fluid manner worked well, very well. Starting and stopping the Kudos was an issue, and this was the main issue that needed to be repaired. We also needed to take in consideration for obstacles, yet even at this point the massive amounts of obstacles we imagined in our heads 5 months ago are severely lacking in implementation. The use of path finding at this point in our map complexity is utterly useless. The terrible thing is that Justin's path finding makes the AI movement roughly 10 to 20 times worse.
The Kudos do not move in the right direction when you command them to move to a particular location. They get stuck dancing in some seemingly random location. If you click too many times the game crashes. Selecting Kudos created memory leaks for a long time (a week is a while in my book). The AI movement is absolutely terrible.
Rant (as usual): What in the world did Justin do for 4 weeks? How did it possibly get that bad? How could it get worse than Brandon's code? Didn't we all think that Brandon was the epitome of all evil code? No. His code is the shit (the good kind) compared to Justin's. Justin's code fails at multiple levels:
If Justin's code does not make the Kudos move and walk better than before, then I will make the executive Technical Director decision to revert back to Brandon's code for Alpha. This gives him 3 days to fix it. He was also supposed to create a stats editor for editing and creating the characters. This is what the xml files were for. Bryan knew that the movement would be most important, so he told Justin to hold off on that until after Alpha.
Bryan has actually surprised me in the last week. Before I was frustrated with him not understanding some code that he had wrote with a huge help from his roommate Sean. I have no problem with helping someone out with a programming concept or problem, but Sean seemed to hold his hand through the entire ride and tell him exactly which key to press and when. A memory leak detector that I like to use was finding leaks in his object allocator. It was a problem with placement new. I didn't know what it was or the syntax but neither did Bryan. This made me uneasy. Yet Bryan came through when updating his physics to work well. In fact it works really well. There actually feels to be resistance when the player is moving through a horde of Kudos. I got him a source that wasn't Sean or a person that would try to help him set up better physics. Bryan also wanted to expand on my UI buttons to make some graphic pop up whenever the mouse was hovering over the button. I showed him a couple of things that are particular for graphics objects in the UI, but he did most of the work and it turned out well.
I'm not entirely sure what Matt has been doing in the past few weeks. He did revamped the parser, which is actually really useful now, particularly for loading in animations from an xml file with ease. He also set up map nodes that Justin uses with his path finding. But he has been doing some odd things with triggers, which I am sort of still unclear about the special attention to. I guess because we tend to focus on our own modules, there is a lack of strong communication for the current tasks and purposes for code that other members are doing. Maybe we should do weekly or bi-weekly code reviews. The one thing that I wished Matt spent a little more focus on is the map editor. Currently it is in the relatively same state as it was on the day of our presentation of the First-Playable Prototype in December. Although somehow switching to a different tile does not work, and when you place a new tile (only in the positive x direction), another tile is deleted. It would be nice if we were able to create a nice map for Alpha.
I am also weary of the overall state of the game. I've got my bases covered with graphics and UI, although I do have to create another animation editor (or edit values manually). But I am not in charge of anything that deals with gameplay. I only display the world, the UI, and all the animations to the player. I only handle the interactions between the UI and tell the gameplay components of certain types of input that occurred. Bryan is in charge of the main character and some AI attacking, Justin's got to nail down the movement and hopefully more, and Matt's got to create the interactive world. Those three are in charge of coding the fun factor of our game. Right now the game is nothing more than one simple hard-coded battle.
I will try to be at the school for extended periods of time during this week. I want to be there for my team and help them out with anything they need. I don't want our Alpha to look the same as it did when we presented the game during the second week of school. I want it to be a least one solid level. Even if we are missing a few Kudo types, it would be nice to start and finish our forest level like normal.
We gave Justin a week to get familiar with our code base, but because we each have defined roles, he would have to look no further than the AI module and objects. The time needed to understand the structure of the code he would be working off of would be fairly quick. Mostly we were waiting until he was granted SVN access from IT. He utilized this time by preparing a path finding algorithm. I am not entirely sure what occurred during the second, third, or even forth week, but I do remember he adjusted the way the Kudos found their targets, making them more efficient killers in the process. We all cheered in glee on that Saturday meeting.
I wasn't cheering at all this last Saturday. I do agree that Brandon's AI movement wasn't the best. Following the main character and staying apart from each other in a fluid manner worked well, very well. Starting and stopping the Kudos was an issue, and this was the main issue that needed to be repaired. We also needed to take in consideration for obstacles, yet even at this point the massive amounts of obstacles we imagined in our heads 5 months ago are severely lacking in implementation. The use of path finding at this point in our map complexity is utterly useless. The terrible thing is that Justin's path finding makes the AI movement roughly 10 to 20 times worse.
The Kudos do not move in the right direction when you command them to move to a particular location. They get stuck dancing in some seemingly random location. If you click too many times the game crashes. Selecting Kudos created memory leaks for a long time (a week is a while in my book). The AI movement is absolutely terrible.
Rant (as usual): What in the world did Justin do for 4 weeks? How did it possibly get that bad? How could it get worse than Brandon's code? Didn't we all think that Brandon was the epitome of all evil code? No. His code is the shit (the good kind) compared to Justin's. Justin's code fails at multiple levels:
- The code execution doesn't work well. The Kudos are supposed to travel to the right when you click there, not to the left then spaz out. Making code that works worse than shit should not have taken a month.
- The code crashes. If you select Kudos too much (a couple of times), the game will crash. This has occurred with more than the last submission by him. Something this severe should be caught and fixed right away.
- The code has extremely awkward tabbing and returns. Sometimes lines are indented twice or even thrice than they should be. He also puts about 2-4 returns in places where there should be none at all.
- The code has some brackets misaligned, which creates a horrible reading environment for any programmer. It's a terrible thing to think a code block ends much sooner than expected.
- The code mixes between spaces and tabs for indenting. Matt has some settings to display a faint dot for a space and a faint arrow for a tab. Justin's code is visually disgusting. The bad thing about tabs is that the code will not be the same on any IDE.
- The code isn't consistent. There is no method to the madness for the random number of returns or awkward indents. In some areas he has a space after the ( in a function call but none before the ). He will name file Actors.xml with an Actors root and Actor children but name the C++ struct to load the information into CharacterInfo. Also, his function for loading the Actors/Characters is called LoadCharacters. So which is it supposed to be? (I know the one that makes logical sense)
If Justin's code does not make the Kudos move and walk better than before, then I will make the executive Technical Director decision to revert back to Brandon's code for Alpha. This gives him 3 days to fix it. He was also supposed to create a stats editor for editing and creating the characters. This is what the xml files were for. Bryan knew that the movement would be most important, so he told Justin to hold off on that until after Alpha.
Bryan has actually surprised me in the last week. Before I was frustrated with him not understanding some code that he had wrote with a huge help from his roommate Sean. I have no problem with helping someone out with a programming concept or problem, but Sean seemed to hold his hand through the entire ride and tell him exactly which key to press and when. A memory leak detector that I like to use was finding leaks in his object allocator. It was a problem with placement new. I didn't know what it was or the syntax but neither did Bryan. This made me uneasy. Yet Bryan came through when updating his physics to work well. In fact it works really well. There actually feels to be resistance when the player is moving through a horde of Kudos. I got him a source that wasn't Sean or a person that would try to help him set up better physics. Bryan also wanted to expand on my UI buttons to make some graphic pop up whenever the mouse was hovering over the button. I showed him a couple of things that are particular for graphics objects in the UI, but he did most of the work and it turned out well.
I'm not entirely sure what Matt has been doing in the past few weeks. He did revamped the parser, which is actually really useful now, particularly for loading in animations from an xml file with ease. He also set up map nodes that Justin uses with his path finding. But he has been doing some odd things with triggers, which I am sort of still unclear about the special attention to. I guess because we tend to focus on our own modules, there is a lack of strong communication for the current tasks and purposes for code that other members are doing. Maybe we should do weekly or bi-weekly code reviews. The one thing that I wished Matt spent a little more focus on is the map editor. Currently it is in the relatively same state as it was on the day of our presentation of the First-Playable Prototype in December. Although somehow switching to a different tile does not work, and when you place a new tile (only in the positive x direction), another tile is deleted. It would be nice if we were able to create a nice map for Alpha.
I am also weary of the overall state of the game. I've got my bases covered with graphics and UI, although I do have to create another animation editor (or edit values manually). But I am not in charge of anything that deals with gameplay. I only display the world, the UI, and all the animations to the player. I only handle the interactions between the UI and tell the gameplay components of certain types of input that occurred. Bryan is in charge of the main character and some AI attacking, Justin's got to nail down the movement and hopefully more, and Matt's got to create the interactive world. Those three are in charge of coding the fun factor of our game. Right now the game is nothing more than one simple hard-coded battle.
I will try to be at the school for extended periods of time during this week. I want to be there for my team and help them out with anything they need. I don't want our Alpha to look the same as it did when we presented the game during the second week of school. I want it to be a least one solid level. Even if we are missing a few Kudo types, it would be nice to start and finish our forest level like normal.
1/21/08
Third Semester - Kudos
Before my second semester at DigiPen ended, I started work on the beginning of a game engine that I thought I could possibly use the following school year. The idea came from the creation of some Windows programming assignment for CS230. I set up classes and relations between handlers and objects, and I thought that I could take out the specifics of the assignment and start creating something that could easily be used for my next game project. I also wanted to have a small 2D demo ready so I could show off an idea that had perking in my mind. I was crazy, but I wanted to make another game with ninjas. My friend Matt did not even want to be on my team for a second time. The object of the game was that you were supposed to be a stealthy ninja who had to infiltrate some Russian missile silo and kill commie bastards. Note: Sadly, I did not end up making this game.
Throughout the summer I improved the game engine. It wasn't much, but at least I could make a character (ninja) jump around. I also played around with some Inverse Kinematics and got one of its arms and hand to reach for the cursor whenever I held down the left mouse button. My only problem was that I had never programmed any 2D graphics before. Back in high school I messed around in 3D with DirectX for my senior project. Sure, this was technically taking a step down in dimensions and should be easier, but there seems to be more management of the sprites and attention to rendering order (this still is biting me in the butt). I also didn't feel the need to work with all the odds and ends of DirectX to show some simple graphics in a window. Matt had used Simple DirectMedia Layer (SDL) in his 2D senior project, so I got some help from him and was able to see results within a day. Later in the summer Matt decided to leave the team he would have been on this year and be on mine (except at the time I didn't have one). He felt that all they were making was a small tech demo.
He and I arrived to our game class without a full team on the first week of our third semester. Luckily two school friends of ours were in the same boat, and we decided to join forces. Unfortunately I was unable to persuade anyone else into creating my ninja game, even though I had an "awesome" demo. Matt and I forfeited any idea of ours to work on Bryan and Brandon's Kudos. It is a game like Pikmin where you play a character that can control various little "puffy/fat" creatures to do various things such as fight to the death or solve fun puzzles. There are about 10 different kinds of Kudos each with their own special abilities. You have to go out into the areas around the main town of Kudo Valley and weaken mind-controlled Kudos. Then you can get them on your own team. The objective is to stop the main evil-doer (Mortimer) and his lackeys from taking over all of the Kudos.
I wanted to be the product manager. The role of the product manager was to create all the marketing materials for the game. I also did not want to be a producer or technical director because those are the top positions on a team. I wanted to save those for my final two years, and I had already been a designer. Being the product manager was my ideal goal; I would be great with it if I was working on my ninja game. Well Brandon was the best artist in our group and he had been working with Bryan with the idea and art direction of Kudos, so he got the job. Bryan had been the main creative thinker for the game design, so he became the designer. I was stuck with the two positions that I did not want to be. From his personality, I figured that Bryan would be demanding and would spiritually take over the role of producer, so I picked to be the technical director. Also, Matt had been the technical director the previous year in The Pirate-Ninja. Since I was the technical director, it would be my job to layout the architecture of the engine for our game.
In game class I learned that we would have 2 weeks for our Game Design Document, 3 for our Technical Design Document, and 3 weeks for our midterm project. We weren't supposed to start programming until our TDD was done, but this ended up being turned in during Week 10. Well, limitations put on by the teacher were not going to stop me. I knew we would be in trouble if we started programming from scratch at that date, although we were encouraged to use our midterm as the foundation for our game. I ended up using the foundation of our game for my midterm. I was also able to use it for my personal project because no one else had touched the code at that point in time. Our assignment was to create a Bejeweled clone with graphics, input, and a game loop. It took me about 6 hours to make it with my existing engine. Note: It did not have any menus or text.
Throughout the first 9 weeks of the semester I had been improving the engine and somewhat changing it drastically. I introduced the concept of processes (idea stolen from Game Coding Complete by Mike McShaffry; I use it for larger things such as modules rather than small things such as timers), created game states, developed the relation of GameObjects and GraphicsObjects, and converted my SDL rendering to use OpenGL. I wanted to use a better graphics system so I didn't have to worry about rendering in the correct order, so I was excited that I would be again programming in DirectX. Well that idea was shot down when Matt wanted to be able to program in Linux (and he still can't due to other reasons not created by me). So I started to learn OpenGL. I had heard about Glut, but I didn't want to use it because it was outdated and some of the lines of code seemed to make me wonder if I would have to restructure the engine, which I did not want to do at that point. Maybe it wasn't the brightest decision to dismiss the wrapper, but I did.
I got OpenGL to work pretty well. We had an isometric game, and handling the different z orders of the GraphicsObjects along with those on the same z value turned out to be easy. My only problem that I faced was rendering text. Since Matt wanted to program in Linux, I had to also make the font rendering work on both platforms. Unfortunately I could not find a font system that was platform-independent and did not use Glut. I ended up spending many frustrating hours figuring out how to render my own text. Because SDL was platform-independent, I was able to use SDL TTF. My first attempt was to try and render the image generated by SDL TTF onto a texture then display it on the screen, but this was taking up 100% of the CPU and slowing down the program because SDL is a software renderer. I got some inspiration from other tutorials and examples, and I decided to create a bitmap of all the characters of the font I was loading in. I then performed a clever use of OpenGL's Display Lists and was able to render text just fine.
Engine Proof was a demonstration of all of our technology, and we had a presentation during Week 11. This, mind you, was one week after we submitted our game (aka: one week to actually work on Kudos). Well I had my graphics (including simple frame-based animations), sound, input, and basic controls. I was set. My only concern was what everyone else was doing. My dream was that we could get Bryan's state machine and physics, Brandon's AI movement, and Matt's soon to be created tile maps integrated into the game. Luckily we did not have to have all the sections integrated. Bryan and Brandon presented their own separate sections, but Matt had a tile map loading in from a file and rendering in the engine I created. The nice thing is that he did not have to touch much of the stuff I had already created. He was able to create his files and a MapProcess that needed a few items such as the GraphicsProcess and have the MapProcess created when the main level was loading.
Our next goal, finally, was to integrate all of our code together (aka: have Bryan and Brandon put their code into my engine). We had a First-Playable Prototype due at the end of Week 14; 3 weeks with Thanksgiving in the middle of it to create a basic game. Nothing much got done by my part for 2 weeks. Byran and Brandon slapped in their stuff and we had a bunch (tested hundreds and thousands) of Kudos following the player around. I then bought Mass Effect and played it all day for a few days and beat it. It wasn't until about a week and a few days before our submission that I started to get back on track.
The major thing lacking at this point was combat and player control over the Kudos. I didn't like so many dependencies with different modules, so I created an events system. With this I was able to send out simple data, which I could expand later on, with just a name of an event attached to it. The event manager would look up the event name and send out the data to various event listeners (functors), and the event listeners who were listening to particular events would handle the data that was sent. With this system in place, the UI was able to handle all input and tell the AI that there was a mouse click on some part of the world. The AI could them figure out which Kudo was selected. The best part was that UI and AI processes did not know about each other.
Before our presentation, I got one more major thing put in place. At that current point in time, the Kudos and the player were always at a fixed angle (looking towards the bottom-right corner of the screen). I wanted to have animations that changed the angle based on the direction the characters were moving. I figured eight different directions were good enough. With my current frame animations and sets, I was able to expand it to create eight-way animations. Whenever a frame is created I specify an angle (0 is default for non-eight-way animations). I can create the multiple angles for the frames and compile them together. I also had fluid transitions between angles while an animation was being played. This made the Kudos feel a lot less rigid.
I wanted everyone to meet to have a long coding session on Monday, but Bryan and Brandon didn't even show up to school. Tuesday went by without any team progress. We had to meet on Wednesday. It was crucial to our presentation; combat was not in the game at this point. We started work around 10 in the morning and kept on working until about 6 or 8 in the evening. We managed to get in combat between Kudos and between the player and Kudos, yet the evil Kudos could not attack the player. It ended up with me programming the player's combat, which I was not supposed to do (according to our project planning timeline). I also added evil-looking Kudos and the ability to switch the animations so the two sides looked different. Our presentation was OK. There were no physics in the tiles and Brandon's code was flawed (some Kudos seemed to be chased when fighting and would run off to infinity). There were definitely better games than ours.
One thing that I was not happy about the game was Brandon's willing to work on the project during the last week. I had asked him to work on the AI movement over the weekend before our game was due. He said on Monday that he was halfway there, and he had uploaded some code which was only a few lines and most were just duplicates. He told me he would be working on it all Monday, when he didn't show up to school. On Wednesday I told him we had to meet to get it done and that I would pick him up later on in the day. He said he would upload the code before I picked him up. He did not upload any new code before we started to work, so it gave me the impression that either he was crazy to start over again or that he wasn't working on the game. Late in the evening he quit what he was doing and wanted to go home. I was his ride and was still working, so he wasn't able to go home. I asked him if he was satisfied with what he did and if he would have no problems showing it to the class. I thought it was lacking, but he was OK with it. I came to the assumption that he was playing Morrowind all weekend and up until this point as he was talking about it with Matt, whom had played it extensively 5 years prior. If this highly probable situation was true, then he poorly lied to me, and I don't like that.
During the winter break I thought I would be using the bonus hours and work on the game a bunch. I spent a week of relaxation, then my brother came home. The rest of the time I was with him or playing BioShock, and I didn't touch the code until 2 days before the new semester. Brandon failed one of his three classes, which was a prerequisite for GAM250, and is now technically off our team. He has still made promises of fixing the AI movement, but has failed to actually do so. If you have read the Assembly post, then you would know I hate repeated false promises. Justin, someone I have known during my entire time at DigiPen, left his team and joined ours. We'll see how that goes, but I am pretty hopeful at this point.
Throughout the summer I improved the game engine. It wasn't much, but at least I could make a character (ninja) jump around. I also played around with some Inverse Kinematics and got one of its arms and hand to reach for the cursor whenever I held down the left mouse button. My only problem was that I had never programmed any 2D graphics before. Back in high school I messed around in 3D with DirectX for my senior project. Sure, this was technically taking a step down in dimensions and should be easier, but there seems to be more management of the sprites and attention to rendering order (this still is biting me in the butt). I also didn't feel the need to work with all the odds and ends of DirectX to show some simple graphics in a window. Matt had used Simple DirectMedia Layer (SDL) in his 2D senior project, so I got some help from him and was able to see results within a day. Later in the summer Matt decided to leave the team he would have been on this year and be on mine (except at the time I didn't have one). He felt that all they were making was a small tech demo.
He and I arrived to our game class without a full team on the first week of our third semester. Luckily two school friends of ours were in the same boat, and we decided to join forces. Unfortunately I was unable to persuade anyone else into creating my ninja game, even though I had an "awesome" demo. Matt and I forfeited any idea of ours to work on Bryan and Brandon's Kudos. It is a game like Pikmin where you play a character that can control various little "puffy/fat" creatures to do various things such as fight to the death or solve fun puzzles. There are about 10 different kinds of Kudos each with their own special abilities. You have to go out into the areas around the main town of Kudo Valley and weaken mind-controlled Kudos. Then you can get them on your own team. The objective is to stop the main evil-doer (Mortimer) and his lackeys from taking over all of the Kudos.
I wanted to be the product manager. The role of the product manager was to create all the marketing materials for the game. I also did not want to be a producer or technical director because those are the top positions on a team. I wanted to save those for my final two years, and I had already been a designer. Being the product manager was my ideal goal; I would be great with it if I was working on my ninja game. Well Brandon was the best artist in our group and he had been working with Bryan with the idea and art direction of Kudos, so he got the job. Bryan had been the main creative thinker for the game design, so he became the designer. I was stuck with the two positions that I did not want to be. From his personality, I figured that Bryan would be demanding and would spiritually take over the role of producer, so I picked to be the technical director. Also, Matt had been the technical director the previous year in The Pirate-Ninja. Since I was the technical director, it would be my job to layout the architecture of the engine for our game.
In game class I learned that we would have 2 weeks for our Game Design Document, 3 for our Technical Design Document, and 3 weeks for our midterm project. We weren't supposed to start programming until our TDD was done, but this ended up being turned in during Week 10. Well, limitations put on by the teacher were not going to stop me. I knew we would be in trouble if we started programming from scratch at that date, although we were encouraged to use our midterm as the foundation for our game. I ended up using the foundation of our game for my midterm. I was also able to use it for my personal project because no one else had touched the code at that point in time. Our assignment was to create a Bejeweled clone with graphics, input, and a game loop. It took me about 6 hours to make it with my existing engine. Note: It did not have any menus or text.
Throughout the first 9 weeks of the semester I had been improving the engine and somewhat changing it drastically. I introduced the concept of processes (idea stolen from Game Coding Complete by Mike McShaffry; I use it for larger things such as modules rather than small things such as timers), created game states, developed the relation of GameObjects and GraphicsObjects, and converted my SDL rendering to use OpenGL. I wanted to use a better graphics system so I didn't have to worry about rendering in the correct order, so I was excited that I would be again programming in DirectX. Well that idea was shot down when Matt wanted to be able to program in Linux (and he still can't due to other reasons not created by me). So I started to learn OpenGL. I had heard about Glut, but I didn't want to use it because it was outdated and some of the lines of code seemed to make me wonder if I would have to restructure the engine, which I did not want to do at that point. Maybe it wasn't the brightest decision to dismiss the wrapper, but I did.
I got OpenGL to work pretty well. We had an isometric game, and handling the different z orders of the GraphicsObjects along with those on the same z value turned out to be easy. My only problem that I faced was rendering text. Since Matt wanted to program in Linux, I had to also make the font rendering work on both platforms. Unfortunately I could not find a font system that was platform-independent and did not use Glut. I ended up spending many frustrating hours figuring out how to render my own text. Because SDL was platform-independent, I was able to use SDL TTF. My first attempt was to try and render the image generated by SDL TTF onto a texture then display it on the screen, but this was taking up 100% of the CPU and slowing down the program because SDL is a software renderer. I got some inspiration from other tutorials and examples, and I decided to create a bitmap of all the characters of the font I was loading in. I then performed a clever use of OpenGL's Display Lists and was able to render text just fine.
Engine Proof was a demonstration of all of our technology, and we had a presentation during Week 11. This, mind you, was one week after we submitted our game (aka: one week to actually work on Kudos). Well I had my graphics (including simple frame-based animations), sound, input, and basic controls. I was set. My only concern was what everyone else was doing. My dream was that we could get Bryan's state machine and physics, Brandon's AI movement, and Matt's soon to be created tile maps integrated into the game. Luckily we did not have to have all the sections integrated. Bryan and Brandon presented their own separate sections, but Matt had a tile map loading in from a file and rendering in the engine I created. The nice thing is that he did not have to touch much of the stuff I had already created. He was able to create his files and a MapProcess that needed a few items such as the GraphicsProcess and have the MapProcess created when the main level was loading.
Our next goal, finally, was to integrate all of our code together (aka: have Bryan and Brandon put their code into my engine). We had a First-Playable Prototype due at the end of Week 14; 3 weeks with Thanksgiving in the middle of it to create a basic game. Nothing much got done by my part for 2 weeks. Byran and Brandon slapped in their stuff and we had a bunch (tested hundreds and thousands) of Kudos following the player around. I then bought Mass Effect and played it all day for a few days and beat it. It wasn't until about a week and a few days before our submission that I started to get back on track.
The major thing lacking at this point was combat and player control over the Kudos. I didn't like so many dependencies with different modules, so I created an events system. With this I was able to send out simple data, which I could expand later on, with just a name of an event attached to it. The event manager would look up the event name and send out the data to various event listeners (functors), and the event listeners who were listening to particular events would handle the data that was sent. With this system in place, the UI was able to handle all input and tell the AI that there was a mouse click on some part of the world. The AI could them figure out which Kudo was selected. The best part was that UI and AI processes did not know about each other.
Before our presentation, I got one more major thing put in place. At that current point in time, the Kudos and the player were always at a fixed angle (looking towards the bottom-right corner of the screen). I wanted to have animations that changed the angle based on the direction the characters were moving. I figured eight different directions were good enough. With my current frame animations and sets, I was able to expand it to create eight-way animations. Whenever a frame is created I specify an angle (0 is default for non-eight-way animations). I can create the multiple angles for the frames and compile them together. I also had fluid transitions between angles while an animation was being played. This made the Kudos feel a lot less rigid.
I wanted everyone to meet to have a long coding session on Monday, but Bryan and Brandon didn't even show up to school. Tuesday went by without any team progress. We had to meet on Wednesday. It was crucial to our presentation; combat was not in the game at this point. We started work around 10 in the morning and kept on working until about 6 or 8 in the evening. We managed to get in combat between Kudos and between the player and Kudos, yet the evil Kudos could not attack the player. It ended up with me programming the player's combat, which I was not supposed to do (according to our project planning timeline). I also added evil-looking Kudos and the ability to switch the animations so the two sides looked different. Our presentation was OK. There were no physics in the tiles and Brandon's code was flawed (some Kudos seemed to be chased when fighting and would run off to infinity). There were definitely better games than ours.
One thing that I was not happy about the game was Brandon's willing to work on the project during the last week. I had asked him to work on the AI movement over the weekend before our game was due. He said on Monday that he was halfway there, and he had uploaded some code which was only a few lines and most were just duplicates. He told me he would be working on it all Monday, when he didn't show up to school. On Wednesday I told him we had to meet to get it done and that I would pick him up later on in the day. He said he would upload the code before I picked him up. He did not upload any new code before we started to work, so it gave me the impression that either he was crazy to start over again or that he wasn't working on the game. Late in the evening he quit what he was doing and wanted to go home. I was his ride and was still working, so he wasn't able to go home. I asked him if he was satisfied with what he did and if he would have no problems showing it to the class. I thought it was lacking, but he was OK with it. I came to the assumption that he was playing Morrowind all weekend and up until this point as he was talking about it with Matt, whom had played it extensively 5 years prior. If this highly probable situation was true, then he poorly lied to me, and I don't like that.
During the winter break I thought I would be using the bonus hours and work on the game a bunch. I spent a week of relaxation, then my brother came home. The rest of the time I was with him or playing BioShock, and I didn't touch the code until 2 days before the new semester. Brandon failed one of his three classes, which was a prerequisite for GAM250, and is now technically off our team. He has still made promises of fixing the AI movement, but has failed to actually do so. If you have read the Assembly post, then you would know I hate repeated false promises. Justin, someone I have known during my entire time at DigiPen, left his team and joined ours. We'll see how that goes, but I am pretty hopeful at this point.
Subscribe to:
Posts (Atom)