Converted to c++.
Removed ACWorld AC_WORLD_2D initializer.
Removed acLib's concept of userData (struct state).
Changed state into a class.