In my previous article, we took a detailed look at how and when to use extension methods. In this companion article, I’ll share several useful extension methods you can use in your own projects for free.
Isn’t it frustrating when you can’t edit a class to add a method you really need?
Maybe the class is built into your programming language or game engine, hidden away in a dll file, or buried in 3rd party code simply too risky to alter. Whichever the case, editing the original class isn’t an option.
This article will take an in-depth look at the various solutions to this common problem. We’ll explore some advantages, limitations, common pitfalls and best practices associated with each approach, and take a detailed look at one option which often gets overlooked: extension methods.
Adobe AIR 4.0 Software Development Kit (SDK) is now officially released! Here’s how to set it up.
Despite the overly-complicated instructions on the interwebs, the process is ridiculously simple. Basically all we’re doing is copying the newer AIR files into the most recent Flex folder and then changing a few settings in our project. Continue reading
Saving game data is super important. If you get sloppy and mess it up then all sorts of awful bugs can creep in. That’s one of the reasons I’ve always hated the way that Flixel deals with saved game data. They exposed too much and dealing with FlxSave still feels like dealing with shared objects Continue reading
This is my solution to the famous 8-Queens Puzzle (and more general N-Queens Puzzle). “So, what’s the 8-Queens Puzzle?” you say. “Good question!” I say. Wikipedia has a ton of information about this and summarizes as follows:
“The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens attack each other. Thus, a solution requires that no two queens share the same row, column, or diagonal. The eight queens puzzle is an example of the more general n-queens problem of placing n queens on an n×n chessboard, where solutions exist for all natural numbers n with the exception of 2 and 3″