The suspect, Ashley Foster, 24, was released from prison just three days before he allegedly killed 17-year-old Megan Bills during a sex game.
Megan ’s body was found badly decomposed at a hostel for former inmates in Brierley Hill, West Midlands, on May 3, 2017.
A court heard that her remains were stuffed in a wardrobe wrapped in clingfilm by Foster, who is suspected to have killed her as part of a ‘snuff movie fantasy’ three weeks earlier.
Police released CCTV footage of Megan’s final moments, which was shown to a jury on Tuesday.
She can be seen laughing with Foster in a supermarket as they bought cans of soft drink and blue Rizla cigarette papers.
Jurors were shown further CCTV of the pair’s movements around the hostel, including Megan’s last sighting as she entered Foster’s room.
Prosecutor Crispin Aylett QC said: “Megan was seen wearing boots she had borrowed from her mother and tartan trousers.
“Foster is wearing black trainers with white stripes, a t-shirt and perhaps green or blue trousers.
“At 3.35pm we can see Megan going into Mr. Foster’s room, she is not wearing those black boots.
“This is the last sighting of Megan on the footage from any of the CCTV cameras.”
Foster claimed the pair had consensual intercourse before Megan died accidentally during a sex game gone wrong.
But Mr. Aylett QC said Foster had been carrying out his own sexual fantasies when he throttled Megan to death.
He then allegedly searched for snuff films while her body decomposed as he tried to cover his tracks by vacuuming flies and spraying bed sheets with cleaning fluid.
Footage taken from May 2 shows Foster in the back garden of the property hanging out his quilt to dry.
Mr Aylett added: “He can be seen hanging a quilt up and returning inside. His windows are open in his room.
“He has a bottle with him, white with a nozzle to it which he uses to spray the quilt.
“He (later) comes out, turns the quilt over and uses the spray on the underside.”
The trial, at Wolverhampton Crown Court, continues.