Giocare con il pc con wiimote
| Indice |
|---|
| Giocare con il pc con wiimote |
| Spiegazioni e Tasti |
| Dimostrazione video |
Dopo aver scritto la guida,intitolata Glove PIE wiimote e scripts un gran "menage a trua" ho adattato uno script per giocare comodamente a Quake3 arena con il wiimote e glove PIE.
Lo script di base è lo script per giochi FPS scritto da Kasten e adattato per le mie esigenze.Esso utilizza l accelerometro presente sul wiimote senza alcun bisogno di collegare la barra sensoriale del wii al computer,anche se come si può scoprire essa è costitutuita da 10 led IR e utilizza il wii solo per l alimentazione.
Il wiimote ci permette così di giocare in modo abbastanza semplice a Quake3 arena,gioco utilizzato come esempio.E' possibile giocare con qualsiasi gioco FPS al mondo,il più da fare, a volte, è abbassare la sensibilità del mouse nel gioco.
Un errore che in tanti commettono dopo aver seguito la guida presente nel link sovrastante è di provare lo script WiiMouse 0.1.PIE muovendo a destra e a sinistra il wiimote come se si giocasse a tennis;ma non è questo il metodo per muoversi dopo aver calibrato il wii (procedura descritta nella guida sopra e anche in molti script).Il trucco dell utilizzare il wiimote come mouse è ruotarlo su se stesso.
Per seguire la seguente guida consiglio vivamente di leggere il primo articolo,in modo da saper già:
- Collegare il wiimote al Pc attraverso la chiavetta bluetooth
- Disporre e saper Avviare Glove PIE e gli script
- Saper calibrare il wiimote mantenendolo fermo.
Ecco qui pubblicato e disponibile lo script per poter giocare ad esempio a Quake3 Arena.
// Code for playing FPS Games
// Posted by Kasten and modified by Peppo1616 for using the Nunchuck and Arrows.
/* NOTE for this code to work right with the wiimote please
read the following */
// When configuring the offsets please put the wiimote flat and do not move it.
// These are offsets change them so that your debug output reads 0,28,0
// The debug output is at the top of this window.
// Ex if you get -7,33,-6 then change the offsets to 7,-5,6
var.xOffset = -3
var.yOffset = -28
var.zOffset = -2
// Change this if you would like your mouse to go faster
var.speed = 10
// change these to a higher number if your hands are not steady or lower if they are
var.xCutoff = 4
var.zCutoff = 4
var.xRot = Wiimote.RawForceX + var.xOffset
var.yRot = Wiimote.RawForceY + var.yOffset
var.zRot = Wiimote.RawForceZ + var.zOffset
debug = 'X:' + var.xRot + ', ' + 'Y:' + var.yRot + ', ' + 'Z:' + var.zRot
// This is the code that moves your mouse
if var.xRot > var.xCutoff then mouse.x = mouse.x - .001 * var.speed * (var.xRot - var.xCutoff)
if var.xRot < -var.xCutoff then mouse.x = mouse.x - .001 * var.speed * (var.xRot + var.xCutoff)
if var.zRot > var.zCutoff then mouse.y = mouse.y - .001 * var.speed * (var.zRot - var.zCutoff)
if var.zRot < -var.zCutoff then mouse.y = mouse.y - .001 * var.speed * (var.zRot + var.zCutoff)
// Press 1 on the wiimote to press e on the keyboard
e = Wiimote.One
Enter = Wiimote.Two
/ B for left click and A for right click
mouse.LeftButton = Wiimote.B
mouse.RightButton = Wiimote.A
// Plus and Minus on the wiimote to use the scroll wheel
// get for scrolling though weapens in fsp games
mouse.WheelUp = Wiimote.Plus
mouse.WheelDown = Wiimote.Minus
// Rumbles wiimote when shift is pressed on your keyboard
Wiimote.Rumble = Shift
// Have some fun and press 1, 2, 3, and/of 4 to little up the lights on the wiimote
Wiimote.Led1 = four
Wiimote.Led2 = three
Wiimote.Led3 = two
Wiimote.Led4 = one
// If you move your controler up and down quickly then it will press space
// Great for jumping on games
if var.yRot >= 100 then space = true else space = false
//added code to use Cbutton and joy to strafe in game with the Nunchuk
//C button on Nunchuk is CTRL on the keyboard;I use this to jump in the game.
Right = 1 > Wiimote1.Nunchuk.JoyX > 0.5
Left = -1 < Wiimote1.Nunchuk.JoyX < -0.5
down = 1 > Wiimote1.Nunchuk.JoyY > 0.5
up = -1 < Wiimote1.Nunchuk.JoyY < -0.5
control = wiimote.Nunchuk.CButton
Ultime News
- Youtube Direct : Giornalisti per caso..
- Il re' del phising, Facebook clonato
- Dipendenza da internet?
- Disponibile Ubuntu 9.10
- Android 2.0 in arrivo!
- Primi modelli netbook con Android
- Poste italiane, sito web alle strette
- Domini IT finalmente efficenti
- Il mostro a due teste Ati Radeon HD5870 X2
- Recensita nuova ati radeon HD5870
- Truffa per i domini on-line dalla cina
- Piacenza: arriva la scuola di ASUS
- Da Panasonic ecco le nuove SDXC
- Tastiere per Mac pericolose
- Facebook batte le mail
- CPU e GPU insieme con le API di Windows 7
- Facebook contro gli evasori fiscali
- Google VS Bing
- Netbook Apple: ancora il più originale
- Windows 7 installabile da USB?

Commenti
é un wiki dove raccogliere script di questo genere, è un pò vecchio, prima o poi lo integreremo su questo sito. Per quanto riguarda questo script, può funzionare anche con altri FPS, semplicemente perchè lo script non fà altro che emulare il premere dei tasti della tastiera. Citazione
RSS feed dei commenti di questo post.