Showing posts with label success. Show all posts
Showing posts with label success. Show all posts

Monday, May 5, 2014

End of April Progress Report: Ludum Dare 29!

Last month ended pretty shamefully with me not working on my prototype much at all. However, it's May now, and I need to review what I did manage to accomplish last month and determine what I'm going to try to accomplish this month. Let's start with my prototype that I made (largely in January and February).

Power Game Prototype

The "Power Game" prototype is currently dead in the water. Editing the script is a huge pain right now and the whole project is larger than I can handle at the moment. Mostly the failure for me here is a lack of experience with Unity combined with a large scope and no art. It's being indefinitely moved to the back burner until it becomes feasible.

Ludum Dare 29

Ludum Dare is a 48 hour game jam where you try to make a game according to a theme all by yourself. No existing private code is allowed and any art/sound assets must be made by you within the 48 hour period. It's pretty intense; especially if you have problems with scope like I do. Compounding it further is my own lack of artistic talent, which is a problem when you have to make all the art yourself.

The theme this year was Under the Surface, so I decided to make a game where you played an alien parasite who burrows under people's skin and controls them from inside before bursting out of their chest like in Alien. My lack of artistic talent makes the game less violent looking than it sounds from that description, but I guess the violence is just implied. That's fine though because the more realistic the graphics got for a game like this, the less palatable it would be.
The exit is just behind this blue-locked door! But how to get there...

What went well

  • The art looks great (considering the artist). I'm pretty hard on myself for not being a very good artist, but when it came time to scratch together some art for Ludum Dare this past month, I feel like I nailed it. The art isn't super awful, and it's pretty easy to tell what everything is. 
  • Unity made adding new content easy. After several attempts (including "Power Game") at making a lot of code to drive the game forward, I feel like I really got close to The Unity Way of doing things. As a result, when it came time to start building new levels, it only took me an hour to put together the entire second level of the game. Most of that was fine tuning, since I was able to drag and drop almost everything else.
Hello there officer, I'm certainly not an infected human being
controlled by an alien parasite.
No, sir.

What went poorly

  • Unity and Monodevelop (the code editor for Unity) crashed on me several times. Monodevelop also stopped responding to mouse input on the list of opened files frequently, which would have been a problem if I wasn't already used to using keyboard shortcuts to navigate. More problematic was on Sunday around 9 hours before the deadline when I clicked between Monodevelop and Unity too fast (I think?) and got an error telling me that my code solution was unable to be overwritten. At that point, Monodevelop stopped being able to debug my game code. This persisted even after I more or less fixed it, and breakpoints only work in most areas of my code. This caused me a lot of frustration and stress. I lost about an hour or so to figuring out what was going on.
  • Levels went poorly specifically because I should've made more of them. There are only two levels in the current version of the game. My general unfamiliarity with Unity and uncertainty of what exactly I was going to build for levels made me over-engineer a bit and I took too long working on making the game work and not long enough making levels. Ideally, I would have spent less time debugging Unity's crashes (as mentioned above) and integrating art into the project (animating individual sprites for characters took longer than I was expecting because I couldn't simply swap out spritesheets) and a little more time working on more levels. I think a reasonable number of levels to shoot for would have been five.
  • Sound is very lacking in my game. There is no background music or sound effects. I had been planning on using www.abundant-music.com to generate looping background music, but that fell through when I realized Unity didn't support MIDI and I had no way to make up for that with the time left in the competition. I did take some time to pull out my keyboard and try to make a 10 second loop, but it ended up being really grating on the ears after more than a few loops, so I just cut it entirely. The sound effects got dropped when I found myself spending the last hour or so of the event debugging a small error that completely broke the game.
Just a parasite hanging out in an air vent.


Overall, Ludum Dare went extremely well and really bolstered my confidence. I'm looking forward to seeing what feedback I get on it and I'll detail that here next month.

Pigeon's Quest

Pigeon's Quest is a game where everyone dresses like birds for some reason. I mentioned the title to my wife sometime late last year and it's been in the back of my mind ever since. Only recently (last month?) did I have the epiphany that it's based on the game Snake. If you've never played Snake before, you can play a basic version of it here using the arrow keys to move.

So far, I've got basic snake gameplay implemented. You move a smiley face around a game area and when you run into other people, they follow your smiley face appropriately. If you pick everyone up on a stage, it instantly takes you to the next stage. There's a lot to do, and after Ludum Dare I've got some ideas about streamlining what's already there. This is definitely a thing I want to work on some of the time, not all of the time.

I've got some neat ideas for innovating on the snake gameplay, so I'm excited about that. I'm very worried about the art though and when I come to that point, I think I'll just save up some money and hire someone who is far more talented than me to make the art. I'll update my end of month posts with any progress I make on this though.

Goals for May

When I left off with my April post, I mentioned that I wanted to use Ludum Dare to kick me out of my slump and I think I succeeded in that. As I type this, there are two pages of improvements and level sketches in my game ideas notebook for my Ludum Dare game. My goal for May is two-fold: I want to spend some more time developing my Ludum Dare game into something closer to complete and I want to work on Pigeon's Quest some more. I don't know if I can get either to a finished state by the end of the year, much less a state where I feel good releasing them, but I figure it can't hurt to try, right?

Scope

In closing, as I've mentioned I have been thinking about scope a lot lately. How big is too big? How do I recognize when my scope is too big for a project? How do I better estimate how much work I can do in a set period of time (a month, a day, a year)? How can I trim down scope for ideas I come up with that are too big?

I don't have any answers for that yet, but I am reading about it. For example, I recently found this article where a guy talks about how he loves making small stuff. I don't think that style and speed is for me, but it's definitely a good viewpoint and there's plenty of advice I could use in there.

Do you have any tips for dealing with scope issues? Do you have any links handy to articles or talks about people dealing with project scope? Please let me know in the comments!

Friday, October 11, 2013

How to Enhance an SNES Game With the MSU-1 - Part 2: Slow Progress in the Face of Adversity

When last we left off, everything was terrible and there was no documentation anywhere. Well, there's still very little in the way of documentation, but not everything is terrible any more!

Update: Part 3, the climatic conclusion to this series is now available.

And thus, progress was made.

Let's get right to the good stuff that I really want to show off: MUSIC!


The biggest development since the last post is that I now have music playing in the game and it sounds pretty frickin' sweet! I have about half the soundtrack replaced in the game right now and the only tracks I have that aren't in the game are the epilogue and credit scroll. So you can't play from start to finish without noticing that things are missing, but you can wander around much of the game and not notice!

How did this happen?

This is a great question and not one I can entirely answer. I was working with my patch code and trying to figure out why nothing was working when it just started working! There's very little in the way of helpful documentation out there and I've been largely unsuccessful in getting help in forums (though admittedly I haven't tried as hard as I absolutely can... yet) but I think that the reason it began working has something to do with getting my assembler to write with 8-bit registers instead of 16-bit registers. I'm not 100% sure on this though, but I've been thoroughly avoiding looking this gift horse in the mouth for the time being and just focusing on getting everything else working before going back and fixing this.

At the end of this adventure, whether it ends in success or I give up out of frustration, I'd like to post what code I've got online in the hopes of helping others somehow. Perhaps when they come looking for a way to program for the MSU-1 on Google!

Why isn't this done yet?

There are, of course, problems still. The music doesn't play in the latest version of Higan and it doesn't play in bSNES v060 (which is the oldest version I can find online and the one that has debugging tools). Instead, it only plays in bSNES v075. I have no explanation for why this is, though I'm sure it relates to why my code suddenly started playing music. Time will tell on this one.

Another problem is that although I've got about half the soundtrack inserted into the game, I don't even have the other half of the soundtrack! As you can hear in the video above, I've been using the Zelda ReOrchestrated album for A Link to the Past as a source for the music. The main reasons I've done this is because these songs sound great and they're pretty close to the in game tracks in terms of pacing and such, so they match up with cut scenes and events in-game well. Though perhaps the most important reason I chose to use ZREO's soundtrack is because it's free to download. Anyone can download the soundtrack, convert the music via an application (WAV2MSU) and a batch file I can distribute with my patch and then just have everything work together in the same folder. I could die happy if Blake Robinson did the entire soundtrack to this game so that I could just use that, but then people would have to pay for the soundtrack, and I'd like to have a freely distributable version to go with the patch. The ZREO soundtrack is not complete though, and missing tracks are things such as the Guessing Game House theme which people don't cover very often since they aren't as memorable as, say, the Dark World theme. So not having half the music in the game is a big problem.

Then there's still a handful of programming problems to tackle, with the main one right now being fading the music out. In Zelda 3 when you transition between areas and the game tells the music to change, the SPC code gently fades out the currently playing music for about a second as the screen changes, then the new music kicks in. Since I'm bypassing the SPC almost entirely now, I don't get this and there are sharp transitions between pieces of music as you can see in the above video with the transition from the church to the light world theme or the transition into Kakariko Village towards the end.

Things are looking up

The good news is that all of the above problems are being dealt with. Where the last blog post on this ended in despair and uncertainty, this new one ends with hope.

Byuu, the guy who made bSNES/higan, is pretty active on his own forums so figuring out why the rom plays music in one version of his program and not another is probably just a matter of getting his attention for about five minutes so he can point out what I'm doing wrong. Then I can go and correct it. Even if I can't flag him down though, things are at a point where it works SOMEWHERE which is a lot better than when it didn't work at all anywhere!

A music major friend of mine, Shane Johnson, has agreed to help fill out the soundtrack! So there won't be any sudden silences or shifts to the original soundtrack. This is fantastic news and is much better than my fallback plan (learn to compose).

Finally, I've been trying to get the fade out loop to work with varying degrees of failure. In theory it should be pretty simple, just check to see if we're fading out and if so decrease the volume by a smidge and do this once per frame. The problem is finding the right way to do this without throwing off the rest of the program. For example, I would think that the NMI function would be the place to do this, but when I do, I get something like this:

Which is not ideal. I'm confident that I can fix this if I just spend more time experimenting and studying the code, but it might take a while.

If you know anything about any of this or would like to offer your help in general, please feel free to get in touch with me!