Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int scene=1;
  2. int x = 1200;
  3. void setup() {
  4.   size(1920, 1080);
  5.   background(255);
  6. }
  7.  
  8. void draw() {
  9.   textAlign(CENTER);
  10.   if(scene ==1) {
  11.     line(10, height/2, width-500, height/2);
  12.     line(width-500, height/2-20, width-500, height/2+20);
  13.     line(10, height/2-20, 10, height/2+20);
  14.     fill(0);
  15.     textSize(10);
  16.     text("3,100,000", 25, height/2-30);
  17.     text("Paleolithic era", 80, height/2-15);
  18.     text("700,000", 20+(width/15), height/2-30);
  19.     //Venus of Berekhat Ram
  20.     fill(150, 75, 0);
  21.     rect(0+(width/13), height/2-15, width/3, 30);
  22.     //Venus of Hohle Fels
  23.     fill(150, 75, 0);
  24.     rect(width/3-100, height/2-45, width/3.75, 30);
  25.     //Venus of Dolní Věstonice
  26.     fill(150, 75, 0);
  27.     rect(width/1.8-10, height/2-15, 5, 30);
  28.     //Venus of Willendorf
  29.     fill(150, 75, 0);
  30.     rect(width/1.8-5, height/2-15, 3, 30);
  31.     //Venus de Lespugue
  32.     fill(150, 75, 0);
  33.     rect(width/1.8-2, height/2-15, 3, 30);
  34.     //Venus of Laussel
  35.     fill(150, 75, 0);
  36.     rect(width/1.8+1, height/2-15, 5, 30);
  37.     //Venus of Mal'ta
  38.     fill(150, 75, 0);
  39.     rect(width/1.8+5, height/2-45, 3, 30);
  40.     //Xianrendong cave pottery
  41.     fill(75,255,166);
  42.     rect(width/1.8+14, height/2-15, 3, 30);
  43.     //Lascaux cave painting
  44.     fill(75,255,166);
  45.     rect(width/1.8+20, height/2-15, 3, 30);
  46.     //North American Petroglyphs in Nevada
  47.     fill(230,76,0);
  48.     rect(width/1.8+26, height/2-15, 5, 30);
  49.     //Gobekle Tepe
  50.     fill(100);
  51.     rect(width/1.8+35, height/2-15, 3, 30);
  52.     //Sumerian(Mesopotamia)
  53.     fill(255,255,51);
  54.     rect(width/1.8+70, height/2-15, 3, 30);
  55.     //City of Ubaid
  56.     fill(255,255,51);
  57.     rect(width/1.8+63, height/2-15, 4, 30);
  58.     //City of Uruk
  59.     fill(255,255,51);
  60.     rect(width/1.8+67, height/2-45, 9, 30);
  61.     //Royal tomb of Queen Puabi
  62.     fill(255,255,51);
  63.     rect(width/1.8+76, height/2-15, 3, 30);
  64.     //First Dynasty of Babylon
  65.     fill(255,255,51);
  66.     rect(width/1.8+82, height/2-15, 3, 30);
  67.     //Code of Hammurabi
  68.     fill(255,255,51);
  69.     rect(width/1.8+83, height/2-45, 3, 30);
  70.     //End of Mesopotamia
  71.     fill(255,255,51);
  72.     rect(width/1.8+88, height/2-15, 3, 30);
  73.     //Pre-Kingdoms of Egypt
  74.     fill(230,0,0);
  75.     rect(width/1.8+38, height/2-15, 3, 30);
  76.     //Earliest permanent settlement
  77.     fill(230,0,0);
  78.     rect(width/1.8+43, height/2-15, 3, 30);
  79.     //First live stock
  80.     fill(230,0,0);
  81.     rect(width/1.8+48, height/2-15, 3, 30);
  82.     //Early Hieroglyphs
  83.     fill(230,0,0);
  84.     rect(width/1.8+53, height/2-15, 3, 30);
  85.     //Unification of Egypt
  86.     fill(230,0,0);
  87.     rect(width/1.8+56, height/2-15, 3, 30);
  88.     //Pyramids of Giza
  89.     fill(230,0,0);
  90.     rect(width/1.8+59, height/2-15, 3, 30);
  91.     //Middle Kingdom
  92.     fill(230,0,0);
  93.     rect(width/1.8+62, height/2+15, 3, 30);
  94.     //Ramses II
  95.     fill(230,0,0);
  96.     rect(width/1.8+64, height/2+45, 3, 30);
  97.     //New Kingdom
  98.     fill(230,0,0);
  99.     rect(width/1.8+65, height/2+15, 3, 30);
  100.     //Rome founded
  101.     fill(0,153,0);
  102.     rect(width/1.8+87, height/2+15, 3, 30);
  103.     //Roman Republic
  104.     fill(0,153,0);
  105.     rect(width/1.8+95, height/2-15, 3, 30);
  106.     //Punic wars
  107.     fill(0,153,0);
  108.     rect(width/1.8+108, height/2-15, 3, 30);
  109.     //Julius Caesar
  110.     fill(0,153,0);
  111.     rect(width/1.8+111, height/2-15, 3, 30);
  112.     //Battle of Actium
  113.     fill(0,153,0);
  114.     rect(width/1.8+114, height/2-15, 3, 30);
  115.     //Caesar Augustus/Beginning of Roman Empire
  116.     fill(0,153,0);
  117.     rect(width/1.8+117, height/2-15, 3, 30);
  118.     //Rome Burns
  119.     fill(0,153,0);
  120.     rect(width/1.8+120, height/2-15, 3, 30);
  121.     //Hadrian's Wall
  122.     fill(0,153,0);
  123.     rect(width/1.8+123, height/2-15, 3, 30);
  124.     //citizenship to all in empire
  125.     fill(0,153,0);
  126.     rect(width/1.8+126, height/2-15, 3, 30);
  127.     //Diocletian divide
  128.     fill(0,153,0);
  129.     rect(width/1.8+129, height/2-15, 3, 30);
  130.     //Edict of Milan
  131.     fill(0,153,0);
  132.     rect(width/1.8+132, height/2-15, 3, 30);
  133.     //Constantine moves capital
  134.     fill(0,153,0);
  135.     rect(width/1.8+135, height/2-15, 3, 30);
  136.     //Sack of Rome
  137.     fill(0,153,0);
  138.     rect(width/1.8+138, height/2-15, 3, 30);
  139.     //Fall of Rome
  140.     fill(0,153,0);
  141.     rect(width/1.8+141, height/2-15, 3, 30);
  142.     //Muhammad born in Mecca
  143.     fill(0,60,179);
  144.     rect(width/1.8+146, height/2-15, 3, 30);
  145.     //Muhammad began preaching
  146.     fill(0,60,179);
  147.     rect(width/1.8+149, height/2-15, 3, 30);
  148.     //Muhammad fled to medina
  149.     fill(0,60,179);
  150.     rect(width/1.8+152, height/2-15, 3, 30);
  151.     //Muhammad returns to Mecca
  152.     fill(0,60,179);
  153.     rect(width/1.8+155, height/2-15, 3, 30);
  154.     //Muhammad died
  155.     fill(0,60,179);
  156.     rect(width/1.8+158, height/2-15, 3, 30);
  157.     //Islam spread
  158.     fill(0,60,179);
  159.     rect(width/1.8+161, height/2-15, 5, 30);
  160.     //Muslum conquest
  161.     fill(0,60,179);
  162.     rect(width/1.8+164, height/2-15, 3, 30);
  163.     //Iberian Peninsula
  164.     fill(0,60,179);
  165.     rect(width/1.8+167, height/2-15, 3, 30);
  166.     //Battle of Tours
  167.     fill(0,60,179);
  168.     rect(width/1.8+170, height/2-15, 3, 30);
  169.     //Fall of Constantinople to Ottoman Turks
  170.     fill(0,60,179);
  171.     rect(width/1.8+173, height/2-15, 3, 30);
  172.     //Greece Minoan
  173.     fill(255,51,255);
  174.     rect(width/1.8+76, height/2-75, 12, 30);
  175.     //Greece Mycenean
  176.     fill(255,51,255);
  177.     rect(width/1.8+85, height/2-105, 9, 30);
  178.     //Sack of Troy
  179.     fill(255,51,255);
  180.     rect(width/1.8+92, height/2-135, 3, 30);
  181.     //Records of Pylos
  182.     fill(255,51,255);
  183.     rect(width/1.8+93, height/2-165, 3, 30);
  184.     //Greek Dark Ages
  185.     fill(255,51,255);
  186.     rect(width/1.8+94, height/2-195, 6, 30);
  187.   }
  188. }
  189.  
  190. void mouseClicked() {
  191.   //Venus of Berekhat Ram
  192.   if(mouseX > 0+(width/13) && mouseX < (0+(width/13))+width/3 && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  193.     background(255);
  194.     textSize(20);
  195.     fill(80);
  196.     text("Venus of Berekhat Ram 700,000-230,000 BCE", x, 30);
  197.   }
  198.   //Venus of Hohle Fels
  199.   if(mouseX > width/3-100 && mouseX < (width/3-100)+(width/3.75) && mouseY > height/2-45 && mouseY < (height/2-45)+30) {
  200.     background(255);
  201.     textSize(20);
  202.     fill(80);
  203.     text("Venus of Hohle Fels 350,000-40,000 BCE", x, 30);
  204.   }
  205.   //Venus of Dolní Věstonice
  206.   if(mouseX > width/1.8-10 && mouseX < (width/1.8-10)+(5) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  207.     background(255);
  208.     textSize(20);
  209.     fill(80);
  210.     text("Venus of Dolní Věstonice ~26,000 BCE", x, 30);
  211.   }
  212.   //Venus of Willendorf
  213.   if(mouseX > width/1.8-5 && mouseX < (width/1.8-5)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  214.     background(255);
  215.     textSize(20);
  216.     fill(80);
  217.     text("Venus of Willendorf 25,000 BCE", x, 30);
  218.   }
  219.   //Venus de Lespugue
  220.   if(mouseX > width/1.8-2 && mouseX < (width/1.8-2)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  221.     background(255);
  222.     textSize(20);
  223.     fill(80);
  224.     text("Venus de Lespugue 23,000 BCE", x, 30);
  225.   }
  226.   //Venus of Laussel
  227.   if(mouseX > width/1.8+1 && mouseX < (width/1.8+1)+(5) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  228.     background(255);
  229.     textSize(20);
  230.     fill(80);
  231.     text("Venus of Laussel 23,000-20,000 BCE", x, 30);
  232.   }
  233.   //Venus of Mal'ta
  234.   if(mouseX > width/1.8+5 && mouseX < (width/1.8+5)+(3) && mouseY > height/2-45 && mouseY < (height/2-45)+30) {
  235.     background(255);
  236.     textSize(20);
  237.     fill(80);
  238.     text("Venus of Mal'ta 21,000 BCE", x, 30);
  239.   }
  240.   //Xianrendong cave pottery
  241.   if(mouseX > width/1.8+14 && mouseX < (width/1.8+14)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  242.     background(255);
  243.     textSize(20);
  244.     fill(80);
  245.     text("Xianrendong cave pottery 18,000 BCE", x, 30);
  246.   }
  247.   //Lascaux cave painting
  248.   if(mouseX > width/1.8+20 && mouseX < (width/1.8+20)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  249.     background(255);
  250.     textSize(20);
  251.     fill(80);
  252.     text("Lascaux cave painting 15,000 BCE", x, 30);
  253.   }
  254.   //North American Petroglyphs in Nevada
  255.   if(mouseX > width/1.8+26 && mouseX < (width/1.8+26)+(5) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  256.     background(255);
  257.     textSize(20);
  258.     fill(80);
  259.     text("North American Petroglyphs in Nevada 15,000 BCE", x, 30);
  260.   }
  261.   //Gobekle Tepe
  262.   if(mouseX > width/1.8+35 && mouseX < (width/1.8+35)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  263.     background(255);
  264.     textSize(20);
  265.     fill(80);
  266.     text("Gobekle Tepe 10,000-8,000 BCE", x, 30);
  267.   }
  268.   //Sumerian(Mesopotamia)
  269.   if(mouseX > width/1.8+70 && mouseX < (width/1.8+70)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  270.     background(255);
  271.     textSize(20);
  272.     fill(80);
  273.     text("Sumerian language 3,500 BCE", x, 30);
  274.     text("Also the start of Mesopotamia", x, 70);
  275.     text("------------------------------", x, 90);
  276.     text("Semitic language 3,500 BCE", x, 110);
  277.   }
  278.   //City of Ubaid
  279.   if(mouseX > width/1.8+63 && mouseX < (width/1.8+63)+(4) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  280.     background(255);
  281.     textSize(20);
  282.     fill(80);
  283.     text("City of Ubaid 5,000-4,100 BCE", x, 30);
  284.   }
  285.   //City of Uruk
  286.   if(mouseX > width/1.8+67 && mouseX < (width/1.8+67)+(9) && mouseY > height/2-45 && mouseY < (height/2-45)+30) {
  287.     background(255);
  288.     textSize(20);
  289.     fill(80);
  290.     text("City of Uruk 4,100-2,900 BCE", x, 30);
  291.   }
  292.   //Royal tomb of Queen Puabi
  293.   if(mouseX > width/1.8+76 && mouseX < (width/1.8+76)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  294.     background(255);
  295.     textSize(20);
  296.     fill(80);
  297.     text("Royal tomb of Queen Puabi 2,600 BCE", x, 30);
  298.   }
  299.   //First Dynasty of Babylon
  300.   if(mouseX > width/1.8+82 && mouseX < (width/1.8+82)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  301.     background(255);
  302.     textSize(20);
  303.     fill(80);
  304.     text("First Dynasty of Babylon 1,894-1,595 BCE", x, 30);
  305.   }
  306.   //Code of Hammurabi
  307.   if(mouseX > width/1.8+83 && mouseX < (width/1.8+83)+(3) && mouseY > height/2-45 && mouseY < (height/2-45)+30) {
  308.     background(255);
  309.     textSize(20);
  310.     fill(80);
  311.     text("The Code of Hammurabi 1,792-1,749 BCE", x, 30);
  312.   }
  313.   //End of Mesopotamia
  314.   if(mouseX > width/1.8+88 && mouseX < (width/1.8+88)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  315.     background(255);
  316.     textSize(20);
  317.     fill(80);
  318.     text("End of Mesopotamia 550 BCE", x, 30);
  319.   }
  320.   //Pre-Kingdoms of Egypt
  321.   if(mouseX > width/1.8+38 && mouseX < (width/1.8+38)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  322.     background(255);
  323.     textSize(20);
  324.     fill(80);
  325.     text("Pre-Kingdoms of Egypt 8,000-7,500 BCE", x, 30);
  326.   }
  327.   //Earliest permanent settlement
  328.   if(mouseX > width/1.8+43 && mouseX < (width/1.8+43)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  329.     background(255);
  330.     textSize(20);
  331.     fill(80);
  332.     text("Earliest permanent settlements 6,000 BCE", x, 30);
  333.   }
  334.   //First live stock
  335.   if(mouseX > width/1.8+48 && mouseX < (width/1.8+48)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  336.     background(255);
  337.     textSize(20);
  338.     fill(80);
  339.     text("First livestock 5,000 BCE", x, 30);
  340.   }
  341.   //Early Hieroglyphs
  342.   if(mouseX > width/1.8+53 && mouseX < (width/1.8+53)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  343.     background(255);
  344.     textSize(20);
  345.     fill(80);
  346.     text("Early Hieroglyphs 3,200 BCE", x, 30);
  347.   }
  348.   //Unification of Egypt
  349.   if(mouseX > width/1.8+56 && mouseX < (width/1.8+56)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  350.     background(255);
  351.     textSize(20);
  352.     fill(80);
  353.     text("Unification of Egypy 3,000 BCE", x, 30);
  354.   }
  355.   //Pyramids of Giza
  356.   if(mouseX > width/1.8+59 && mouseX < (width/1.8+59)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  357.     background(255);
  358.     textSize(20);
  359.     fill(80);
  360.     text("Pyramids of Giza 2,650 BCE", x, 30);
  361.     text("The Old Kingdom 2,650", x, 110);
  362.   }
  363.   //Middle Kingdom
  364.   if(mouseX > width/1.8+62 && mouseX < (width/1.8+62)+(3) && mouseY > height/2+15 && mouseY < (height/2+15)+30) {
  365.     background(255);
  366.     textSize(20);
  367.     fill(80);
  368.     text("Middle Kingdom 2,055-1,650 BCE", x, 30);
  369.   }
  370.   //Ramses II
  371.   if(mouseX > width/1.8+64 && mouseX < (width/1.8+64)+(3) && mouseY > height/2+45 && mouseY < (height/2+45)+30) {
  372.     background(255);
  373.     textSize(20);
  374.     fill(80);
  375.     text("Ramses II 1,304-1,238 BCE", x, 30);
  376.   }
  377.   //New Kingdom
  378.   if(mouseX > width/1.8+65 && mouseX < (width/1.8+65)+(3) && mouseY > height/2+15 && mouseY < (height/2+15)+30) {
  379.     background(255);
  380.     textSize(20);
  381.     fill(80);
  382.     text("New Kingdom 1,500-1,069 BCE", x, 30);
  383.   }
  384.   //Rome founded
  385.   if(mouseX > width/1.8+87 && mouseX < (width/1.8+87)+(3) && mouseY > height/2+15 && mouseY < (height/2+15)+30) {
  386.     background(255);
  387.     textSize(20);
  388.     fill(80);
  389.     text("Rome founded 753 BCE", x, 30);
  390.   }
  391.   //Roman Republic
  392.   if(mouseX > width/1.8+95 && mouseX < (width/1.8+95)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  393.     background(255);
  394.     textSize(20);
  395.     fill(80);
  396.     text("Roman Republic 509 BCE", x, 30);
  397.   }
  398.   //Punic wars
  399.   if(mouseX > width/1.8+108 && mouseX < (width/1.8+108)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  400.     background(255);
  401.     textSize(20);
  402.     fill(80);
  403.     text("Punic wars 264-146 BCE", x, 30);
  404.     text("Hannibal crossing the Alps 218 BCE", x, 50);
  405.     text("Third punic war 149 BCE", x, 70);
  406.   }
  407.   //Julius Caesar
  408.   if(mouseX > width/1.8+111 && mouseX < (width/1.8+111)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  409.     background(255);
  410.     textSize(20);
  411.     fill(80);
  412.     text("Julius Caesar 44 BCE", x, 30);
  413.   }
  414.   //Battle of Actium
  415.   if(mouseX > width/1.8+114 && mouseX < (width/1.8+114)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  416.     background(255);
  417.     textSize(20);
  418.     fill(80);
  419.     text("Battle of Actium 31 BCE", x, 30);
  420.   }
  421.   //Caesar Augustus/Beginning of Roman Empire
  422.   if(mouseX > width/1.8+117 && mouseX < (width/1.8+117)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  423.     background(255);
  424.     textSize(20);
  425.     fill(80);
  426.     text("Caesar Augustus and the Beginning of the Roman Empire 27 BCE", width-350, 30);
  427.   }
  428.   //Rome Burns
  429.   if(mouseX > width/1.8+120 && mouseX < (width/1.8+120)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  430.     background(255);
  431.     textSize(20);
  432.     fill(80);
  433.     text("Rome Burns 64 AD", x, 30);
  434.   }
  435.   //Hadrian's Wall
  436.   if(mouseX > width/1.8+123 && mouseX < (width/1.8+123)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  437.     background(255);
  438.     textSize(20);
  439.     fill(80);
  440.     text("Hadrian's Wall 121 AD", x, 30);
  441.   }
  442.   //citizenship to all in empire
  443.   if(mouseX > width/1.8+126 && mouseX < (width/1.8+126)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  444.     background(255);
  445.     textSize(20);
  446.     fill(80);
  447.     text("Citizenship to everyone in the empire 212 AD", width-300, 30);
  448.   }
  449.   //Diocletian divide
  450.   if(mouseX > width/1.8+129 && mouseX < (width/1.8+129)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  451.     background(255);
  452.     textSize(20);
  453.     fill(80);
  454.     text("Diocletian divide 305 AD", width-300, 30);
  455.   }
  456.   //Edict of Milan
  457.   if(mouseX > width/1.8+132 && mouseX < (width/1.8+132)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  458.     background(255);
  459.     textSize(20);
  460.     fill(80);
  461.     text("Edict of Milan 313 AD", width-300, 30);
  462.   }
  463.   //Constantine moves capital
  464.   if(mouseX > width/1.8+135 && mouseX < (width/1.8+135)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  465.     background(255);
  466.     textSize(20);
  467.     fill(80);
  468.     text("Constantine moves the capital to Byzantium 324 AD", width-300, 30);
  469.   }
  470.   //Sack of Rome
  471.   if(mouseX > width/1.8+138 && mouseX < (width/1.8+138)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  472.     background(255);
  473.     textSize(20);
  474.     fill(80);
  475.     text("Sack of Rome by Visigoths 414 AD", width-300, 30);
  476.   }
  477.   //Fall of Rome
  478.   if(mouseX > width/1.8+141 && mouseX < (width/1.8+141)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  479.     background(255);
  480.     textSize(20);
  481.     fill(80);
  482.     text("Fall of the city of Rome 476 AD", width-300, 30);
  483.   }
  484.   //Muhammad born in Mecca
  485.   if(mouseX > width/1.8+146 && mouseX < (width/1.8+146)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  486.     background(255);
  487.     textSize(20);
  488.     fill(80);
  489.     text("Muhammad born in Mecca 570 AD", width-300, 30);
  490.   }
  491.   //Muhammad began preaching
  492.   if(mouseX > width/1.8+149 && mouseX < (width/1.8+149)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  493.     background(255);
  494.     textSize(20);
  495.     fill(80);
  496.     text("Muhammad began preaching in Mecca 610 AD", width-300, 30);
  497.   }
  498.   //Muhammad fled to medina
  499.   if(mouseX > width/1.8+152 && mouseX < (width/1.8+152)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  500.     background(255);
  501.     textSize(20);
  502.     fill(80);
  503.     text("Muhammad fled to Medina to escape death 622 AD", width-300, 30);
  504.   }
  505.   //Muhammad returns to Mecca
  506.   if(mouseX > width/1.8+155 && mouseX < (width/1.8+155)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  507.     background(255);
  508.     textSize(20);
  509.     fill(80);
  510.     text("Muhammad returns to Mecca 630 AD", width-300, 30);
  511.   }
  512.   //Muhammad died
  513.   if(mouseX > width/1.8+158 && mouseX < (width/1.8+158)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  514.     background(255);
  515.     textSize(20);
  516.     fill(80);
  517.     text("Muhammad dies in Medina 632 AD", width-300, 30);
  518.   }
  519.   //Islam spread
  520.   if(mouseX > width/1.8+161 && mouseX < (width/1.8+161)+(5) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  521.     background(255);
  522.     textSize(20);
  523.     fill(80);
  524.     text("Islam spread through the Middle East 632-850 AD", width-300, 30);
  525.   }
  526.   //Muslum conquest
  527.   if(mouseX > width/1.8+164 && mouseX < (width/1.8+164)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  528.     background(255);
  529.     textSize(20);
  530.     fill(80);
  531.     text("Muslim conquest of Damascus Syria 635 AD", width-300, 30);
  532.     text("Muslim conquest of Iraq 637 AD", width-300, 50);
  533.     text("Muslim conquest of Jerusalem 638 AD", width-300, 70);
  534.     text("Muslim conquest of Egypt 641 AD", width-300, 90);
  535.   }
  536.   //Iberian Peninsula
  537.    if(mouseX > width/1.8+167 && mouseX < (width/1.8+167)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  538.     background(255);
  539.     textSize(20);
  540.     fill(80);
  541.     text("Iberian Peninsula occupied by Muslims 718 AD", width-300, 30);
  542.   }
  543.   //Battle of Tours
  544.   if(mouseX > width/1.8+170 && mouseX < (width/1.8+170)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  545.     background(255);
  546.     textSize(20);
  547.     fill(80);
  548.     text("Battle of Tours 732 AD", width-300, 30);
  549.   }
  550.   //Fall of Constantinople to Ottoman Turks
  551.   if(mouseX > width/1.8+173 && mouseX < (width/1.8+173)+(3) && mouseY > height/2-15 && mouseY < (height/2-15)+30) {
  552.     background(255);
  553.     textSize(20);
  554.     fill(80);
  555.     text("Fall of Constantinople to Ottoman Turks 1,453 AD", width-300, 30);
  556.   }
  557.   //Greece Minoan
  558.   if(mouseX > width/1.8+76 && mouseX < (width/1.8+76)+(12) && mouseY > height/2-75 && mouseY < (height/2-75)+30) {
  559.     background(255);
  560.     textSize(20);
  561.     fill(80);
  562.     text("Minoan civilization 2,700-1,450 BCE", width-300, 30);
  563.   }
  564.   //Greece Mycenean
  565.   if(mouseX > width/1.8+85 && mouseX < (width/1.8+85)+(9) && mouseY > height/2-105 && mouseY < (height/2-105)+30) {
  566.     background(255);
  567.     textSize(20);
  568.     fill(80);
  569.     text("Mycenean civilization 1,600-1,100 BCE", width-300, 30);
  570.   }
  571.   //Sack of Troy
  572.   if(mouseX > width/1.8+92 && mouseX < (width/1.8+92)+(3) && mouseY > height/2-135 && mouseY < (height/2-135)+30) {
  573.     background(255);
  574.     textSize(20);
  575.     fill(80);
  576.     text("Sack of Troy 1,250 BCE", width-300, 30);
  577.   }
  578.   //Records of Pylos
  579.   if(mouseX > width/1.8+93 && mouseX < (width/1.8+93)+(3) && mouseY > height/2-165 && mouseY < (height/2-165)+30) {
  580.     background(255);
  581.     textSize(20);
  582.     fill(80);
  583.     text("Records of Pylos 1,180 BCE", x, 30);
  584.   }
  585.   //Greek Dark Ages
  586.   if(mouseX > width/1.8+94 && mouseX < (width/1.8+94)+(6) && mouseY > height/2-195 && mouseY < (height/2-195)+30) {
  587.     background(255);
  588.     textSize(20);
  589.     fill(80);
  590.     text("Greek Dark Ages 1,100-800 BCE", x, 30);
  591.   }
  592. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement