This project reads scenes from Shakespeare! I've updated it for 3.0, adding text-to-speech! At the opening screen, click on a Playbill to pick your scene: - Romeo & Juliet, Act II, Scene 2 (the "balcony scene"). - Hamlet, Act III, Scene 4 (the "closet scene"). - Merchant of Venice, Act I, Scene 1 ("Antonio's lament"). Press V to hide or show the variables at the bottom. Press S to hide or show the script and the cast list.
I imported the text for every scene from this repository: https://ocw.mit.edu/ans7870/6/6.006/s08/lecturenotes/files/t8.shakespeare.txt I pre-processed the text a little to make everything consistent, but tried to do as little as possible. After a scene is selected, the Director sprite scans the text to find the cast of characters, cue their entrances and exits, and identify the speaker for each line. The Actor sprite plays every part, with a separate clone for each character.