create a game level
I am looking to create a game like mega man or mario, I have been trying to find a good solution as to how to generate my levels. The only thing I can think of would be to create a level file and load
coordinates as the player moves through the level. Which would suck because I would have to code the floor to load, any boxes or objects all seperately. Assuming this would work.

for example
  

      public static TextureRegion platform;
          items = new Texture(game, "level.png"); 
              platform = new TextureRegion(items, 64, 160, 64, 16);

Then go through and add collision detection for each region. I am sure there is a better and easier way. I was looking at replica island but their code is a hot mess. Just curious what others have used, I am new to programming and still learning some things.
create a game level
===

I am looking to create a game like mega man or mario, I have been trying to find a good solution as to how to generate my levels. The only thing I can think of would be to create a level file and load
coordinates as the player moves through the level. Which would suck because I would have to code the floor to load, any boxes or objects all seperately. Assuming this would work.

for example
  

      public static TextureRegion platform;
          items = new Texture(game, "level.png"); 
              platform = new TextureRegion(items, 64, 160, 64, 16);

Then go through and add collision detection for each region. I am sure there is a better and easier way. I was looking at replica island but their code is a hot mess. Just curious what others have used, I am new to programming and still learning some things.