This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
spcs:2015:day5 [2015/07/09 18:19] ffpaladin |
spcs:2015:day5 [2015/07/09 20:15] ffpaladin [Class Assignments] |
||
---|---|---|---|
Line 25: | Line 25: | ||
- You can try to use the art in your simulation or game | - You can try to use the art in your simulation or game | ||
- **Perler Beads**: Make a sprite with perler beads | - **Perler Beads**: Make a sprite with perler beads | ||
+ | - **FEEDBACK FORM**: Please fill out feedback form... | ||
+ | - https://docs.google.com/forms/d/1Q-qo1Nt9Jkjn90ldtsMC30zcICHnOf9_Ra-r1M1hKWM/viewform | ||
===== Homework ===== | ===== Homework ===== | ||
Line 129: | Line 131: | ||
</code> | </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> |