Arduino code (see below screen shot):
Process & Challenges
After endless brainstorming and prototyping, this game finally is finally born! I made this game in p5 first. Originally, I wanted to use sword to slide the fruits. But, after testing it out with the IMU's Madgwick library, the movement is not the effect I want to see. Then, I tried to use WEBGL to make the sword 3D and use IMU's gyroscope values. The movement is much cleaner and smoother, but the direction of the sword and all other objects is off. Afterwards, I talked to residents and professor for further guidance. It turns out that it'll be too difficult to only use IMU to get the position and movements for the sword because there's motion sensor or other sensors involved.
I didn't want to abandon the whole game, so I started thinking how I could use what I have and achieved so far to make the game more intuitive and user friendly. I tested out and kept playing with the simple prototype I made (see Video 1).
Video 1
That's when I thought of the basket idea. Instead of using sword, I could make the fruits fall from the top of the canvas and use basket to catch it. That way, the movement you see in the video 1 wouldn't be too slow. It's also intuitive for users to hold the basket and rotate it in order to catch the fruits on the screen.
Basket mockup
A recording of me playing the game
Next Steps
For the p5.js sketch, I want to make the game more challenging, like adding multiple levels. For the fabrication part, I want to make it wireless with bluetooth, and add play and restart buttons to the basket. I was working on the bluetooth and adding buttons, but I couldn't get both working before the deadline.
User Feedback
Professor: Even though it came from a roadblock I really like the shift to using a different physical controller for your input. Really satisfying controller, I’d love to try in real life and at different scales/ room scale / projection scale etc. I’d love to see a mode where the fruit stacks up and fills the basket.
"Really satisfying physics, I can nearly feel the knock of fruit hitting my basket. Really whimsical physical controller, I’ve never had a basket for game control. Looks way more fun than picking apples"
"So playful! I love that you added the audio feedback as well and decided to make a real basket for the game. Also the interface looks very clean."
"I really liked the creation of a basket. It seemed like a really nice user interface and a very fun controller. It also seems like the sketch itself is very fleshed out and really responsive."
"So cool to add that basket as the physical element! It would be fun to add to more motion to it- like say move horizontally to catch the ones that are falling on the other end of the screen(maybe have fsr on the ground or just capture the position through the webcam)"
"I think the graphics are nice, and looks like the feedback is almost instant, which is awesome"
"Great job!! I am glad I have a chance to play it! I really hope to play it with different levels and I want to get more scores than 10 as well. Also, That could be cool to compete with others."
Comments