before refactoring

commit before refactoring
support global texture atlas file
before error recovering
complete refactoring base system.