8/8 - Creative Coding
For this project, I decided to use p5.js, a platform I've explored in the past. My introduction to creative coding happened in 2019 when I received a scholarship for a summer course at the School of Machines, Making & Make-Believe in Berlin, Germany. At the time, I had no prior coding experience, but I had the opportunity to learn Processing and p5.js. I relied heavily on YouTube tutorials and peers for help with debugging my project.
Fig. 1 - First test: creating a game with some of my drawings, using the cursor to click and gain points.
Now, five years later, I’ve returned to p5.js for this project. I used ChatGPT as a collaborative guide, experimenting with various ideas and asking numerous questions along the way. This made the experience feel quite different from my early days with coding. It was mind-blowing to see how rapidly creative tools and technology have evolved since then.
Fig. 2 - In this trial, I attempted to scale up the files
Using p5.js can be tricky. One of the challenges I faced was working with a small preview screen for my project. I later realized that my code needed adjustments to accommodate different screen sizes. However, making these adjustments would have required rewriting a significant portion of the code, as I had manually positioned elements in specific ways. Changing the screen size would have disrupted everything and required hours of extra work, so I decided to keep the setup as it was, despite the final result not being perfect.
For this interactive project, I wanted to incorporate images from my previous works as characters in a 2D game. My goal was to create something playful yet meaningful, combining these characters with a simple storyline. I drew inspiration from the storytelling format we explored in the Project25 module and created six images accompanied by six sentences. Here’s a brief overview of the storyline:
I woke up.And saw the light.The one I had been searching for.For a long time,I couldn’t remember.What it looked like.
Fig. 4 - Image showing the results of using p5.js without checking the full-size project. You need to adjust the code to different screen sizes, and it's not always the best interface for that in the p5.js web editor. In hindsight, I could have used another platform.
In the end, I developed a simple yet interactive game that uses images of my artwork combined with storytelling, giving it a more personal touch compared to typical, often impersonal or replicated formats. In the following link, you can see a screen recording of the result, though it doesn't show the cursor. The story is activated through cursor interaction, and you need to engage with it to reveal the text. Here’s a preview of the project and its development:
P.S. I was planning to upload it on GitHub so everyone could access it, but I encountered an issue because GitHub doesn’t support certain file types like PNG. This would have required converting the files to JPG and modifying my code accordingly. I think this is an important lesson to teach students—about the importance of file organization and understanding file types for better project development and debugging.
Part 2:
Reflecting on the p5.js community, I have the impression that it is not as active as when I first started in 2019. When I looked at the sketches, I didn’t find many projects that captivated me. However, I did come across an example that could be used to teach children about the ambiguity of things—like how a cloud can also be made of letters, challenging our perception of objects. Here’s the sketch I found:
Comments
Post a Comment
Comments: