@Override
	public void render(float delta) {
		// TODO Auto-generated method stub
		Gdx.gl.glClearColor(0, 0, 0, 1);
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		
		playa.update(delta);
		
		if (playa.bounds.overlaps(exitPoint)) {
		loadMap(level++);
		loadObjects();
		loadAssets();
		}
		
		
		
		cam.update();
		renderer.setView(cam);
		renderer.render();
		
		
			
		
		batch.begin();
		for (Sprite sprite : sprites)
			sprite.draw(batch);
		
		for (Spike spike: spikes)
			spike.render(batch);
		
		playa.render(batch);
		batch.end();
	}