{"id":75601,"date":"2022-11-12T19:03:01","date_gmt":"2022-11-13T00:03:01","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/?p=75601"},"modified":"2022-11-12T19:03:01","modified_gmt":"2022-11-13T00:03:01","slug":"project-10","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/11\/12\/project-10\/","title":{"rendered":"Project 10"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><p>Under the sea! My 5 characters are the ocean, jellyfish, fish, big whale, and small whale.<\/p>\n<div><a class=\"p5_sketch_link\" href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/uploads\/2022\/11\/sketch-41.js\" data-width=\"1224\" data-height=\"874\">sketch<\/a><iframe src=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-content\/plugins\/p5-embedder\/p5_iframe.html\" class=\"p5_exampleFrame\" width=\"1224\" height=\"874\"><\/iframe><pre class=\"language-javascript\"><code class=\"p5_editor language-javascript\">\/\/ Sowang Kundeling Project 10 Section C\n\nvar count = 0;\nx = 50\nvar count = 0\n\nfunction preload() {\n  ocean = loadSound(\"http:\/\/localhost:8887\/ocean.wav\");\n  low = loadSound(\"http:\/\/localhost:8887\/low.wav\");\n  bubble = loadSound(\"http:\/\/localhost:8887\/bubble.wav\");\n  high = loadSound(\"http:\/\/localhost:8887\/high.wav\");\n  splash = loadSound(\"http:\/\/localhost:8887\/splash.wav\");\n\n  sea = loadImage(\"https:\/\/i.imgur.com\/cDVwxGl.jpg\");\n  big = loadImage(\"https:\/\/i.imgur.com\/3j8OG8S.png\");\n  little = loadImage(\"https:\/\/i.imgur.com\/eBmN7hL.png\");\n  jellyfish = loadImage(\"https:\/\/i.imgur.com\/LbEcOSU.png\");\n  fish = loadImage(\"https:\/\/i.imgur.com\/FSQzu31.png\")\n}\n\nfunction soundSetup() {\n  ocean.setVolume(.1);\n  low.setVolume(.3);\n  bubble.setVolume(.1);\n  high.setVolume(.3);\n  splash.setVolume(.1);\n}\n\nfunction setup() {\n  createCanvas(sea.width, sea.height);\n  frameRate(1);\n  useSound();\n}\n\nfunction draw() {\n  image(sea, 0, 0, sea.width, sea.height);\n  ocean.play();\n\n  if(count == 2 || count == 16) {\n    low.play();\n  } else if(count == 4 || count == 18) {\n    bubble.play();\n  } else if (count == 10 || count == 25) {\n    high.play();\n  } else if (count == 1 || count == 30 || count == 15) {\n    splash.play();\n  }\n\n  if(count &gt;= 5) {\n    image(big, 20, 50, big.width\/4, big.height\/4);\n  } if(count &gt;= 10) {\n    image(little, 400, 200, little.width\/2, little.height\/2);\n  } if(count &gt;= 4) {\n    image(jellyfish, x, 300, jellyfish.width\/4, jellyfish.height\/4);\n  } if (count &gt;= 15) {\n    image(fish, mouseX, mouseY, fish.width\/6, fish.height\/6);\n  }\n\n  count++\n  x += 2\n\n  print(count);\n}<\/code><\/pre><\/div><\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>Under the sea! My 5 characters are the ocean, jellyfish, fish, big whale, and small whale. sketch \/\/ Sowang Kundeling Project 10 Section C var count = 0; x = 50 var count = 0 function preload() { ocean = loadSound(&#8220;http:\/\/localhost:8887\/ocean.wav&#8221;); low = loadSound(&#8220;http:\/\/localhost:8887\/low.wav&#8221;); bubble = loadSound(&#8220;http:\/\/localhost:8887\/bubble.wav&#8221;); high = loadSound(&#8220;http:\/\/localhost:8887\/high.wav&#8221;); splash = loadSound(&#8220;http:\/\/localhost:8887\/splash.wav&#8221;); sea = &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/2022\/11\/12\/project-10\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Project 10&#8221;<\/span><\/a><\/p>\n","protected":false},"author":731,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[113,57],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/75601"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/users\/731"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/comments?post=75601"}],"version-history":[{"count":1,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/75601\/revisions"}],"predecessor-version":[{"id":75602,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/posts\/75601\/revisions\/75602"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/media?parent=75601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/categories?post=75601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/15-104\/f2022\/wp-json\/wp\/v2\/tags?post=75601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}