ICM week 14 : Machine Leaning with Sleep Game

For final project I try to use Teachable Machine to create a game call “Sleep Game”.

For the machine learning part, Google made it’s incredibly easy to use with no coding knowledge requires at all! Anyway, the bad side is you have to re-train the machine every time you’ve changed the place that you open your P5 sketch since it’ll to try catch all little changes that happened.

At the beginning I planed to use “Thai” to control the game. Though, after a few try with the teachable machine, I noticed that it was very hard to get the sound output right. ( I think maybe because Thai language has many tones that related to different meanings which is pretty hard to catch ) So I decided to go with the image training instead.

Eventhough with image training, teachable machine still make me redo it over 3 times just to get the output mostly correct.

Screen Shot 2019-12-18 at 8.58.39 PM.png

For the coding part, my “Sleep Game” is actually followed the rules of the snake game - which is the player need to take the crazy yellow bubble to her bed so it can go to sleep. Anyway, this’s the first game that I try to make and I found myself in basic error lessons about game coding ( well- the residents told me so ) especially how to get the exact position of X and Y right to control and set the next state of the game.

Here is the link to my sketch :

https://editor.p5js.org/Jay_a_n/sketches/_p97mvrZC

Screen Shot 2019-12-18 at 9.10.54 PM.png
this is the part where the resident ( Jesse, Thank You!!!! ) and I try to set X,Y positions to see if the end sate of the game is working or not.

this is the part where the resident ( Jesse, Thank You!!!! ) and I try to set X,Y positions to see if the end sate of the game is working or not.

At the end, I learn a lot about the tricks in small game coding from this project and see a lot of potential with machine leaning that I would love to apply more on both my Prom and ICM project.

suphitcha donsrichanComment