
Neural Network Ratatouille
This game is from ldjam.com, which is currently unavailable.
You can try viewing the original page on Web Archive (may not load correctly).
You can try viewing the original page on Web Archive (may not load correctly).
Incompatible Genres ? Hmmm is it combatible to have a rat in a kitchen or to control your game with your webcam ?
For each ludum dare in which I participate, I try to learn something new. This time it's https://js.tensorflow.org. Because it's incredible to be able to do deep learning programming in JS !
I've used this tutorial as a starting point : https://js.tensorflow.org/tutorials/webcam-transfer-learning.html and then develop the game with pure JS and HTML5.
Surprinsingly, I've had more trouble with my rusty JS than with tensorflow ... I probably shoud have use a lib like Phaser Js instead of writing everything on my own.
/!\ I just added a post comp version with some minor bux fixes (you can now restart by pressing R and you can no longer launch the game without having trained your neural network), I suggest you to play this version for a better experience /!\
HERE'S HOW YOU PLAY THE GAME (with your webcam) :
1- For each control you need to provide some pictures of you holding an object(a fruit or a vegetable for example :)) in a specific direction. For IDLE I suggest you to hide the object your holding. (hint : you can hold clic to capture a lot of picture fast)
2- Then you have to clic on "Train ratatouille" and wait a little for the number to go down.
3- After that clic on "Let's cook" and be ready to play !
4- Show the object on the direction you want to move the character. You need to catch the cheese and avoid the mouse trap !
For each ludum dare in which I participate, I try to learn something new. This time it's https://js.tensorflow.org. Because it's incredible to be able to do deep learning programming in JS !
I've used this tutorial as a starting point : https://js.tensorflow.org/tutorials/webcam-transfer-learning.html and then develop the game with pure JS and HTML5.
Surprinsingly, I've had more trouble with my rusty JS than with tensorflow ... I probably shoud have use a lib like Phaser Js instead of writing everything on my own.
/!\ I just added a post comp version with some minor bux fixes (you can now restart by pressing R and you can no longer launch the game without having trained your neural network), I suggest you to play this version for a better experience /!\
HERE'S HOW YOU PLAY THE GAME (with your webcam) :
1- For each control you need to provide some pictures of you holding an object(a fruit or a vegetable for example :)) in a specific direction. For IDLE I suggest you to hide the object your holding. (hint : you can hold clic to capture a lot of picture fast)
2- Then you have to clic on "Train ratatouille" and wait a little for the number to go down.
3- After that clic on "Let's cook" and be ready to play !
4- Show the object on the direction you want to move the character. You need to catch the cheese and avoid the mouse trap !