PHP GD + Far Cry 3

I’ve never had as much fun with PHP since the day I stopped using it for building websites. There’s a lot of fun to get out of it as a general scripting language and here’s another example.

I wanted to get stats about Far Cry 3 weapons, so I decided to do a bit of reverse engineering. The game has an iPhone app that lets you do “load outs” displaying weapons and bar charts for each property (damage, range, accuracy, fire rate and mobility). All I needed to do was to calculate the length of each property bar in pixels.

Continue reading “PHP GD + Far Cry 3”

PHP GD + Far Cry 3