In this week's assignment, I feel the pressure. if
function is learned and need to determine the condition. I sometimes skim through the P5js examples and I learn a lot. This is very time consuming because I need to understand the principles involved. But I'm happy to learn a lot of different rendering schemes as I work out bugs.
OpenProcessing - Creative Coding for the Curious Mind
I have seen many amazing examples in this site. I gather code from above and build on that. I've still got to reach the stage where the syntax is clear to me, especially when dealing with complex functions. But I'm happy to figure out the principles and eventually figure them out. That I can comprehend such intricate functions makes me pleased. By disassembling and reassembling in order to get my desired outcomes. The worksheet for this week was enjoyable and included a game that Noah and I played.
We settled on the idea by chatting, we were both interested in the game. And agreed to make a game out of it, with one person making a level. My game is like relying on mouse clicks on shapes. The object of this game is to score points by clicking on targets (circles) on the screen. The target moves randomly around the screen and with each click it gets smaller and harder to click.
https://editor.p5js.org/Taigen2457/sketches/N6o6fxcPD
In a follow-up discussion, we'd like to make an entry point on the opening page that is accessed by mouse click. For example, two leaves, click on the left to go to Noah's game, click on the right to go to my game. We later vetoed this idea, we wanted to focus more on the game.
Here is codeļ¼
function mousePressed() { let d1 = dist(mouseX, mouseY, 150, 200); if (d1 < 25) { window.location.href = "<https://example.com/pageA>";
}
// let d2 = dist(mouseX, mouseY, 250, 200); if (d2 < 25) { window.location.href = "<https://example.com/pageB>"; /
Ideas kept changing during the discussion. We then tried to merge the two games together. Eventually it was completed.