Monday, February 3, 2014

Feb 11th 2014

A day met up with my teammates at IIS to refine our kiosk and the Arduino board. While I continue to do my code. The overall progress is for the code is about 50%. The picture below show our progress of the day.However, Jam was sent a multi key code for me to explore. I manage to use the code that he has given and put it into my game play. The use of multi key code in Flash is for detecting user to hold in the starting page so that they can check in and play the game. 

The code that Jam was given.


The progress of the day. 





The new problem has occur during our testing was the PS eye camera can't support of mirror effect to to flip the screen into mirror so that Charissa and I was researching on the code for flash to flip the camera. 

Link: http://stackoverflow.com/questions/574627/how-to-flip-flash-media-video
The link that provided the code for flipping camera in flash in to mirror effect so that user might able to see them in the camera in the right position but not reflected.


The code is successful to flip the camera into Mirror effect.


Feb 1st - 3th 2014

Our game that provided shuffle text and user might need to differentiate the correct words and wrong words which relevant to the image. User tap on the correct words to gain their healthbar, while if user tap on the wrong words to lost their point in the healthbar. For shuffle text, I have to use two array to store the good words and the bad words. Then I will shuffle them and randomize them to display on the stage. 

In the research of my coding, I found a website consist a clear tutorial on the Array and how it function. 
and the other link.

Therefore, I have tried to shuffle on One Array. Then I also found the other tutorial to random shuffle on the good Array and the Bad Array which exactly the source that I want.


However, I have tried alot of testing about  the array, but the result always failed. Therefore I have think about the backup plan, is to put each of the text in one frame by one frame and gotoAndPlay each of the words to display. But it is very inconvenience and very hard to differentiate which the correct and wrong function and the symbol inside the flash might not easy to handle. Therefore, I asked the Yi Wei about the code which posted in below.




The link that Yi Wei has gave me.
I will try my best to understand it. 

Thursday, January 30, 2014

Jan 29th - Jan 30th 2014

Instead using the conductive fabric, I suggested using Conductive Pen or ink to paint on the glove so that the wire won't tie a knot, just like the image below. 

However, the price of the pen is expensive and we don't know whether is it available in Malaysia. But due to time limitation, we don't have the time to wait for shipping and the ink can't stay on the wool. To connect the Arduino Gemma,  I found a long cable in my house which is half of my body length. My teammates was very kind to help me to find codes and test out. Charissa helped me to connect the Arduino Gemma to Arduino Software, Abu helped me to code the camera whereas Estee sewing the glove for testing the sensor. 


Tuesday, January 28, 2014

Jan 28th 2014

Since we having CNY holiday on Thursday until next Tuesday (30 Jan - 4 Feb) and our alpha test falls on the next wednesday, 5 Feb, we done some testing in the IIS. Estee and Abu was measuring the thickness of our board and testing the camera placement. I was doing the technical part, the coding and Charissa was designing the graphics.











To start the coding part, I have a clear direction on what I should do. So that I had listed down the steps for myself to follow.

1. To code the health bar,  using keyCode as a click. In this case I had set two keyCode which are spacebar and arrow down. Once we tap on the spacebar the yellow field will increase until it reach the limits. The same goest with the green bar.

2. Need to find out how to store the content of the sliding words. Perhaps I will use Array and switch case to do it . Array, to store the content while switch case is to identify which word is true and which is false. The correct words the user tap on so the healthbar will increase while the wrong word that they tap on the healthbar will decline.

3. Put in the time limit. Once Time's up then I will addchild another scene for them to capture their picture.

4. Connect the flash to processing and arduino.

5. Store the input of category that user has hashtag, connects the camera and capture user image then save in a file.




The progress of the coding was around 15% , I had discussed with my content leader as how many user tap on to reach the category of bad, middle and best. So that we came out the overall is 50 taps. Within 10 taps is the bad category; within 11-31 is the middle category which 32-50 is the best category. Then I also try to input the graphic UI which Charissa has design. The challenge was this is the gradient health bar which I had no idea how to do it. So that I came out an idea, I will place a box on top of the gradient health bar so that every user tap, the box will decrease and it showing the health bar increasing.




Monday, January 27, 2014

Jan 27th 2014

A day that I had received the Adafruit Flora Arduino. The shipping was earlier than our expectation and it is small and light which fulfill our needs. In the next severals days, before the alpha test , we will test out the arduino code and connect it to the foil paper as we haven't found a suitable conductive sensor which conductive fabric that had to find in Malaysia.



We also need to buy a suitable  long and blackUSB wire to connects the arduino. However, I can test out the arduino with my temporary cable. I suggest my groupmates that we could buy a normal USB wire and an extension one. 

Sunday, January 26, 2014

Jan 26th 2014

A day we had discussed our content image of our game play. First, we had listed down all the general items or object which everyone know about it. Then we choose 5 among them.

We had chosen Nasi Lemak, Michael Jackson,Cat, Coffee Art and Mona Lisa. Then we list down the right and wrong hashtag.

Friday, January 24, 2014

Jan 24th 2014

A day that Charissa helped me to consult Yi Wei for the timer code. Very appreciated that Yi Wei has provided this code for us. However, I have to figure out how to execute on the other codes.