GlovePIE:Neverball

From WiiLi

Jump to: navigation, search
/*
   *************
   * NEVERBALL *
   *************
   Par MrAttila
   Mise à jour le 16 janvier 2008

   NOTE 1 : Vous devez utiliser PPjoy pour utiliser ce script
   NOTE 2 : Vous pouvez télécharger gratuitement ce jeu sur
   http://icculus.org/neverball
*/

// CALIBRAGE DE LA WIIMOTE
var.xOffset = 2
var.zOffset = 5

// CONFIGURATION DES BOUTONS DE LA WIIMOTE
key.Up = wiimote.Up               //bas
key.Down = wiimote.Down           //haut
key.left = wiimote.Left           //Gauche
key.right = wiimote.Right         //Droite
key.escape = Wiimote.A            //Echape (menu)
key.enter = Wiimote.B             //Entrée (valider)
key.Space = wiimote.Home          //Pause
mouse.LeftButton = wiimote.plus   //Rotation gauche de la caméra
mouse.RightButton = wiimote.minus //Rotation droite de la caméra

// INTERPRETATION DE L'INCLINAISON DE LA WIIMOTE
PPJoy.Analog0 = -(wiimote.RawForceX + var.xOffset) / 23
PPJoy.Analog1 = (wiimote.RawForceZ + var.zOffset) / 25

// AFFICHAGE DE L'INCLINAISON DE LA WIIMOTE POUR CALIBRAGE
debug = 'X: ' + PPJoy.Analog0 + ' ; Z: ' + PPJoy.Analog1
Personal tools