movie m; PFont lucida; PFont ionic30; PFont ionic20; PFont sans12; PFont bitstream; PFont verdana12; int moviemin; Drawers drawers; Timer timer; boolean init = false; boolean drawing = true; int version = 10; boolean menu = true; Selection selection; int centerx = 0; int centery = 0; String[] movies = {"Apocalypse Now","Bladerunner","Blowup","Blue Velvet","Breakfast Club","Breathless","Butch Cassidy and Sundance Kid","Deliverance","Dune","Elephant","Fahrenheit 451","Fallen Angels","His Girl Friday","Junebug","Last Tango in Paris","Lawrence of Arabia","Me And You And Everyone We Know","Midnight Cowboy","My Own Private Idaho","Ordinary People","Pulp Fiction","Pump Up The Volume","Rocky","Say Anything","Solaris","The Apartment","The Cement Garden","The Elephant Man","The Godfather","The Graduate","The Royal Tenenbaums","To Kill a Mockingbird","Welcome to the dollhouse","Zabriskie Point"}; void setup() { size(700,550); frameRate(66); lucida = loadFont("lucida.vlw"); ionic30 = loadFont("ionic.vlw"); ionic20 = loadFont("ionic20.vlw"); bitstream = loadFont("bitstream.vlw"); verdana12 = loadFont("verdana12.vlw"); sans12 = loadFont("sans12.vlw"); textFont(lucida,10); textFont(ionic30,30); textFont(bitstream,12); textFont(verdana12,12); textFont(sans12,12); m = new movie(); timer = new Timer(); drawers = new Drawers(100); selection = new Selection(); } void draw() { if(menu) { background(255); fill(140); textFont(ionic30,30); text("Select your movie of choice",80,60); selection.go(); } else { if(!init) { background(255); init = true; timer.start(2); background(255); } if(drawing) drawers.go(); timer.go(); } } void keyReleased() { if(key == 'p') { m.saveout(); } } void mouseReleased() { if(menu) { selection.click(); } else { timer.click(); } } /* Bladerunner.srt 117 Breakfast.srt 97 breathless.srt 90 Apartment.srt 125 Blowup.srt 111 GodFather.srt 175 HisGirlFriday.srt 92 Junebug.srt 106 LawrenceofArabia.srt 227 OrdinaryPeople.srt 124 pulpfiction.srt 154 SayAnything.srt 100 solaris.srt 165 ToKillaMockingbird.srt 129 ZabriskiePoint.srt 110 */