Top-down 2D software rendering engine