Skip to content

📝 Blog

A La Découverte De Phaser - 1

AprĂšs l’atelier MixTeen durant MixIT (je vous raconterai peut ĂȘtre un de ces 4), j’ai eu envie de faire comme les enfants : faire un jeu.

Comme j’avais assistĂ© Ă  la confĂ©rence de Laurent Victorino qui poussait Ă  faire des jeux, et celle de Tristan Nitot qui plaidait pour que le web soit la plateforme mobile, j’ai fait une sauce de tout ça et me suit lancĂ© dans le dĂ©veloppement de ce qui devrait ĂȘtre un jeu HTML5.

Comme j’aime bien passer des heures Ă  apprendre plein de choses, j’ai commencĂ© par chercher ce qui se faisait dans ce monde qui est bien loin de mes souvenirs de HTML 4 et de ce que gĂ©nĂšre le framework Java que j’utilise au travail.

J’ai trouvĂ© des outils qui me rappelaient les Game Creator de ma jeunesse comme Construct 2, Tululoo ou bien sĂ»r Phaser.

La liste n’est pas exhaustive et n’hĂ©sitez pas Ă  regarder ce que donne une recherche de Game creator Html5.
Chaque outil a ses particularitĂ©s, certains ne fonctionnent que sous Windows, certains n’ont pas beaucoup de documentation
 que chacun trouve son bonheur, c’est passionnant.

J’ai volontairement mis de cĂŽtĂ© Unity mĂȘme si ça me plairait bien de m’y plonger Ă©galement.

Mais revenons Ă  Phaser.
Un des points qui m’a dĂ©cidĂ© est un sympathique tutoriel Making your first Phaser game.

Si l’anglais ne vous pose pas de souci, filez lire et utiliser l’original, Alvin Ourad et Richard Davey ont fait un excellent travail.

Mais dis donc Tonton Codeur, pourquoi faire un article si tu nous envoie faire l’original ?
Et bien, tout d’abord, il va falloir Ă  vous y habituer, je fais souvent comme je veux, surtout sur mon propre blog ;). Ensuite, il y a quand mĂȘme pas mal d’entre vous qui prĂ©fĂšrent travailler sĂ©parement leur anglais et leur code.
MĂȘme s’il serait prĂ©fĂ©rable de vous forcer un peu, je ne vois pas pourquoi vous seriez privĂ© de cet excellent tutoriel.
Il est comme ça votre Tonton Codeur, il ne vous abandonne pas !

Avant tout, je tiens Ă  remercier Alvin qui m’a autorisĂ© Ă  traduire et publier la traduction de son tutoriel.
Je tacherai de bien respecter l’original, si ce n’est pas le cas, n’hĂ©sites pas, Tonton Codeur sait reconnaitre ses fautes (normalement :) )

Allez, c’est suffisament long pour un article de blabla, je vous dit à trùùùùs bientît pour les premiers pas avec Phaser.

SmartRap - Build

After months waiting for it, here comes my 3D printer.
To be precise, I received the parts and needed to build it.

DSC03651DSC03654

Yes, lot of works. But everything looks well prepared.
First steps were quick, no bad surprise.

DSC03660

Until some missing screws.

DSC03661

The creator of the SmartRap is very kind and reactive, and after some new screws from him and my personal stock, here we go again.

DSC03664

At some point, I even built something I can plug :)

DSC03676

To be honest, this post is just a short version of several weeks.
I spend a lot of time on other tasks, some professional, some for the family and some for kids coding event ;)
I hope to post very soon some pictures of my first print !

Gary - Little 2

That’s been a long time since last update. Maybe I should experiment less and finish some projects!
But hey, the blog is about little experiments ;)

I always wanted to add wireless communication to Gary and my Raspberry Pi wants to travel: Deal! I bought a nice RaspiRobot kit, but it comes like this:

Here we go!

First time for me to solder so nice but tiny things :)
I think I got it pretty well:

Everything solderedI think it's acceptable

I adapted the case I have with some little drill game:

Gary got a new brain

I forgot to take a picture with the Pi and the Wifi dongle.
The python code works and I will translate it to Golo-lang or Java.
I also have some camera streaming code working, but the Pi camera is really not a good piece of hardware.
I’ll search another solution.

Gipsy

As seen in my previous post, first attempt to build a quadrupod ended with a jump from the desk.
Hopefully, I learned a lot and I was ready to launch the next experiment.

My wife just received this very nice material from a friend and there’s enough for me too :)
I think the best English translation is paper foam board, but you will see it later.

This time, I chose to get a step further and build a 3DOF quadrupod.
As usual, as I don’t have 3D software knowledge, I draw my ideas.
Very quickly, thanks to the foam board, I was ready to try real parts:

from thoughts to real

Easy to cut, strong enough, first leg parts were quickly ready:

one leg kit

I had to get back servos and servo horns from the poor Sticky.
Bye Sticky, you were very useful:

good bye sticky

Using the hot glue gun once more, I started to assemble the legs:

new femurshorn glued

When a leg is ready, I thought it might be good to check the 90° position of the servos:

align servo

Quite a lot of work, but that was fun:

4 legs

I quickly cut a platform and here is the first shoot of Gipsy:

structure ready

And there, I learned another lesson: glue is good, but you have to screw horns on the servo.
Until now, I just pushed the horn, but here comes the first true physical constraints.
So, I carefully use my cutter to get back all horns, screw them and glue back.
No true difference to see, but hey, I’ve done it! :)

same structure but horns are screwed now

Then, I started to plug all 12 servos to my DFRobot Romeo board.
Which bring me to my next lesson: always put a proper code on a board before switch on :)

Never plug the board before having initial code

No harm, but I thought I was stupid because I didn’t initialized all the different 12 ports used.
To be honest, I believe there’s also an electrical issue, as I was only USB plugged.
As I didn’t meant to move all servo at the same time for the moment, I thought USB was enough.
Obviously, this is not the case.

Next step will be to determine if this is an electrical issue.
I’ll add an external power source as in Gary

Also, I started to study the way I’ll code the movements. It looks harder to move a 4 legs bot than one with 6.
It’s a matter of balance and you need 3 legs on the floor to keep a stable state.
But I start learning anyway, even if at the end I code an hexapod ;)