2D Graphics Programming for Games - Code Samples