Update camera and some rectangle properties
complete rewrite of tilelayer