Tagged with “code”…

Wolfenstein 3D comes to iPhone / Developer Releases Source »

Wolfenstein 3D was, long ago, released under the Gnu General Public License (GPL) as open source code, to enable game developers and others to tinker with the game’s underpinnings. Carmack has released the iPhone game’s source code as well. The code is of little to use to non-iPhone app developers, but it’s there for anyone who’s interested.

2 months ago on Wednesday, May 26th, 2010 at 9:41 AM / Permalink

WhiteHouse.gov Releases Open Source Code »

(via Wuori)

3 months ago on Wednesday, April 21st, 2010 at 5:43 PM / Permalink

4 months ago on Friday, March 26th, 2010 at 12:53 PM / Permalink

Wuori’s Base Kohana Setup »

This is a simple default Kohana setup upon which normal websites can be built. The purpose of this repo is to maintain a base deployment with the latest versions of commonly used function, classes, controllers, models and views, such as blogs, directories and other typical site features.

4 months ago on Tuesday, March 9th, 2010 at 6:28 PM / Permalink

ActionScript 3 TextField Fix

So I ran into this bug in Flash where I was setting a TextField’s htmlText property and the TextField was cutting off letters and causing strange line wrapping (even though its autoSize property was set to TextFieldAutoSize.LEFT). In order to fix this issue, I used this method Luke Sturgeon had developed:

function setHtmlText($textField:TextField, $text:String):void {
    $textField.autoSize = TextFieldAutoSize.LEFT;
    $textField.htmlText = $text;
    var h:Number = $textField.height;
    $textField.autoSize = TextFieldAutoSize.NONE;
    $textField.height = h + $textField.getTextFormat().leading;
}

It seems to work well and it also prevents the shifting of characters when you have any anchor tags within your HTML.

8 months ago on Monday, November 16th, 2009 at 6:09 PM / Permalink

Konami Code Sites »

Up, Up, Down, Down, Left, Right, Left, Right, B, A, Start (or Enter)!

9 months ago on Thursday, October 22nd, 2009 at 12:56 AM / Permalink