As you can see, there's a clock at the top right. As the day progresses, so does the day in the swamp. He runs around, relaxes, and occasionally gets a snack. Once night-fall comes, he goes to sleep.
If you click 'See Inside' up at the top-right of the screen, you can see the various strips of code. I wrote in notes for what every part of the code does, so you can see all of the inner-workings. I made this for a Bio project, so that's why I've filled out the info in an almost-detailed fashion.