My SAMPLE project is Key: Q34443GD. Inside of the project is a file called PLATFORM. Starting on line 362 is a function called LOAD_MAP that will load map files saved from SmileBasic's map editor. No separate layer files required. Between lines 291 and 360 are a set of functions used to check if you can bump into a background tile or not (one layer is reserved for non-passable blocks).