Skip navigation

A requirement that came up for the web project I’m working on was a way to have users get a unique code that can be redeemed on the site. I was told that on a previous project they used a single code for each redeemable item, which did not work well at all. I came up with, what I think is, a pretty elegant solution.

Read More »

The next game I’ll be working on in a few months will feature a way to “cut” a mesh in two. I spent a few days figuring out how to actually do it. A post over at the Oren Game Engine site really helped out. The process is pretty much this:

Read More »

I don’t know why I haven’t gotten into this earlier. Here are some of the things I’ve learned while tinkering around.

Don’t use static variables.

The tutorials I’ve read say to use static final variables in your code for readability. I totally agree with this, except for the part about declaring the variables static. When you declare a static variable, the name of the variable gets stored in the string pool in the header. Even if it’s final. And even if it’s private. That means that every one of the static variables’ names is spelled out in modified-utf8 in the header. There goes your class size, exploding out of proportion.
Read More »

I’m surprised they didn’t add this feature to the core of jQuery. Oh well, here is a plug-in to create a child nodes. The plug-in also returns the nodes that were created or the jQuery object that called the function if no options were passed.
Read More »

IE6 is the bane of the Internet. One of the worst things about it is how it handles transparent PNG images. Here is a jQuery plug-in that fixes it.
Read More »

Development blog activate.