February 15, 2011

Cleaning it up

Every now and then I'll go back and check out my previous programming in various aspects of the game, and I will always find something that could be done better. It's interesting how this works; I'll program something in a way that seems efficient at the time, but after two weeks of not even thinking about that specific chunk of code, I'll glance at it and suddenly say, "WHOA! What was I THINKING??!?"

I've also had odd anomalies where I'll be sleeping, and suddenly I'll wake up at 3:00 in the morning and smack myself on the forehead for having messed up some small snippet of code a week prior. I'm not sure what this all means, but it must be some kind of testament to the ability of the human brain to keep something going on the "back burner."

Although I was crushed by a mountain of textbooks today, I did manage to go back through some of my code and weed out a few inefficient chunks. This game is going to be really big with tons of objects and all kinds of things happening all over the place, so this constant grooming and preening of inefficiencies will really pay off in the end.

In other news, between tomorrow and Thursday I'll have a new zone ready to post, and I should have another one between Friday and Saturday. Although the first few zones you've seen have been fairly "normal" (in the relative sense), some of the upcoming zones are substantially more alien and weird, and they offer a much greater potential for crazy stuff to go down. 

No comments:

Post a Comment