User Tools

Site Tools


spcs:2015:day5

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
spcs:2015:day5 [2015/07/08 20:30]
ffpaladin [Teams]
spcs:2015:day5 [2015/07/11 01:34]
ffpaladin
Line 1: Line 1:
 ====== Day 5 - Friday ====== ====== Day 5 - Friday ======
  
-===== Activities =====+===== Activities/​Announcements ​=====
  
-  * Intellivator:​ Elevator Design +  * Object Oriented Programming 
-  * Puzzle +  * Mouse and Keyboard Input 
-  * Seurat Program +  * Finite State Machines 
-  * Guest Speaker+  * Rock, Paper, Scissors 
 +  * Thank you for guest speakers
   * Pixelator   * Pixelator
   * Perler Beads   * Perler Beads
Line 13: Line 14:
 ===== Class Assignments ===== ===== Class Assignments =====
  
-  - **Processing: ​Seurat Painting** - How do we make Seurat Painting animation in Processing +  - **Processing: ​Project** - Pick simulation that will teach me something. YOU MUST WORK WITH YOUR TEAM!!! 
-    - Step 1Make an animation +    - Suggestions
-    Step 2: Make it so that the user can change the size of the circle+      ** Physics** - Get objects to bounce and collide. Use gravity, if possible. 
 +      - **Sieve of Eratosthenes** - Show how this method works  
 +      - **Cellular Automata** - Show what Cellular Automata is 
 +      - **Make a Game** - To make a game, give it interactions and a winning condition (Ludus and Paida).
   - **Github** - You can store your processing projects directly there and run them with Processing.js - Read: http://​processingjs.org/​articles/​jsQuickStart.html (Similar to yesterday)   - **Github** - You can store your processing projects directly there and run them with Processing.js - Read: http://​processingjs.org/​articles/​jsQuickStart.html (Similar to yesterday)
-  - PixelatorMake an animation with Pixelator +  - **FEEDBACK FORM**Please fill out feedback form... 
-  Perler BeadsMake a sprite with perler beads +    https://​docs.google.com/​forms/​d/​1Q-qo1Nt9Jkjn90ldtsMC30zcICHnOf9_Ra-r1M1hKWM/​viewform
 ===== Homework ===== ===== Homework =====
  
   * **Blog Post**: Every project should have a post. If you made 3 projects, then there are 3 posts. Have images for what you did. Link to the github.io website online so people can see each program. ​   * **Blog Post**: Every project should have a post. If you made 3 projects, then there are 3 posts. Have images for what you did. Link to the github.io website online so people can see each program. ​
-  * **Blog Post**: ​Make post about all the artwork you did. +  * **Blog Post**: ​What is design. Why is it important? How to you make good design document? 
-  * **Blog Post**: What are Algorithms? Why are they important? Name some algorithms ​and explain how they run.+  * **BIG DESIGN DOC** - Make the poster ​and have it done by MONDAY! Bring it in!
   * **Improve your past work**: Double check your work, and make sure your blog is complete. Make sure you have completed all blogs. Finish anything you didn't get to do today. Improve anything that you can! Lots of pictures!!!   * **Improve your past work**: Double check your work, and make sure your blog is complete. Make sure you have completed all blogs. Finish anything you didn't get to do today. Improve anything that you can! Lots of pictures!!!
-  * **Blog Post**: Game Review - But that was yesterday - jayisgames.com/​games/​but-that-was-yesterday/​+  * **Blog Post**: Game Review - But that was yesterday - http://jayisgames.com/​games/​but-that-was-yesterday/​
 Note: From now on ALL game reviews must address Ludus, Paida, and Narrative. Note: From now on ALL game reviews must address Ludus, Paida, and Narrative.
 +  * **ASK YOUR PARENTS IF THEY CAN MAKE FOOD TO BRING FOR PARTY ON FRIDAY. ALSO ASK THEM IF THEY WANT TO COME TO FINAL PRESENTATIONS AT THE END OF THE CLASS.**
 +
 +===== Feedback to class =====
 +
 +  * Better design documents
 +  * Work better in teams
 +  * Be better at asking for help
 +  * Be more willing to help
 +  * Participate and take more risks
 +  * Be more social with the guest speakers
 +
 +
 +===== Teams =====
 +
 +  * Cindy, Hollis
 +  * Toby, Jack
 +  * Mike, Evangeline, Guest
 +  * Billy, Peter
 +  * Wilson, Chris, Jeff
 +  * Michael, Lisa
 +  * Kyle, Samuel
 +  * Frank, Bran
 + 
 +
 +<code java>
 +
 +color c = color(0);
 +float x = 0;
 +float y = 100;
 +float speed = 1;
 +
 +void setup() {
 +  size(200,​200);​
 +}
 +
 +void draw() {
 +  background(255);​
 +  move();
 +  display();
 +}
 +
 +void move() {
 +  x = x + speed;
 +  if (x > width) {
 +    x = 0;
 +  }
 +}
 +
 +void display() {
 +  fill(c);
 +  rect(x,​y,​30,​10);​
 +}
 +
 +</​code>​
 +
 +<code java>
 +
 +
 +// Example: Two Car objects
 +Car myCar1;
 +Car myCar2; // Two objects!
 +
 +void setup() {
 +  size(200,​200);​
 +  // Parameters go inside the parentheses when the object is constructed.
 +  myCar1 = new Car(color(255,​0,​0),​0,​100,​2); ​
 +  myCar2 = new Car(color(0,​0,​255),​0,​10,​1);​
 +}
 +
 +void draw() {
 +  background(255);​
 +  myCar1.drive();​
 +  myCar1.display();​
 +  myCar2.drive();​
 +  myCar2.display();​
 +}
 +
 +// Even though there are multiple objects, we still only need one class. ​
 +// No matter how many cookies we make, only one cookie cutter is needed.
 +class Car { 
 +  color c;
 +  float xpos;
 +  float ypos;
 +  float xspeed;
 +
 +  // The Constructor is defined with arguments.
 +  Car(color tempC, float tempXpos, float tempYpos, float tempXspeed) { 
 +    c = tempC;
 +    xpos = tempXpos;
 +    ypos = tempYpos;
 +    xspeed = tempXspeed;
 +  }
 +
 +  void display() {
 +    stroke(0);
 +    fill(c);
 +    rectMode(CENTER);​
 +    rect(xpos,​ypos,​20,​10);​
 +  }
 +
 +  void drive() {
 +    xpos = xpos + xspeed;
 +    if (xpos > width) {
 +      xpos = 0;
 +    }
 +  }
 +}
 +
 +</​code>​
 +
 +<code java>
  
 +int x, y;
 +void setup() ​
 +{
 +  size (500,500);
 +}
  
 +void draw()
 +{
 +  ellipse(x,​y,​20,​20); ​
 +  if ((key == '​d'​) && (keyPressed))
 +  {
 +    x++;
 +  }
 +  else if (key == '​s'​)
 +  {
 +    y++;
 +  }  ​
 +  ​
 +}
  
 +</​code>​
/soe/sherol/.html/teaching/data/pages/spcs/2015/day5.txt · Last modified: 2015/07/11 01:34 by ffpaladin