main character sprite environment, updated with a reference to input