Wiimote Scripting is very cool! I've only made a couple of scripts to play 2d side scrollers by tilting the wii mote to move.

 

 
First thing get GlovePIE and a blue tooth usb dongle. Now goto your blue tooth folder and connect the device. press the 1+2 buttons simultaneouslyand search for the device. It will show up as NINTENDO-RVT-CNT-01. if it doesn't work keep on trying. It will ask for a key/serial you dont need one just hit next. Now its connected as long as those lights are blinking. woohoo!

 

 

Its time to load up GlovePIE. There is all sorts of scripting out there. I'm just going to give you my success script. If you feel like making your own its easy just click the gui tab. select key board or mouse or whatever you want it to do then say detect input and push or shake or something and it catches it. you can tweek it how ever you want.

This script allows you to use the nintendo wii's tilting funtion. Based on the degree of the Wiimote it will move up, down, left, and right. This is using it as if you were using the keyboard arrows. Its not the best script ever but it works!

 

 
if MapRange(Wiimote1.Pitch, -15 degrees,15   degrees, 0,1) then
Key.Left = false
Key.Right = false
endif
if   MapRange(Wiimote1.Pitch, 15 degrees,90 degrees, 0,1) then
Key.Left =   true
Key.Right = false
endif
if MapRange(Wiimote1.Pitch, -15   degrees,-90 degrees, 0,1) then
Key.Right = true
Key.Left =   false
endif
If MapRange(Wiimote1.Roll, -15 degrees,15 degrees, 0,1)   then
Key.Down = false
Key.Up = false
endif
If   MapRange(Wiimote1.Roll, 15 degrees,90 degrees, 0,1) then
Key.Down =   true
Key.Up = false
endif
If MapRange(Wiimote1.Roll, -15 degrees,-90   degrees, 0,1) then
Key.Up = true
Key.Down = false
endif
     
 

Yeah not the most complicated setup. there is alot of scripts out there and a ouple of videos that got me really excited about this.

here are some videos from Johnny Chung Lee

 


The work of Mark Matta
e-mail: freepupet@yahoo.com phone: 586-219-2368