Advertisement
Guest User

Untitled

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