@@ -0,0 +1,2245 @@
+/*%0A#The MIT License (MIT)%0A#%0A#Copyright (c) 2016 saberman888%0A#Permission is hereby granted, free of charge, to any person obtaining a copy%0A#of this software and associated documentation files (the %22Software%22), to deal%0A#in the Software without restriction, including without limitation the rights%0A#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0A#copies of the Software, and to permit persons to whom the Software is%0A#furnished to do so, subject to the following conditions:%0A#%0A#The above copyright notice and this permission notice shall be included in all%0A#copies or substantial portions of the Software.%0A#%0A#THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0A#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A*/%0A%0Aimport java.util.*;%0Aclass Level%0A%7B%0A%09public String name;%0A%09private List%3CTile%3E tile_assets;%0A%09private List%3CObject%3E object_assets;%0A%09public Map level_map;%0A%09public Object player;%0A%09%0A%09public Level(String name)%0A%09%7B%0A%09%09this.name = name;%0A%09%7D%0A%09%0A%09public void InitPlayer(int x, int y)%0A%09%7B%0A%09%09player = new Object(%22@%22, x, y);%0A%09%7D%0A%09%0A%09public void InitializeLevel(String mapName, int x, int y)%0A%09%7B%0A%09%09//Initialize the map%0A%09%09level_map = new Map(mapName, x, y);%0A%09%09level_map.InitMaps();%0A%09%09tile_assets = new ArrayList%3CTile%3E();%0A%09%09object_assets = new ArrayList%3CObject%3E();%0A%09%7D%0A%09%0A%09public void Update()%0A%09%7B%0A%09%09level_map.UpdateMaps();%0A%09%09Tile%5B%5D t = new Tile%5Bthis.tile_assets.size()%5D;%0A%09%09Object%5B%5D o = new Object%5Bthis.object_assets.size()%5D;%0A%09%09%0A%09%09t = this.tile_assets.toArray(t);%0A%09%09o = this.object_assets.toArray(o);%0A%09%09%0A%09%09this.level_map.DrawAssets(t, o);%0A%09%09this.level_map.SetObj(this.player);%0A%09%09String%5B%5D cmap = level_map.ConvertMap(level_map.RenderMap());%0A%09%09for(int y = 0; y%3Clevel_map.y; y++)%0A%09%09%7B%0A%09%09%09System.out.println(cmap%5By%5D);%0A%09%09%7D%0A%09%7D%0A%09%0A%09public void Clean()%0A%09%7B%0A%09%09this.tile_assets.clear();%0A%09%09this.object_assets.clear();%0A%09%7D%0A%09%0A%09public void AddTile(Tile t)%0A%09%7B%0A%09%09this.tile_assets.add(t);%0A%09%7D%0A%7D%0A

Create Level.java