2022
Program: Arduino, Processing(JavaScript) / device: Esp32, Tilt sensor, Buttons
Your FUN
This project explores the digital connection between the controller and the screen while implementing 2D video games. It is a game that physically consumes the culture of the digital world based on the background of the virtual world "Love Island." Up to three meme images floating on the Internet are exposed on one screen, and when the user uses the controller to send hearts to match the image, it randomly changes to another image and reappears in a different location. These images do not stand and wait for the user. Images that are not dynamic, but are constantly moving little by little, are reminiscent of changes in our current digital culture.
Digital and Pysical
A total of 20 images were uploaded as targets in the code. Their positions are rearranged at random, and once they fit into the bullet, they randomly change to another image and reappear. You can use up to 15 bullet points, and each time a single bullet is created, an effect sound appears. You will also get 1 point each time you hit one target image. If you use all 15 bullet points, your current score will be exposed and the game will be over.
Pressing the buttons on the right and left changes the direction of the gun. Also, if you want to keep changing directions, keep pressing and holding the button. Throw the heart containing the tilt sensor in the direction of the arrow and the bullet will go out.
Problem & Solution
1. Target - Bullet
Targets in this game take the form of a square, not a circle. So in order for the bullet to hit the target, the left, right, up, and down values of the rectangle must be set through the area and height of the image. In the first attempt, width/2 and height/2 were used, but there was an evaluation that it was difficult to match the target image because the size of the target image was small during the actual game. So I applied width/1.5 and height/1.5.
2. Text overlap
There was a phenomenon where the text overlapped at the end of the game. If text size() is written below the text states that are actually written, the code will double-judge it. So I solved it by changing the order of text size() above the text phrase.
3. Audio & Video loop
Even though there was no problem with the code, the loop function of the background video did not work and there was no sound effect whenever the bullet was created. So I re-encoded the file and made it into a new file and applied it.
Their FUN!
These are videos that actually tested this game. Users say that the feeling of conquering the sound effects of hearts and meme images one by one was fun. However, the bead in the tilt sensor was very sensitive, so they didn't actually shoot a bullet with a heart cushion, but there was an error that came out repeatedly several times. Or there was a case where the ball in the tilt sensor didn't move and the controller actually worked, but the bullet didn't come out.
They suggested that it would be better to fix the heart controller and only release bullets when people move. They also suggested that using a knob sensor would make it easier to control left and right than just moving the gun with a button.