Level(GameEngine eng, String file_prefix) {
        priority = -1;
        engine = eng;
        try {
            layout = ImageIO.read(new File(file_prefix + ".layout.png"));
            visual = ImageIO.read(new File(file_prefix + ".visual.png"));
            LevelGeometry g = new LevelGeometry(engine, layout, visual);
            drawable = g;
            geometry = g;

            for (int i = 0; i < layout.getHeight(); i++)
                for (int j = 0; j < layout.getWidth(); j++) {
                    int lc = getLayRGB(j, i);
                    if(lc == playerColor)
                        engine.addObject(new Player(j, i, engine));
                    else if(lc == snakeColor)
                        engine.addObject(WolfSnake.createSnake(engine, j, i));
                    else if(lc == wolfColor)
                        engine.addObject(WolfSnake.createWolf(engine, j, i));
                    else if(lc == swolfColor)
                        engine.addObject(WolfSnake.createSnowWolf(engine, j, i));
                    else if(lc == saurusColor)
                        engine.addObject(new Saurus(engine, j, i));
                }
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }