An ecological code for the Commonwealth Games was released on Wednesday, encapsulating a series of measures to be taken by the Delhi government as well as the Games organising committee to offset the carbon footprint left by the event.