I’ve been creating a dynamic menu class for my first XNA game. From the start I wanted the menus to be able to slide in and out from a predetermined start location to a destination. Somewhere along the way I decided it would be kind of cool to rotate the menu as it’s moving to it’s final destination.
My first stab at it was to rotate each individual element of the menu when ended up being a nightmare. After a bit of googling I found a pretty cool tutorial that describes the different strategies to rotating a group of sprites. I had never bothered to figure out what the translation matrix in SpriteBatch.Begin was for until tonight.
In hindsight it’s obvious but I have a bad habit of not paying attention to method arguments if I don’t think I need them.
Code after the jump.
Read more…
So yeah I’m at the bar waiting for a slice of pizza so I decided to setup my blog to take posts from my phone. Anyway I think wordpress is awesome. What a neat way to have a platform to speak to the world even if the world isnt listening… Cheers!
As some of you may know I’ve been working on a word game. Due to the nature of the game I needed an extremely fast method to search a very large database of strings. Since college I’ve been fascinated with the Suffix Tree Algorithm. Once constructed this algorithm can search a database of strings in linear time O(n) where as n is the length of the search string. In layman’s terms the time it takes to search is determined by the length of the search string. Almost all other methods to do string searches the search time is bound by the size of the database. This advantage is gained at the cost of storage. Back when the algorithm was first written this was a serious problem and made it largely impractical but today memory is cheap and speed is king.
Unfortunately I was unable to find a C# implementation of the suffix tree so I ported one I found at Mark Nelson’s Blog. The project of the C# port is located here http://code.google.com/p/csharsuffixtree/
Note: My project contains unit tests dependent on NUnit but this will only be a nuisance if you don’t have it installed. The main guts of the code are not dependent on it.
Example code after the jump
Read more…
I hacked the RF Twitter Post code a bit. I wonder if this worked…
In between compiles and firmware loads at work I’ve been trying to get my blog to post tweets whenever I post a new blog. I think I finally got it working but it took a lot of different plugins. I tried WP to Twitter at first but after I clicked the “Publish” button I’d be sent to blank screen. The post would actually make it to my blog but it never showed up on twitter. Later I tried Twitter Tools which actually posted stuff to Twitter but then my side bar on my blog stopped working.
I settled with RF Twitter Post which seems to do the trick, but I wish I could make it use http://bit.ly instead of http://tinyurl.com. I’ll poke around at it later tonight when I get home.
testing out twitter, bare with me!
Nothing to see here. Just added Twittertools to my WP and wondering if it works properly!
Greetings!
I decided to finally join the blogosphere or whatever it’s called these days. As some of you may know I’ve been working on a game on and off for almost a year. I hadn’t done much work on it since September but I decided to dust it off again and see if I can push it over the hump. I didn’t realize how far along I was. Had I kept going the darn thing would be done by now and released on XBLIG.
Anyhow I have a lot more to say, but I’ve got work to do!
Update: Just testing some stuff…
Update 2: Still testing…
Most Recent Comments